Tuesday, March 24, 2009

Extending a swap LVM in Redhat 4 or 5

This refers to a pre-production box. Note, before you start, that swapoff is involved, and consider whether you want to do that to a busy box. :)
  • lvscan
  • lvextend --size +4G /dev/someVG/someVol
  • lvscan
  • free -m
  • swapoff
  • mkswap /dev/someVG/someVol
  • swapon -va
  • free -m

No comments: