Friday 31 January 2014

Add swap space in ZFS Solaris

Sometimes you have to add additional swap space when the current swap space is not sufficient.
With help to following steps you can add the swap space in zfs of Solaris 10 /11

Create the zfs volume of 2Gb from rpool, here I had used rpool you can use any other pool.
 
# swap -l
swapfile                 dev  swaplo   blocks   free
/dev/zvol/dsk/rpool/swap 256,1      16 1058800 1058800

# zfs create -V 2G rpool/swap2
 
Activate the second swap volume.
# swap -a /dev/zvol/dsk/rpool/swap2
# swap -l
swapfile                  dev  swaplo   blocks   free
/dev/zvol/dsk/rpool/swap  256,1      16 1058800 1058800
/dev/zvol/dsk/rpool/swap2 256,3      16 4194288 4194288 

Make an entry into /etc/vfstab file so that swap space would remain persistent 
across reboots.

/dev/zvol/dsk/rpool/swap2    -        -       swap    -       no      -

Physical P2V migration in Solaris (Solaris 9 to Solaris 10)

Physical P2V migration in Solaris  P2V migration is the excellent feature of Solaris where you can migrate the physical server...