На старом сервере полетела система (Red Hat Linux 4). Насколько я понял там было 4 диска SCSI 36Гб и из 3х из этих дисков был собран один логический диск lvm. Один из дисков умер, на одном послетали разделы (из-за этого и linux слетел). В итоге от lvm остался только один живой нормальный диск (/dev/sdc1)
Вообщем в срочном порядке переустановили RHEL4 на новый диск, попытались восстановить разделы на проблемном диске.
В итоге чистая работающая система, бэкапа /etc/lvm нет, возможности добавлять/убавлять чистых дисков нет.
vgdisplay --partial --verbose выдала:
Partial mode. Incomplete volume groups will be activated read-only.
Finding all volume groups
Finding volume group "VolGroup00"
Wiping cache of LVM-capable devices
Couldn't find device with uuid 'YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O'.
Couldn't find device with uuid 'yPxNey-bqdW-nqi2-kHvN-mCoe-5U8C-kvV7eD'.
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 3
Act PV 3
VG Size 99.69 GB
PE Size 32.00 MB
Total PE 3190
Alloc PE / Size 3187 / 99.59 GB
Free PE / Size 3 / 96.00 MB
VG UUID fLO4pY-7O5C-tmjq-ygD2-TriN-Y3LE-Yp7Vcc
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID Xs6hsJ-78iV-fSBL-Xtd6-7ICf-Udhq-leZIba
LV Write Access read/write
LV Status NOT available
LV Size 99.59 GB
Current LE 3187
Segments 3
Allocation inherit
Read ahead sectors 0
--- Physical volumes ---
PV Name unknown device
PV UUID YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O
PV Status allocatable
Total PE / Free PE 1022 / 0
PV Name /dev/sdc1
PV UUID G5AL2P-73aV-J6TT-asJ7-dSEA-fuVq-GH5Fhm
PV Status allocatable
Total PE / Free PE 1084 / 0
PV Name unknown device
PV UUID yPxNey-bqdW-nqi2-kHvN-mCoe-5U8C-kvV7eD
PV Status allocatable
Total PE / Free PE 1084 / 3
Couldn't find device with uuid 'YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O'.
Couldn't find device with uuid 'yPxNey-bqdW-nqi2-kHvN-mCoe-5U8C-kvV7eD'.
PV unknown device VG VolGroup00 lvm2 [31.94 GB / 0 free]
PV /dev/sdc1 VG VolGroup00 lvm2 [33.88 GB / 0 free]
PV unknown device VG VolGroup00 lvm2 [33.88 GB / 96.00 MB free]
PV /dev/sdb2 lvm2 [32.01 GB]
Total: 4 [131.70 GB] / in use: 3 [99.69 GB] / in no VG: 1 [32.01 GB]
Couldn't find device with uuid 'YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O'.
Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid 'YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O'.
Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid 'YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O'.
Couldn't find device with uuid 'yPxNey-bqdW-nqi2-kHvN-mCoe-5U8C-kvV7eD'.
Couldn't find device with uuid 'YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O'.
Couldn't find device with uuid 'yPxNey-bqdW-nqi2-kHvN-mCoe-5U8C-kvV7eD'.
Couldn't find device with uuid 'YbYqrq-GqIT-bH7z-jLdd-eqDF-wZ5c-b0IX8O'.
Couldn't find device with uuid 'yPxNey-bqdW-nqi2-kHvN-mCoe-5U8C-kvV7eD'.
Wrote out consistent volume group VolGroup00
Повторное выполнение комманды vgdisplay --partial --verbose выдало:
Partial mode. Incomplete volume groups will be activated read-only.
Finding all volume groups
Finding volume group "VolGroup00"
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 33.88 GB
PE Size 32.00 MB
Total PE 1084
Alloc PE / Size 0 / 0
Free PE / Size 1084 / 33.88 GB
VG UUID fLO4pY-7O5C-tmjq-ygD2-TriN-Y3LE-Yp7Vcc
--- Physical volumes ---
PV Name /dev/sdc1
PV UUID G5AL2P-73aV-J6TT-asJ7-dSEA-fuVq-GH5Fhm
PV Status allocatable
Total PE / Free PE 1084 / 1084
Подскажите, как просто посмотреть структуру каталогов на выживших дисках, может и не стоит заморачиваться с восстановлением, если нужных данных не осталось там.
Вот ещё вывод fdisk -l для четырёх дисков:
Disk /dev/sda: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 131 1052226 83 Linux
/dev/sda2 132 3955 30716280 83 Linux
/dev/sda3 3956 4216 2096482+ 82 Linux swap
Disk /dev/sdb: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 249 1996800 82 Linux swap
Partition 1 does not end on cylinder boundary.
/dev/sdb2 249 4428 33567744 8e Linux LVM
Disk /dev/sdc: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 2 4427 35551845 8e Linux LVM
/dev/sdc3 * 1 1 8001 12 Compaq diagnostics
Disk /dev/sdd: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 2 13 96390 83 Linux
/dev/sdd2 14 3153 25222050 83 Linux
/dev/sdd3 1 1 8001 12 Compaq diagnostics
/dev/sdd4 3154 4427 10233405 f W95 Ext'd (LBA)
/dev/sdd5 3154 4427 10233373+ 83 Linux
Опыта в данном деле практически нет, экспериментировать и снимать диски на рабочем сервере возможности нет :(