Configuring swap

swap vergrößern:

ROOT@AP4S100 > zfs create -V 30g rpool/swap_temp
ROOT@AP4S100 > swap -a /dev/zvol/dsk/rpool/swap_temp
ROOT@AP4S100 > swap -l
swapfile             dev  swaplo blocks   free
/dev/zvol/dsk/rpool/swap 256,2      16 104857584 104857584
/dev/zvol/dsk/rpool/swap_temp 256,3      16 62914544 62914544

swap verkleinern:

ROOT@AP4S100 > swap -d /dev/zvol/dsk/rpool/swap_temp
ROOT@AP4S100 > zfs destroy rpool/swap_temp

Anschließend nicht vergessen die /etc/vfstab anzupassen.

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

Leave a Reply

Your email address will not be published. Required fields are marked *