Resizing an ext3 LVM2 volume

The process of resizing an LVM volume is pretty straightforward, but it’s important to take care in performing them — one false step and say goodbye to the data on that disk. 
  1. Shut the machine down
  2. Boot off a live CD or rescue disk
  3. Skip mounting your existing volumes
  4. Run lvm vgchange -a y
  5. Ensure that the volume group and logical volumes are visible
  6. Run e2fsck -f VOLUME to ensure the existing data on the volume is intact and the file system is sane
  7. Run resize2fs -p VOLUME SIZE[M|G] to resize the file system on the volume to the intended size
  8. Run lvm lvreduce -L VOLUME to resize the logical volume to the preferred size
  9. Run resize2fs VOLUME again to fill up the logical volume

Sasha

Hello. I’m Sasha Ger­rand, a soft­ware developer. I design and cre­ate high volume trans­ac­tional tech­no­logy (along with other things). I write code in Open Source pro­gram­ming lan­guages. I do things with data sources and trans­ac­tional sys­tems. I use vir­tu­al­ised machines for my server envir­on­ments. I spend a fair pro­por­tion of my days liv­ing in the shell. I like POSIX com­pli­ant oper­at­ing sys­tems and FOSS products.