Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: Please help with understanding, and changing, swap: LUKS, LVM

  1. #11
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,288
    Distro
    Ubuntu

    Re: Please help with understanding, and changing, swap: LUKS, LVM

    On startup, after entering the LUKS passphrase, the computer stalls for a short while. The error messages read:
    Code:
      Volume group "vgubuntu" not found
      Cannot process volume group vgubuntu
      Volume group "vgubuntu" not found
      Cannot process volume group vgubuntu
      Failed to find logical volume "vgubuntu/swap_1"
    Gave up waiting for suspend/resume device
    Can you tell me why it's still looking for vgubuntu/swap_1? It's not in my fstab, and I don't know where else it could be.

    EDIT: I found only comments relating to the deleted swap:
    Code:
    $ sudo grep -FI --recursive 'vgubuntu/swap_1' /etc  
    /etc/lvm/backup/vgubuntu:description = "Created *after* executing 'lvremove vgubuntu/swap_1'"
    /etc/lvm/archive/vgubuntu_00001-41805311.vg:description = "Created *before* executing 'lvremove vgubuntu/swap_1'"
    EDIT: Solved!

    It turns out that initramfs (whatever that is!) keeps a record of the swaps in case of resuming from hibernation, and needs to be updated.
    Code:
    $ sudo update-initramfs -uk all
    update-initramfs: Generating /boot/initrd.img-5.4.0-56-generic
    update-initramfs: Generating /boot/initrd.img-5.4.0-54-generic
    This did the trick.

    The boot still starts with one error:
    Code:
      Volume group "vgubuntu" not found
      Cannot process volume group vgubuntu
    It would be nice to eliminate that error, but I suppose that's for a new thread.
    Last edited by Paddy Landau; December 1st, 2020 at 04:08 PM. Reason: New information
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •