- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to save an accidentally pvcreated disk?
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
тАО07-21-2005 02:35 AM
тАО07-21-2005 02:35 AM
How to save an accidentally pvcreated disk?
Please consider this scenario and tell me if there is another solution other than backup and restore:
I have and ACTIVE volume group accessing data from two disks. Then I try to add the altern link of these disks (one at a time), but using a script that previously "pvcreate -f" the link to be added. When I execute the script I see 4 disks for the VG instead of 2 disks with altern links (because of te corruption generated for the pvcreate).
As every vgextend command saved a wrong configuration file in /etc/lvmconf, I have NO VALID conf file to vgcfgrestore. The VG is still active and accesible, but if I inactivate it I think it will not bring active again.
Any way to quickly and safely repair LVMREC for the disks? Thanks a million in advance for your suggestions.
Jose Enrique Gonzalez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 02:39 AM
тАО07-21-2005 02:39 AM
Re: How to save an accidentally pvcreated disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 02:41 AM
тАО07-21-2005 02:41 AM
Re: How to save an accidentally pvcreated disk?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 05:28 AM
тАО07-21-2005 05:28 AM
Re: How to save an accidentally pvcreated disk?
You should be able to vgcfgrestore to that disk without loosing data.
I would however attempt to get a current backup of the data ASAP just in case the attempts to correct the error cause future access to the disk to fail.
The LVM configuration commands (pvcreate, vgcreate and lvcreate) do not destroy data on the disk but set the configurations on the disks headers for volume group membership and lvol names.
The vgcfgrestore will put back the vg header info tothe disk. I would be curious if vgdisplay complains ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 06:16 AM
тАО07-21-2005 06:16 AM
Re: How to save an accidentally pvcreated disk?
However, I was able to vgcfgrestore LVM headers from a not-so-good conf file. It now allows me to do a vgcfgbackup, but this message appears when trying to vgchange -a y:
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c11t2d6":
A component of the path of the physical volume does not exist.
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c11t2d7":
A component of the path of the physical volume does not exist.
Volume group "vgsecaarc1" has been successfully changed.
So, I suppouse LVM headers are still corrupt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 06:31 AM
тАО07-21-2005 06:31 AM
Re: How to save an accidentally pvcreated disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 06:36 AM
тАО07-21-2005 06:36 AM
Re: How to save an accidentally pvcreated disk?
You can view the contents of the vgxx.conf files with vgcfgrestore -l -n /dev/vgxx
You should get a listing like the below.
vgcfgrestore -l -n /dev/vgcache
Volume Group Configuration information in "/etc/lvmconf/vgcache.conf"
VG Name /dev/vgcache
---- Physical volumes : 4 ----
/dev/rdsk/c5t0d0 (Non-bootable)
/dev/rdsk/c20t0d0 (Non-bootable)
/dev/rdsk/c20t1d0 (Non-bootable)
/dev/rdsk/c5t1d0 (Non-bootable)
Then for example if c20t0d0 is the disk that had its LVM header wiped you can execute vgcfgrestore -n /dev/vgcache /dev/rdsk/c20t0d0
I am sure you are doing this but it does not hurt to ask.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 08:43 AM
тАО07-21-2005 08:43 AM
Re: How to save an accidentally pvcreated disk?
Well, it's obvious there's no easy solution to this ooops. I will plan backup and restore.