Hi, I’m currently transforming my old PC into a home server because I simply don’t need a real Desktop anymore.
On my Desktop I had Fedora (currently 37) installed with LVM (thin partitioning) and luks encryption. When I boot into Fedora everything works fine and as it should.
This is what it looks like:
├─nvme0n1p9 259:13 0 300G 0 part
│ └─luks-cf322626-9289-4bd9-b384-d4b8350c8d7d 253:0 0 300G 0 crypt
│ ├─Fedora-00_tmeta 253:1 0 240M 0 lvm
│ │ └─Fedora-00-tpool 253:3 0 239.8G 0 lvm
│ │ ├─Fedora-01 253:4 0 239.8G 0 lvm /
│ │ ├─Fedora-00 253:5 0 239.8G 1 lvm
│ │ └─Fedora-02 253:6 0 239.8G 0 lvm /home
│ └─Fedora-00_tdata 253:2 0 239.8G 0 lvm
│ └─Fedora-00-tpool 253:3 0 239.8G 0 lvm
│ ├─Fedora-01 253:4 0 239.8G 0 lvm /
│ ├─Fedora-00 253:5 0 239.8G 1 lvm
│ └─Fedora-02
Now I installed RHEL 9 on seperate partitions as my new server OS.
I want to keep my Fedora installation where it is just in case I need a Desktop once (my Server is close to my desk) but would like to be able to access the data from the RHEL installation. So basically I want to mount the LVM volumes into my RHEL system but that doesn’t work and I don’t know why.
The other way around it doesn’t seem to be an issue (RHEL is installed with LVM too but without encryption).
I opend the luks device with cryptsetup:
[root@linux ~]# lsblk -f /dev/nvme0n1p9
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1p9 crypto_LUKS 2 cf322626-9289-4bd9-b384-d4b8350c8d7d
└─encrypted_device LVM2_member LVM2 001 v0sXFB-tqU0-tMoD-PUri-MYIP-B71q-a7Dx4T
But when I try to use any LVM tools nothing shows up. Neither vgscan, vgdisplay nor lvs show anything of the Fedora pool.
After opening the luks device it does show up in /dev/mapper:
[root@linux mapper]# ll /dev/mapper
total 0
crw-------. 1 root root 10, 236 Jan 15 01:00 control
lrwxrwxrwx. 1 root root 7 Jan 15 01:23 encrypted_device -> ../dm-1
lrwxrwxrwx. 1 root root 7 Jan 15 01:00 rhel-root -> ../dm-0
I think it’s either due to the encryption or the thin provisioning but I’m not sure how to fix this.
Do you have any ideas?