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