recover logical volume , how to?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers recover logical volume , how to?
# 1  
Old 07-08-2012
Question recover logical volume , how to?

i want to recover my logical volume not the entire volume group.
is that possible?

vgcfgrestore will restore my all volume group , i don't want this solutionSmilie
# 2  
Old 07-08-2012
prpkrk,

I don't have exactly the information you want, but I think I know how to get the results you want. Here are my notes. I have done this exactly ONCE, so YMMV. See if it helps.

**********************

Your sandg is still there, sort of, and the data has not been over-written. It was located on /dev/sdb, which now shows up as completely unused, which is a good thing.

Go to /etc/lvm/backup/sandg. There you will see a fully intact backup of the metadata for sandg. You can use the command vgcfgrestore to restore this metadata. Check the manpage, but I think the command would be:

# vgcfgrestore -f /etc/lvm/backup/sandg

Run it in test mode first with the -t switch.

After sandg has re-appeared, you should be able to see the Logical Volume named ‘apps_apache_2.2.17', size 2 GB. The formatting should already be there - don't format it. Just mount it and look it over.

If this doesn't work, you can rebuild the Volume Group from the bottom up, by re-creating the Physical Volume. There was only one PE used, so it should be easy. Just extract the proper UUID ffrom the backup or the archive and run:

# pvcreate -uuid <uuid string>

This should replace the metadata ONLY, by over-writing it, leaving the data area of the physical volume intact. Then create the volume group ‘sandg', add the PV to it, create a Logical Volume with exactly the old name (again drawn from the archive), and everything should line up. You should not need to format it. The fformatting should simply re-appear, as will the data.
# 3  
Old 07-08-2012
It this a continuation of the problem in you previous thread?
https://www.unix.com/unix-dummies-que...-then-yes.html

1) Please post what Operating System and version you have.
2) Can you post the commands you typed to reduce the Filesystem or Logical Volume (or both? It's not at all clear what happened)?
3) Please make it clear whether this is a system partition or a data partition?
4) Do you have a good backup of the contents of the Filesystem concerned?

From you other thread:
Quote:
still with fsck , first i have to say no , then i have to say yes, millions of time ,
once i reduce filesystem without unmounted it
that cause error on that logical volume
This does suggest that the filesystem had file extents above the new tidemark. The filesystem is probably toast, but let's see the answers to the above questions first.

Foootnote. vgcfgrestore is probably irrelevent.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

3. AIX

Position of the logical volume on the physical volume

Hello everyone, I just read that while creating a logical volume(LV) we can choose the region of the physical volume (PV) in which the LV should be created. When I say region I mean: outer edge - outer middle - center - inner middle and inner edge. Can anyone help me understand the utility... (11 Replies)
Discussion started by: adilyos
11 Replies

4. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

5. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

6. Solaris

How to recover deleted logical volume.

My Solaris system administrator has doing troubleshooting to my server. He has accidental remove the hardware raid. Is it possible to recover it back? (4 Replies)
Discussion started by: webster5u
4 Replies

7. AIX

Basic Filesystem / Physical Volume / Logical Volume Check

Hi! Can anyone help me on how I can do a basic check on the Unix filesystems / physical volumes and logical volumes? What items should I check, like where do I look at in smit? Or are there commands that I should execute? I need to do this as I was informed by IBM that there seems to be... (1 Reply)
Discussion started by: chipahoys
1 Replies

8. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

9. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies
Login or Register to Ask a Question