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?

  • i_am_not_a_robot@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 小时前

    lv* commands are for LVM logical volumes. They’re not related to LUKS. Unless your LVM “physical” volume is on a LUKS encrypted device, you aren’t using LUKS. You’ll need to make the LUKS encrypted PV larger before you can grow your LV.

    Unless your PV is already taking up the whole disk, in which case whether it is LUKS encrypted or not is irrelevant and the question you want to be asking is “how do I resize my LVM LV to fill the rest of my LVM PV?”, which is probably what the commands you have do.

    • irmadlad@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 小时前

      how do I resize my LVM LV to fill the rest of my LVM PV

      Again, apologies for my confusion and not being able to articulate coherently or precisely.