Skip to content
Snippets Groups Projects

Create a new LVM from non used space in Disk

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Ahmed Amine Mchayaa

    ´´´

    pvs lvs lvdisplay lvextend -L G /dev/ubuntu-vg-1/ubuntu-lv resize2fs /dev/ubuntu-vg-1/ubuntu-lv lvdisplay vgs mkfs.ext4 /dev/ubuntu-vg-1/

    ´´´

    Edited
    how to add a new LVM 167 B
    ´´´
    pvs
    lvs 
    lvdisplay 
    lvextend -L <sizetoextend>G /dev/ubuntu-vg-1/ubuntu-lv
    resize2fs /dev/ubuntu-vg-1/ubuntu-lv
    lvdisplay
    vgs
    mkfs.ext4 /dev/ubuntu-vg-1/
    ´´´
    0% or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment