- # mkfile 10m /tmp2/swapfile
- # swap -a /tmp2/swapfile
- # swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0d0s1 102,1 8 303400 303400
/dev/dsk/c0d1s6 102,70 8 21160 21160
/tmp2/swapfile - 8 20472 20472
- (Optional, if need to make the change permanent)
- Edit /etc/vfstab
/tmp2/swapfile - - swap - no -
- reboot
- Edit /etc/vfstab
No comments:
Post a Comment