Hi, I have an old computer here running Fedora Core 2 that had 3 hard drives mounted as LVM2.
This is the output from parted for the first disk -
Code:
Using /dev/sda
Information: The operating system thinks the geometry on /dev/sda is
48641/255/63. Therefore, cylinder 1024 ends at 8032.499M.
(parted) print
Disk geometry for /dev/sda: 0.000-381554.085 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 7820.705 primary ntfs boot
2 7820.706 15641.411 primary ext3
3 15641.411 16669.006 primary linux-swap
4 16669.006 381551.594 primary lvm
This is for the second disk -
Code:
Using /dev/sdb
Information: The operating system thinks the geometry on /dev/sdb is
48641/255/63. Therefore, cylinder 1024 ends at 8032.499M.
(parted) print
Disk geometry for /dev/sdb: 0.000-381554.085 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 381551.594 primary lvm
...and the third disk is dead. It spins, but makes a scraping noise and is not recognized by BIOS, although BIOS hangs at startup tryinto to recognize it.
This is what I get for pvscan -
Code:
[root@computer ~]# pvscan
Couldn't find device with uuid 'W0EUm5-wP50-qZNu-r81K-VNec-vivn-DDjXAx'.
Couldn't find device with uuid 'W0EUm5-wP50-qZNu-r81K-VNec-vivn-DDjXAx'.
PV unknown device VG vhe8_disks lvm2 [372.56 GB / 0 free]
PV /dev/sda4 VG vhe8_disks lvm2 [356.31 GB / 0 free]
PV /dev/sdb1 VG vhe8_disks lvm2 [372.59 GB / 0 free]
Total: 3 [1.08 TB] / in use: 3 [1.08 TB] / in no VG: 0 [0 ]
...and lvscan
Code:
[root@computer ~]# lvscan
Couldn't find device with uuid 'W0EUm5-wP50-qZNu-r81K-VNec-vivn-DDjXAx'.
Couldn't find all physical volumes for volume group vhe8_disks.
Couldn't find device with uuid 'W0EUm5-wP50-qZNu-r81K-VNec-vivn-DDjXAx'.
Couldn't find all physical volumes for volume group vhe8_disks.
Volume group "vhe8_disks" not found
...and vgscan
Code:
[root@computer ~]# vgscan
Reading all physical volumes. This may take a while...
Couldn't find device with uuid 'W0EUm5-wP50-qZNu-r81K-VNec-vivn-DDjXAx'.
Couldn't find all physical volumes for volume group vhe8_disks.
Couldn't find device with uuid 'W0EUm5-wP50-qZNu-r81K-VNec-vivn-DDjXAx'.
Couldn't find all physical volumes for volume group vhe8_disks.
Volume group "vhe8_disks" not found
So I looked up solutions to this problem, and I arrived at the following website -
http://www.novell.com/coolsolutions/appnote/19386.html
I followed the directions titled "Disk Permanently Removed" with hopes that I could at least get access to the data on the two good disks. I followed the directions on there, and got a new 500GB HD (the previous drive was 400GB, they both spun 7200RPM). It wasn't formatted or anything, brand spankin' new right out of the package. Here is its information via parted -
Code:
Disk geometry for /dev/sdc: 0.000-476940.023 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
Nothin! That's good right? The directions on that page say "1. Add a replacement disk to the server. Make sure the disk is empty." That disk was as empty as it can get.
So, I continue following directions -
Code:
[root@computer ~]# pvcreate --uuid W0EUm5-wP50-qZNu-r81K-VNec-vivn-DDjXAx /dev/sdc
No physical volume label read from /dev/sdc
Physical volume "/dev/sdc" successfully created
Ok, the directions didn't say I'd see "No physical volume label read from /dev/sdc" but the next line looks good, so I continue -
Code:
[root@computer ~]# vgcfgrestore vhe8_disks
Restored volume group vhe8_disks
[root@computer ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vhe8_disks" using metadata type lvm2
[root@computer ~]# vgchange -ay vhe8_disks
1 logical volume(s) in volume group "vhe8_disks" now active
Looks good so far! On to the last step -
Code:
[root@computer ~]# e2fsck -y /dev/vhe8_disks/data
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/vhe8_disks/data
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
aww crap.
So I tried many different things, including formatting the disk beforehand. I formatted it as ext2 and reiserfs, and the outcome was the same. I went into fdisk and did a few things and this is the output -
Code:
Command (m for help): p
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 60801 488384001 8e Linux LVM
Then repeat the whole process over again, same outcome. I've used /dev/sdc1 in the pvcreate step instead of just /dev/sdc, but it still has the same outcome at the e2fsck step.
I can't get the computer to boot without commenting out the volume in fstab, but it won't mount.
Is there any way to view the data on the two working disks? I'm stumped.