Sponsored Content
Full Discussion: LVM restore / recovery
Special Forums Hardware Filesystems, Disks and Memory LVM restore / recovery Post 302249229 by Zburatorul on Tuesday 21st of October 2008 12:50:14 AM
Old 10-21-2008
I've made some progress. Here's a summary of my steps so far:

# Searched for lvm config
Code:
sudo dd if=/dev/sdb bs=512 count=255 skip=1 of=/temp.txt

# Filtered the output, saved the file to /etc/lvm/backup/data-raid
# Extracted the UID of pv0 (/dev/md0) and ran
Code:
pvcreate -ff -v -u JgOakP-gVVs-SfhX-lEXi-x4fQ-3gXz-3d17FN /dev/md0

# Restored lvm w/
Code:
vgcfgrestore -f /etc/lvm/backup/data-raid data-raid

# Imported the volume group with
Code:
vgimport data-raid

# Brought it up
Code:
vgchange -ay data-raid

Code:
# ls -l /dev/mapper
total 0
crw-rw---- 1 root root  10, 60 2008-10-11 20:16 control
brw-rw---- 1 root disk 253,  7 2008-10-19 10:12 data--raid-user
brw-rw---- 1 root disk 253,  4 2008-10-19 10:12 data--raid-media
brw-rw---- 1 root disk 253,  3 2008-10-19 10:12 data--raid-media-real
brw-rw---- 1 root disk 253,  6 2008-10-19 10:12 data--raid-snap--media
brw-rw---- 1 root disk 253,  5 2008-10-19 10:12 data--raid-snap--media-cow

# Tried mounting w/ following fstab conf
Code:
/dev/mapper/data--raid-media    /media/Pictures    reiserfs    defaults,noatime    0    0

it failed with
Code:
[630884.179103] ReiserFS: dm-3: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on dm-3

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.

Any ideas what could have gone wrong?
 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Data Recovery from file system overwritten with LVM.

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)
Discussion started by: squid04
2 Replies

2. AIX

mksysb restore - Wrong OS level for restore

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)
Discussion started by: pobman
0 Replies

3. HP-UX

How to reduce LVM to create another LVM

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)
Discussion started by: lamoul
4 Replies

4. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

5. Filesystems, Disks and Memory

LVM recovery, Hard disk broken

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)
Discussion started by: pppplu
0 Replies

6. UNIX for Advanced & Expert Users

LVM - restore metadata on other disk

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)
Discussion started by: lyynxxx
1 Replies

7. Linux

LVM VG recovery

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)
Discussion started by: h@foorsa.biz
1 Replies
All times are GMT -4. The time now is 04:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy