- 论坛徽章:
- 0
|
编辑/etc/vfstab后重启(#reboot),如下:
bash-2.05# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 136,1 16 1417232 1417232
bash-2.05# swap -s
total: 8024k bytes allocated + 1768k reserved = 9792k used, 900024k available
此时依然需要我手工添加:
bash-2.05# swap -a /export/home/new/test
bash-2.05# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 136,1 16 1417232 1417232
/export/home/new/test - 16 40944 40944
注:/etc/vfstab如下
bash-2.05# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
swap - /tmp tmpfs - yes -
/export/home/new/test - - swap - no -
bash-2.05# ls -l /export/home/new/test
-rw------T 1 root other 20971520 Jan 11 00:07 /export/home/new/test
请问是不是我编辑得有问题?非常感谢! |
|