Precheck swap info :
Resize swap :# zfs get volsize rpool/swap NAME PROPERTY VALUE SOURCE rpool/swap volsize 16G local
>> To activated new size must reboot OS# swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 228,2 16 8388592 8388592 # zfs set volsize=4g rpool/swap # zfs get volsize rpool/swap NAME PROPERTY VALUE SOURCE rpool/swap volsize 4G local
Create new swap :
Activate new swap :# zfs create -V 16G rpool/swap2 # swap -lh swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 228,2 8K 4.0G 4.0G
/* EOF */# swap -a /dev/zvol/dsk/rpool/swap2 # swap -lh swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 228,2 8K 4.0G 4.0G /dev/zvol/dsk/rpool/swap2 228,5 8K 16G 16G
Add, resize and activate swap in solaris zfs
Aug 27, 2016 6:40 AM
Filed Under: confbuild, oracle |0 comments
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment