I would really appreciate help on recovering some data.
I have a RAID1 array under /dev/md0 composed of devices /dev/sdb and /dev/sdc. I had lvm on the raid with 3 lv, the last of which was a snapshot partition.
My / is on /dev/sda. Recently, I reinstalled the system (Debian lenny) and reconfigured /dev/sda with lvm.
When I booted, the system correctly determined the presence of the RAID array and even activated it. All I had to do is import /dev/md0 back into the system.
However, out of stupidity, I ran
As it says, it overwrote the start of the device, the data is has not been affected. Now I don't know how to access the LVs on /dev/md0.
Does anyone have any suggestions on how to recover the information about the lvm volumes on the disk?
I do not have the backup file of the volume group on the raid, as I just reinstalled the system over it. Otherwise I would have just followed the instructions here.
Have you done ANYTHING to md0 or the underlying devices since then??
I believe that md0 uses an on-disk block for tracking meta information, but that essentially, the underlying partitions are simply kept in sync as normal filesystems are. Translation: you can directly mount the underlying file system. If they're not too out-of-sync, you can just fsck and mount. If the fsck fails at first because the md0 blasted it (unlikely), you can just use a backup superblock and specify that to fsck.
Ouch!
Have you done ANYTHING to md0 or the underlying devices since then??
No, I haven't done anything to it.
Quote:
I believe that md0 uses an on-disk block for tracking meta information, but that essentially, the underlying partitions are simply kept in sync as normal filesystems are. Translation: you can directly mount the underlying file system. If they're not too out-of-sync, you can just fsck and mount. If the fsck fails at first because the md0 blasted it (unlikely), you can just use a backup superblock and specify that to fsck.
But how exactly do I mount lvm volumes without them being in a group? Does mounting do anything to the underlying devices as you ask?
But how exactly do I mount lvm volumes without them being in a group? Does mounting do anything to the underlying devices as you ask?
No, I don't think so, unless you also striped across partitions. But I'm far from certain. The safe thing to do is go to the physical partiitions and try to fsck them with -n:
fsck -n /dev/hd3a
or whatever. Keep trying different superblocks until you get a hit. Also try LinuxQuestions.org, but make sure you direct your question to an advanced forum.
I've made some progress. Here's a summary of my steps so far:
# Searched for lvm config
# Filtered the output, saved the file to /etc/lvm/backup/data-raid
# Extracted the UID of pv0 (/dev/md0) and ran
# Restored lvm w/
# Imported the volume group with
# Brought it up
# Tried mounting w/ following fstab conf
it failed with
There are supposed to be 2 volumes with data, data--raid-media a ReiserFS partition, and data--raid-user a LUKS encrypted one and a snapshot volume of the media partition.
Okay, well it would have helped if at first you were using ReiserFS. Second, you completely ignored the gist of my instructions. It's possible by re-creating the meta data, you corrupted the existing partition. Hopefully another expert can help you here.
Or, (and I say this tongue-in-cheek), you could write to Hans Reiser in jail asking him to help you. I'm sure he has plenty of time.
Hi all,
I been trying to recover a volume group of single PV.
vgcfgrestore output
# vgcfgrestore vgoraData
Couldn't find device with uuid 'a3onP5-RdbR-fdgq-sDkS-ZtFs-83Q5-kFJj43'.
Cannot restore Volume Group vgoraData with 1 PVs marked as missing.
Restore failed.
fdisk output
... (1 Reply)
Hi guys,
I would like to ask your opinion about my theory, how to fix my broken LVM without risking any data loss.
I use Archlinux at home. I just love this distro, even it gives me a lots of work (particularly after system updates).
Basic system spec:
AMD FX(tm)-6100 Six-Core Processor... (1 Reply)
Hi
I am new on your forum, because I need some help.
I have a server with debian and proxmox 2.
The HardDisk is broken.
I am in rescue mode, and I can't mount LVM partition to recover my backups.
What I've already done :
# fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255... (0 Replies)
Hi,
I'm new to HP-UX.
I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3
Thanks (4 Replies)
Hi all,
I am still working on my mksysb restore.
My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored.
0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any
available boot images. Please correct this... (0 Replies)
Hey peeps,
Here is somethin u might find interestin....
Is it possible to recover data from a partition which used to be an ext3 file sytem with some nice forgotten backups, which now is an lvm partion containg root partition of another OS. :)
I couldn't create any mess better than this, can... (2 Replies)