Thursday, 18 June 2015

may contain holes - can't swap on it

Error

root@test001# mkfile 5G swap1
root@test001# swap -a /test/app02/swap1
"/test/app02/swap1" may contain holes - can't swap on it.

Solution


root@test001# zfs create -V 5G -b 8k newpool/swap1
root@test001# swap -a /dev/zvol/dsk/newpool/swap1

No comments: