- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Recovering Lost Volume Group Definition
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 04:49 AM
05-20-2004 04:49 AM
Recovering Lost Volume Group Definition
Because of a bad disk one of my volume group is not working.
I need to ecover some how the Definition of each logical volume (like size, name...)
Please help me ASAP, i would really appreciate your help.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 04:55 AM
05-20-2004 04:55 AM
Re: Recovering Lost Volume Group Definition
You supply the correct VG and device node. That will write the VG data to the new disk.
You can then do a vgchange -a y /dev/vg01 to activate the volume. The lvol names should still be in /dev/vg01/.
Now, learn to use MirrorUX so that this is a non-event.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 05:08 AM
05-20-2004 05:08 AM
Re: Recovering Lost Volume Group Definition
A codeword from http://licensing.hp.com is required to use the product.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 06:03 AM
05-20-2004 06:03 AM
Re: Recovering Lost Volume Group Definition
I don't have any extra disk at this point. Would it be possible to create file which ahs the definition of each logical volume for the bad volume group?
Just to add more information, there are two disks in this volume group and only one of them is bed.
What would be the procedure to recover after the bad disk is replaced.
Please answer for both of the question. i have to show the logical volume definition list before they replaced the bad disk.
Waiting for help.
VivekS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 06:10 AM
05-20-2004 06:10 AM
Re: Recovering Lost Volume Group Definition
After they replace the disk, you need to run the command
vgcfgrestore -n vg01 /dev/rdsk/c#t#d#
this will restore the logical volume structure on the new disk but not the filesystems themselves. You will need to check all the filesystems on this volume group and re-create them by
newfs -F vxfs /dev/vg01/lvolXXX
then hope that you have a pretty recent good backup that you can restore them from.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 06:21 AM
05-20-2004 06:21 AM
Re: Recovering Lost Volume Group Definition
Replace the disk and do a vgcfgrestore. This will recreate the info back on the disk. Make sure you are using a disk of capicity that is equal to or more than the previous disk.
Do "man vgcfgrestore" for more help on the commands.
If the disk is mirrored, use vgsync to resync the mirror.
Try this link from itrc for more instructions.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066374050
The itrc doc id is KBAN00000347.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 08:31 AM
05-20-2004 08:31 AM
Re: Recovering Lost Volume Group Definition
For such a good link. You solved my half of the problem. I still need to produce some output which can just provide following two information for each logical volume in bad logical voule.
1. Name of the LV
2. Size of the LV in MB
really looking for some help.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 08:40 AM
05-20-2004 08:40 AM
Re: Recovering Lost Volume Group Definition
Unless the vg is active you cannot get this info.
If the vg is active, you can get this info using vgdisplay / lvdisplay.
vgdisplay -v /dev/vg_name will give the detail info on the vg and the lv names and their sizes including the disks configured into the vg.
lvdisplay gives more detailed info about a specific lv.
If the vg is not active, you cannot get this info.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 10:42 AM
05-20-2004 10:42 AM
Re: Recovering Lost Volume Group Definition
So basically we can't get the info from the vgxx.conf file. There are lots of files in /etc/lvmconf directory. I figured out the name by looking into /dev/vgxx directory still looking for size.
vgcfgrestore must be reading this info from somewhere.
can't we create mapfile from the inactive volume group?
Please someone come with some great idea.
waiting fro help.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 10:53 AM
05-20-2004 10:53 AM
Re: Recovering Lost Volume Group Definition
Did you try activating the volume group ?
vgchange -a y /dev/vg01
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 02:11 PM
05-20-2004 02:11 PM
Re: Recovering Lost Volume Group Definition
I'm not sure I understand exactly why you need the information right now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 03:04 PM
05-20-2004 03:04 PM
Re: Recovering Lost Volume Group Definition
there is still another way to find out the name of the logical volumes (if raw logical volumes are not used) from the /etc/fstab, where you will get the vgname as well as the logical volume name.
with best wishes
naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 03:49 PM
05-20-2004 03:49 PM
Re: Recovering Lost Volume Group Definition
#vgchange -q n -a y /dev/vg01
#vgdisplay -v /dev/vg01
if the volume group can be activating by -q n,then you can find the information of logical volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 04:36 PM
05-20-2004 04:36 PM
Re: Recovering Lost Volume Group Definition
For getting the name of the LV try your
/etc/fstab.
========================================
What has happened is the past
Tip for future:
Please keep the hard & soft copies of the following parameters.
bdf
/etc/fstab
/etc/passwd
/etc/hosts
/etc/group
vgdisplay ( of all VG's )
lvdisplay of all LV's
Please donot foget to do vgcfgbackup always or put it in the cron.
kernel parameters
You can make a script to do all the above activities and redirect it to a file and keep it for future reference.
Regards,
Imran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 04:55 PM
05-20-2004 04:55 PM
Re: Recovering Lost Volume Group Definition
Regards,
Ira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 01:18 AM
05-21-2004 01:18 AM
Re: Recovering Lost Volume Group Definition
JL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 01:24 AM
05-21-2004 01:24 AM
Re: Recovering Lost Volume Group Definition
I guess i will simply restore it.
Manalac,
Could please provide some information on "System Information Reporter (SIR)." ? like how do i run it?
thanks