I've recently had to have the system disk in a remote server replaced, and the DC attached the old disk to a USB port. The problem is that CentOS was installed on both using all the defaults, and so now the output of
[root@IS-55825 /]# lvscan inactive '/dev/vg_is55825/lv_root' [50.00 GiB] inherit inactive '/dev/vg_is55825/lv_home' [53.46 GiB] inherit inactive '/dev/vg_is55825/lv_swap' [7.67 GiB] inherit ACTIVE '/dev/vg_is55825/lv_root' [50.00 GiB] inherit ACTIVE '/dev/vg_is55825/lv_home' [53.24 GiB] inherit ACTIVE '/dev/vg_is55825/lv_swap' [7.89 GiB] inherit
pvs can tell the difference, but I can't figure out how to separate them in a way that I can just mount one of the old partitions to get some config information back:
[root@IS-55825 /]# pvs -v Using physical volume(s) on command line. Wiping cache of LVM-capable devices Wiping internal VG cache Cache: Duplicate VG name vg_is55825: Existing KbuKYZ-yPtq-VI65-DlqY-e0j3-5Van-9UTe06 (created here) takes precedence over gVj6yw-hbls-RgTh-MKe3-saoW-KH3B-ggf2LO Cache: Duplicate VG name vg_is55825: Existing KbuKYZ-yPtq-VI65-DlqY-e0j3-5Van-9UTe06 (created here) takes precedence over gVj6yw-hbls-RgTh-MKe3-saoW-KH3B-ggf2LO PV VG Fmt Attr PSize PFree DevSize PV UUID /dev/sda2 vg_is55825 lvm2 a--u 111.13g 0 111.13g QC5BPW-VdKx-dNnw-vSNm-cH6H-fZwB-HHXwFb /dev/sdd2 vg_is55825 lvm2 a--u 111.13g 0 111.13g LNSYx6-8DCv-u9CG-S1zv-vI20-fNIq-7BA8Le
/dev/sdd2 that I'm after, but it won't mount directly:
[root@IS-55825 /]# mount /dev/sdd2 /oldsys mount: unknown filesystem type 'LVM2_member'
lvdisplay --select vg_uuid=LNSYx6-8DCv-u9CG-S1zv-vI20-fNIq-7BA8Le but it gives no output, and that's as far as I got... Is there some way to get access to it?