Resizing an ext3 LVM2 volume

The pro­cess of res­iz­ing an LVM volume is pretty straight­for­ward, but it’s import­ant to take care in per­form­ing them — one false step and say good­bye to the data on that disk. 
  1. Shut the machine down
  2. Boot off a live CD or res­cue disk
  3. Skip mount­ing your exist­ing volumes
  4. Run lvm vgchange -a y
  5. Ensure that the volume group and logic­al volumes are visible
  6. Run e2fsck -f VOLUME to ensure the exist­ing data on the volume is intact and the file sys­tem is sane
  7. Run resize2fs -p VOLUME SIZE[M|G] to res­ize the file sys­tem on the volume to the inten­ded size
  8. Run lvm lvreduce -L VOLUME to res­ize the logic­al volume to the pre­ferred size
  9. Run resize2fs VOLUME again to fill up the logic­al volume


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.