[TriLUG] OS change corrupted my LVM
vikram sai balaji ulaganathan via TriLUG
trilug at trilug.org
Fri Jan 22 10:46:42 EST 2021
Hi All,
I have been using Gentoo for quite a while, but due to my work change, i
have to move to a debian based approach. So i tried to install Xubuntu but
it failed multiple times as it was not able to work with btrfs (which i was
not aware). The below was the fdisk info before install
Device Start End Sectors Size Type
/dev/sda1 2048 6143 4096 2M BIOS boot
/dev/sda2 6144 268287 262144 128M EFI System -> mount /boot
/dev/sda3 40966144 245766143 204800000 97.7G Linux filesystem (BTRFS)
-> mount /
/dev/sda4 245766144 1953523119 1707756976 814.3G Linux LVM -> mount /home
(LVM+LUKS)
/dev/sda5 268288 40966143 40697856 19.4G Linux swap
Attempt 1:
Xubuntu -> choose sda3 format to btrfs "/" and start install -> install
failed to identify efi. did not touch sda4 during installation
Attempt 2:
Xubuntu -> chroot to sda3 and install grub with sda2 as boot -> success on
grub but grub-mkconfig failed. did not touch sda4 during installation
Attempt 3:
Xubuntu -> choose sda3, format to ext4 "/" and start install -> install
success. did not touch sda4 during installation
Xubuntu is working, but when i try to use pvdisplay, pvscan and all other
lvm commands, its not working. Any help here is appreciated. I have
installed testdisk and tried to scan the disk, but its not even recognizing
the LVM
Device Start End Sectors Size Type
/dev/sda1 2048 6143 4096 2M BIOS boot
/dev/sda2 6144 268287 262144 128M EFI System -> mount /boot
/dev/sda3 40966144 245766143 204800000 97.7G Linux filesystem (BTRFS)
-> mount /
/dev/sda4 245766144 1953523119 1707756976 814.3G Linux LVM -> mount /home
(LVM+LUKS)
/dev/sda5 268288 40966143 40697856 19.4G Linux swap
Found VG info for 0 VGs
Getting list of all devices from system
/dev/loop0: filter cache skipping (cached bad)
/dev/sda: filter cache skipping (cached bad)
/dev/loop1: filter cache skipping (cached bad)
/dev/sda1: filter cache using (cached good)
/dev/loop2: filter cache skipping (cached bad)
/dev/sda2: filter cache using (cached good)
/dev/loop3: filter cache skipping (cached bad)
/dev/sda3: filter cache using (cached good)
/dev/loop4: filter cache skipping (cached bad)
/dev/sda4: filter cache using (cached good)
/dev/loop5: filter cache skipping (cached bad)
/dev/sda5: filter cache using (cached good)
/dev/loop6: filter cache skipping (cached bad)
/dev/loop7: filter cache skipping (cached bad)
Processing PVs in VG #orphans_lvm2
Reading orphan VG #orphans_lvm2
report/output_format not found in config: defaulting to basic
log/report_command_log not found in config: defaulting to 0
Unlocking /run/lock/lvm/P_global
_undo_flock /run/lock/lvm/P_global
Dropping VG info
lvmcache has no info for vgname "#orphans_lvm2" with VGID #orphans_lvm2.
lvmcache has no info for vgname "#orphans_lvm2".
lvmcache: Initialised VG #orphans_lvm2.
Thanks in advance for your help
Vikram
More information about the TriLUG
mailing list