18 Comments

  1. I’m very sorry for the noise, please remove my comment above, your example uses –resizefs option which does the trick. Thank you.

  2. This only works online/with a mounted filesystem if the following command gives a line of output:

    tune2fs -l /dev/vg/lv_home | grep resize_inode

    If your filesystem does not have the resize_inode option active (a bit unusual, but possible), the filesystem needs to be unmounted first to be resized.

  3. thanks for this. tried this at first with system-config-lvm but it hung and one of the hard drives made a really scary noise. managed to salvage the data and the drives both check out ok with SMART, but as always i should have just started with the command line.

    your guide worked. no bad noises. losts more room. thanks again

  4. You can achieve same in just one step;)
    man lvextend | grep resizefs$ -A1
    -r, –resizefs
    Resize underlying filesystem together with the logical volume using fsadm(8).

  5. You could replace the extend command with this to take advantage of all the available space no matter how much it really is :
    lvresize –resizefs -l +100%FREE /dev/vg/lv_home

  6. Thank you for this mate! Was racking my head as to why my partition had not resized despite changing size of LV, turns out had not used resize2fs to extend the Filesystem as well. Cheers!
    Razi

  7. “Then, create a physical volume from /dev/sdb1”

    WHY ?!?!?!?

    why not using directly the entire disk and not create a new volume, JUST BE CUZ
    also, that partition should be WHAT TYPE ?!?

    we are not here to scratch your partitioning fetish

Leave a Reply

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