![]() |
Restore lvm after destroying boot disk
1 Attachment(s)
Hi All,
I need to restore my lvm after destroying my boot disk during an upgrade. I have used the information on this http://www.howtoforge.com/recover_da...lvm_partitions as a starting point and have got so far but got stuck. I do not have a raid just three disks linked into a volume group so I skipped the first part and started at the Recovering The LVM Setup section. I used the dd command (also piped the output into strings to clean it up) and created this config file Code:
# Generated by LVM2 version 2.02.95(2) (2012-03-06): Mon Jun 4 17:01:30 2012I tried vgconfigrestore with the -t for test and got Test mode: Metadata will NOT be updated and volumes will not be (de)activated. Couldn't find device with uuid PCNHHY-LSvJ-jKbt-TXbN-tceZ-0GPe-tshRED. Couldn't find device with uuid Ixsun3-rGKx-0xWB-tqFK-RDYq-OuNR-qIj5sO. Segment with extent 953864 in PV unknown device not found Couldn't read all logical volumes for volume group vg_big. Restore failed. I am guessing that I need to assign uuids to the disks to match the old config? Any ideas? Thanks I have attached the output from the dd command after it has been cleaned with strings |
More info
Just some more info about the problem
lvmdiskscan /dev/sda [ 1.82 TiB] /dev/vg_main/lv_swap [ 13.72 GiB] /dev/vg_main/lv_root [ 50.00 GiB] /dev/vg_main/lv_home [ 84.81 GiB] /dev/sdb [ 1.82 TiB] /dev/sdc [ 1.82 TiB] LVM physical volume /dev/sdd1 [ 500.00 MiB] /dev/sdd2 [ 148.56 GiB] LVM physical volume 5 disks 1 partition 1 LVM physical volume whole disk 1 LVM physical volume [root@main uuid_fixer]# fdisk -l Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2c33c642 Device Boot Start End Blocks Id System Disk /dev/sdd: 160.0 GB, 160040803840 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312579695 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000dd6fd Device Boot Start End Blocks Id System /dev/sdd1 * 2048 1026047 512000 83 Linux /dev/sdd2 1026048 312578047 155776000 8e Linux LVM Disk /dev/mapper/vg_main-lv_swap: 14.7 GB, 14730395648 bytes 255 heads, 63 sectors/track, 1790 cylinders, total 28770304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/vg_main-lv_root: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/vg_main-lv_home: 91.1 GB, 91066728448 bytes 255 heads, 63 sectors/track, 11071 cylinders, total 177864704 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes |
| All times are GMT +2. The time now is 00:36. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.