Saturday 12 March 2011

Adding SWAP space and DUMP space to a ZFS installed solaris SPARC machine.

Its very easy to add swap space in ZFS installed machine and the concept is same as that of UFS.
In UFS we make use of commands 'mkfile' and 'swap -a'.Here with the use of a single command we add swap space and dump space.Below i have mentioned the step by step procedure:


1st check the size given for dump size using the below command

1)bash-3.00# zfs get volsize zpool/dump
  NAME        PROPERTY  VALUE    SOURCE
  zpool/dump  volsize   1G       local

------------------------------------------
now i am going to change the size of dump using the below command

2)bash-3.00# zfs set volsize=2G zpool/dump

------------------------------------------

we can check the swap size and we can find the size is changed to 2G

3)bash-3.00# zfs get volsize zpool/dump
  NAME        PROPERTY  VALUE    SOURCE
  zpool/dump  volsize   2G       local

------------------------------------------


similarly for swap

1)bash-3.00# zfs get volsize zpool/swap
  NAME        PROPERTY  VALUE    SOURCE
  zpool/swap  volsize   14.6G    local

2)bash-3.00# zfs set volsize=20G zpool/swap

3)bash-3.00# zfs get volsize zpool/swap
NAME        PROPERTY  VALUE    SOURCE
zpool/swap  volsize   20G      local


----------------------------------------------

No comments:

Post a Comment