First time poster, not sure what protocol is for posting. Hope I'm not giving too much information with my issue.
-------------
I inherited a problem and am hoping to get some guidance. The situation is fubar'ed but no writes have been done to the disks in question.
The system has two arrays of drives. One is for the OS (CentOS 6), the other for Data. Here is the physical disk count on the machine:
Code:
# Description Total Gigs
2 HARD DRIVE, 300GB, SAS6, 10, 2.5, H-CE, E/C 600
6 HARD DRIVE, 600G, SAS6, 10, 2.5, W-SIR, E/C 3600
The two smaller drives are mirrored as 300g - this is where the OS lives.
The rest of the drives were used for data storage and were also mirrored... I think. The RAID config was set up by someone who I don't have contact with anymore.
Here's how the drives are seen by linux right now:
Code:
[root@ursula ~]# pvscan
PV /dev/sda5 VG vg_ursula lvm2 [276.34 GiB / 0 free]
PV /dev/sdb1 lvm2 [1.80 TiB]
PV /dev/sdc1 lvm2 [948.67 GiB]
Total: 3 [3.00 TiB] / in use: 1 [276.34 GiB] / in no VG: 2 [2.73 TiB]
Going by the sizes listed right above, could my data still exist on the data drives.. in some configuration or another?
The painful part is that there aren't any backups of the previous Volume config - just the web application and database (and those are stale since I didn't catch the original network issue until several weeks had passed).
The other problem is that I am unsure whether sdb/c were previously joined as one volume under LVM, or if they were used as separate volumes by the OS. The most recent
fstab I had from the previous installation showed that
/dev/sdb1 was mounted at /www. I am *think* the total drive space for /www was 1.8T.
(As an aside I now know of vgcfgbackup and will make good use of it going forward.)Back to today. I used dd to read what I could from these two volumes. Identical output was generated when reading from sdb1 and sdc1:
dd if=/dev/sdb1 bs=1M count=1 | strings -n 16 >
https://gist.github.com/anonymous/d3de8a57c477e62c8eebIn the dd output, "ursula2012" was the servername when the machine was originally build. "ursula2015" is the servername given yesterday. I'm unsure whether the dd output will be helpful or not.
I grabbed a screenshot just before confirming partition settings during the CentOS (re)install. Note that the Format option was not checked for the data drives.

After rebooting the OS loaded fine. But, I can't mount the data volume.
Code:
# mount -o ro /dev/sdb1 /www
mount: unknown filesystem type 'LVM2_member'
vgscan only shows the OS drive volume group, 'vg_ursula'.
Code:
Reading all physical volumes. This may take a while...
Found volume group "vg_ursula" using metadata type lvm2
lvscan only shows the OS drive logical volumes.
Code:
ACTIVE '/dev/vg_ursula/LogVol05' [29.30 GiB] inherit
ACTIVE '/dev/vg_ursula/LogVol04' [48.83 GiB] inherit
ACTIVE '/dev/vg_ursula/LogVol03' [48.83 GiB] inherit
ACTIVE '/dev/vg_ursula/lv_root' [111.74 GiB] inherit
ACTIVE '/dev/vg_ursula/lv_home' [9.77 GiB] inherit
ACTIVE '/dev/vg_ursula/lv_swap' [27.89 GiB] inherit
file -s /dev/sdb1
Code:
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: B1bLeFveeDcnfZ2i0tuqWtHgSd6UAgM
file -s /dev/sdc1
Code:
/dev/sdc1: LVM2 (Linux Logical Volume Manager) , UUID: SMMVLUKEuBPHuTeoarMkDAlJDDY1Gm2
Here's full output from
vgck -vvv:
https://gist.github.com/anonymous/076cd514c42ec1d0d356parted:
Code:
[root@ursula ~]# parted /dev/sdb 'print'
Model: DELL PERC H710 (scsi)
Disk /dev/sdb: 1979GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 1979GB 1979GB primary lvm
[root@ursula ~]# parted /dev/sdc 'print'
Model: DELL PERC H710 (scsi)
Disk /dev/sdc: 1019GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 1019GB 1019GB primary lvm
fsck:
Code:
[root@ursula ~]# fsck /dev/sdb1
fsck from util-linux-ng 2.17.2
fsck: fsck.LVM2_member: not found
fsck: Error 2 while executing fsck.LVM2_member for /dev/sdb1
[root@ursula ~]# fsck /dev/sdc1
fsck from util-linux-ng 2.17.2
fsck: fsck.LVM2_member: not found
fsck: Error 2 while executing fsck.LVM2_member for /dev/sdc1
I spun up
testdrive last night to see what it showed. No luck seeing any files. The only useful information it gave was that sdc's size "seemed too small". Could the difference account for the data on the drive (several websites, databases, and a cache of videos)?
TL;DR: System has multiple drive arrays. OS was reinstalled on separate array. Data storage drives were not formatted or otherwise written to - but may have been previously joined under LVM. Linux sees them as empty drives, though the capacities indicate my data is still there.
Is the data recoverable?