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?

  • tehfishman@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    38 minutes ago

    Might be less confusing if you take a look at what you have with lsblk first. That might give you a better view of your existing disk layout so you know what you need to do. To your specific question though, I’m pretty sure resizing the LUKS volume is done with some sub-command in crypysetup. I’m not at a proper computer to check, but it’s definitely in the man page.

    All that assumes you have LUKS underneath LVM, which is fairly standard practice.

    Hope that helps get you pointed in the right direction.

  • themachine@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 hours ago

    You can’t resize the filesystem without first resizing the crypted volume.

    You would expand this LV. Expand the crypted volume. The decrypt the volume and expand the underlying filesystem.

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

      hmmmm…I thought that the command sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv would extend the encrypted volume, and this command sudo resize2fs /dev/ubuntu-vg/ubuntu-lv would extend the filesystem.

        • irmadlad@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 hour ago

          Is the LUKS volume created right on the disk on a raw partition?

          Yes. I’m sorry for the confusion and incomplete info. I’m flying a little blind here. The first two commands in the OP were to check what I have, and the last two were to extend the LUKS and then the filesystem.