Operation:

  • sudo vgs: ubuntu-vg 1 1 0 wz--n- 462.69g 362.69g
  • df -T / : /dev/mapper/ubuntu--vg-ubuntu--lv ext4 102626232 24338224 73028744 25% /
  • sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
  • sudo resize2fs /dev/ubuntu-vg/ubuntu-lv

Never did this before on an encrypted drive. Is this the proper procedure? Obviously a complete image back up is in order, however, are there any gotchas, caveats, pitfalls that I should be aware of before proceeding?

  • irmadlad@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    Results of lsblk:

    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS

    loop0 7:0 0 63.8M 1 loop /snap/core20/2866

    loop1 7:1 0 63.9M 1 loop /snap/core20/2318

    loop2 7:2 0 87M 1 loop /snap/lxd/29351

    loop3 7:3 0 38.8M 1 loop /snap/snapd/21759

    loop4 7:4 0 91.7M 1 loop /snap/lxd/38800

    loop5 7:5 0 49.3M 1 loop /snap/snapd/26865

    sda 8:0 0 465.8G 0 disk

    ├─sda1 8:1 0 1G 0 part /boot/efi

    ├─sda2 8:2 0 2G 0 part /boot

    └─sda3 8:3 0 462.7G 0 part

    └─dm_crypt-0 253:0 0 462.7G 0 crypt

    └─ubuntu--vg-ubuntu--lv 253:1    0   100G  0 lvm   /
    
    • NotEasyBeingGreen@slrpnk.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      Ah great. It looks like you have a mostly empty encrypted partition with LVM on top of it. If memory serves you might be able to resize the logical volume and the ext4 filesystem in a single command.