- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgcfgrestore restored the wrong info
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
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО04-10-2001 11:50 AM
тАО04-10-2001 11:50 AM
vgcfgrestore restored the wrong info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2001 12:31 PM
тАО04-10-2001 12:31 PM
Re: vgcfgrestore restored the wrong info
When you ran vgcfgrestore, what options did you use?
I generally do a 'vgcfgrestore -n /dev/vgname /dev/dsk/cXtYdZ'. It has never given me a problem.
You say that there was no backup of your data, so why not rebuild the VG from scratch before you restore?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2001 01:21 PM
тАО04-10-2001 01:21 PM
Re: vgcfgrestore restored the wrong info
I agree with Patrick. I presume that since you have no backup that there is no reason not to configure (from scratch).
In fact, you want your /etc/lvmtab to correctly reflect the proper state of your disks.
Therefore, I would 'lvremove', 'vgreduce' and finally 'vgremove' all structures in the damaged volume group.
Once this is done, verify that /etc/lvmtab is consistent with the remaining disks:
# strings /etc/lvmtab
If disks are mis-represented then do the following:
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -p # preview only
...and if the preview is correct:
# vgscan -v
# strings /etc/lvmtab
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 05:34 AM
тАО04-11-2001 05:34 AM
Re: vgcfgrestore restored the wrong info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 05:53 AM
тАО04-11-2001 05:53 AM
Re: vgcfgrestore restored the wrong info
-A option which does not take a backup automatically. If you did not specify the VGConfPath, then the latter should be the reason why the configs are wrong.
Either way, re-create is probably your only option, since your restoring anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 12:58 PM
тАО04-11-2001 12:58 PM
Re: vgcfgrestore restored the wrong info
1. If the vgcfgrestore worked (even though wrong info). Do a "vgdisplay -v vgname" of the VG and ensure that "Cur PV" and "Act PV" are the same value.
If they are the same value, and the disk with the wrong cfg info in part of the VG, just do
a vgreduce and specify this disk. Once removed from the VG, you should have nothing else to do.
2. If "Cur PV" & Act PV" are different, and the vgcfgrestore does not work, try James' suggestion. I would deactivate the VG in question first with "vgchange -a n vgname"
before I did the vgscan. DONT rm the lvmtab
file either but save it as something else in
case there are problems. You do have to rename it for the vgscan to re-create it though, otherwise vgscan looks through this file for its information leaving you at square one.
These suggestions hinge on the fact that you say this disk you replaced had none of your data on it though. If true, you should be okay.
Let us know how it turns out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 07:31 AM
тАО04-12-2001 07:31 AM
Re: vgcfgrestore restored the wrong info
Thanks for taking the time to write back again. If you could clarify one of your comments:
"These suggestions hinge on the fact that you say this disk you replaced had none of your data on it though. If true, you should be okay."
This drive actually does have data on it that we are need to preserve, as there is no backup. Amazingly, even with the wrong cfg file, users can access roughly half of the images stored in the raw file space. This is why my initial post was looking for a way to just change the cfg for this volume group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2001 07:33 AM
тАО04-13-2001 07:33 AM
Re: vgcfgrestore restored the wrong info
My statement: ""These suggestions hinge on the fact that you say this disk you replaced had none of your data on it though. If true, you should be okay." was based on your comment that the VG was comprised on 10 LV's with 2 active. I was assuming that your disk was on one of the 8 non-active LV's with no information on it.
If you've had the bad disk repaired, NOT replaced (like it was the on-board controller that went bad) then your data should be intact. If the disk was replaced with a new disk, then you will have to re-create the VG.
The information on the bad disk is probably gone. If you have no backup, then you will most likely be facing a re-creation of the data. If you can backup or export the data on the remaining disks, then the re-creation may not be that bad depending on how much data you lost.
I'll read this more often until I hear back.