Jump to content
  • 0
robot682

LVM Partitions Not Mounted

Question

Hello,

 

I've been having a bit of a time with this install. I have the whole root filesystem on an encrypted LVM group. When I boot, I'm prompted for the password and the luks container is decrypted, but only root an swap are mounted. I get errors about the other partitions, which cause the system to break, including portage.

 

My fstab is as follows:

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

/dev/sdb1               /boot           ext2            noauto,noatime  1 2
UUID=7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1       none            swap            sw              0 0
UUID=625a0681-e435-429f-976e-e3bb4830ad17       /               ext4            noatime         0 1
UUID=3e09d6e9-2f69-43fd-b718-4d5dbd319e82       /tmp            ext4            noatime         0 2
UUID=25be8c28-fff2-4b37-bf23-c9bad9153036       /var            ext4            noatime         0 2
UUID=9b77ff9d-fa7e-4a30-8995-dbefe0669839       /home           ext4            noatime         0 2
/dev/cdrom              /mnt/sr0        auto            noauto,ro       0 2

When I boot, I get the following errors 

fsck.ext4 unable to resolve UUID=3e09d6e9-2f69-43fd-b718-4d5dbd319e82
fsck.ext4 unable to resolve UUID=25be8c28-fff2-4b37-bf23-c9bad9153036
fsck.ext4 unable to resolve UUID=9b77ff9d-fa7e-4a30-8995-dbefe0669839

lvdisplay shows all of the logical volumes, but the UUIDs are different


  --- Logical volume ---
  LV Path                /dev/vg1/swap
  LV Name                swap
  VG Name                vg1
  LV UUID                sR2E6X-GhTk-Vb8f-BD2D-GQHl-DVn9-rgJyeU
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2014-09-13 12:44:55 -0500
  LV Status              available
  # open                 2
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Path                /dev/vg1/root
  LV Name                root
  VG Name                vg1
  LV UUID                Z6i3eH-8Tc6-CfYq-boTe-Ojxy-Y2C3-afpSLg
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2014-09-13 12:45:16 -0500
  LV Status              available
  # open                 1
  LV Size                50.00 GiB
  Current LE             12800
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

  --- Logical volume ---
  LV Path                /dev/vg1/tmp
  LV Name                tmp
  VG Name                vg1
  LV UUID                hG0GR3-tK2R-2jZa-hPtQ-Tfr0-4k6O-pv10Zs
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2014-09-13 12:45:40 -0500
  LV Status              available
  # open                 0
  LV Size                10.00 GiB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

  --- Logical volume ---
  LV Path                /dev/vg1/var
  LV Name                var
  VG Name                vg1
  LV UUID                jrOYbk-Vf6z-Uuxc-IKSx-vTJH-kdow-TAdsfp
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2014-09-13 12:45:53 -0500
  LV Status              available
  # open                 0
  LV Size                10.00 GiB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

  --- Logical volume ---
  LV Path                /dev/vg1/home
  LV Name                home
  VG Name                vg1
  LV UUID                bPCQA9-HsLv-DR34-3Gxj-NUnQ-91W8-zRG0WR
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2014-09-13 12:46:08 -0500
  LV Status              available
  # open                 0
  LV Size                209.08 GiB
  Current LE             53524
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5

lvscan shows that they are all active

 ACTIVE            '/dev/vg1/swap' [8.00 GiB] inherit
  ACTIVE            '/dev/vg1/root' [50.00 GiB] inherit
  ACTIVE            '/dev/vg1/tmp' [10.00 GiB] inherit
  ACTIVE            '/dev/vg1/var' [10.00 GiB] inherit
  ACTIVE            '/dev/vg1/home' [209.08 GiB] inherit

blkid only shows root and swap.

/dev/sda1: UUID="77f735b0-3d46-4fd7-9751-34df92d460d5" TYPE="crypto_LUKS" PARTUUID="53b81948-01"
/dev/sdb1: UUID="79d306ed-2578-4ac9-a199-6f61a6a7e64c" TYPE="ext2" PARTLABEL="Linux filesystem" PARTUUID="8bc2da6e-8286-4b3f-a58a-1a6661ec3c5d"
/dev/mapper/luks-77f735b0-3d46-4fd7-9751-34df92d460d5: UUID="TTLf8a-U1Vg-r8FZ-L0cl-2KWm-bR3p-u7tSDA" TYPE="LVM2_member"
/dev/mapper/vg1-swap: LABEL="swap" UUID="7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1" TYPE="swap"
/dev/mapper/vg1-root: LABEL="root" UUID="625a0681-e435-429f-976e-e3bb4830ad17" TYPE="ext4"
/dev/sdb2: PARTLABEL="BIOS boot partition" PARTUUID="bed4419b-8a5e-43ca-b5dc-373f4f96f8c9"

ls /dev/vg1/ just shows root and swap

 

It's worth mentioning that I am booting with dracut and using it to decrypt the luks container, so dracut has the enc_root and real_root set to the UUIDs of root and the luks container.

 

 

If I reboot the system and decrypt the luks container, blk looks like this:

/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="77f735b0-3d46-4fd7-9751-34df92d460d5" TYPE="crypto_LUKS"
/dev/sr0: LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660"
/dev/sdb1: UUID="79d306ed-2578-4ac9-a199-6f61a6a7e64c" TYPE="ext2"
/dev/mapper/funtoo: UUID="TTLf8a-U1Vg-r8FZ-L0cl-2KWm-bR3p-u7tSDA" TYPE="LVM2_member"
/dev/mapper/vg1-swap: LABEL="swap" UUID="7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1" TYPE="swap"
/dev/mapper/vg1-root: LABEL="root" UUID="625a0681-e435-429f-976e-e3bb4830ad17" TYPE="ext4"
/dev/mapper/vg1-tmp: LABEL="tmp" UUID="3e09d6e9-2f69-43fd-b718-4d5dbd319e82" TYPE="ext4"
/dev/mapper/vg1-var: LABEL="var" UUID="25be8c28-fff2-4b37-bf23-c9bad9153036" TYPE="ext4"
/dev/mapper/vg1-home: LABEL="home" UUID="9b77ff9d-fa7e-4a30-8995-dbefe0669839" TYPE="ext4"

Any help would be appreciated.

 

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...