- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cannot restore vg config on a single root
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
Discussions
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
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-08-2010 06:46 AM
07-08-2010 06:46 AM
cannot restore vg config on a single root
I have run pvcreate on /dev/rdsk/c1t2d0 by mistake which was a root disk. And now i need to restore the configuration on this disk.Kindly Help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2010 07:01 AM
07-08-2010 07:01 AM
Re: cannot restore vg config on a single root
A bootdisk? On a running server? Did you force the pvcreate() with '-f'? Is your boot (root) disk mirrored?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2010 09:24 PM
07-08-2010 09:24 PM
Re: cannot restore vg config on a single root
unless you are not using the pvcreate with (-f) option, it will say "The physical volume already belongs to a volume group". it won't create the disk. so please confirm.
Thanks,
Shan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2010 09:29 AM
07-10-2010 09:29 AM
Re: cannot restore vg config on a single root
I agreed with shan comment!
Please confirm us what command you executed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2010 10:32 AM
07-10-2010 10:32 AM
Re: cannot restore vg config on a single root
Assuming that "root disk" means that it is part of vg00, you can put the header information back on the disk like this:
vgcfgrestore -n vg00 /dev/rdsk/c1t2d0
NOTE: pvcreate -f is a very dangerous command and should be used when you are sure that the disk is truly unused. When you remove a disk from a volume group, it is best practice to also use pvremove to erase the old LVM information. That way, you can always use pvcreate without -f.
I have attached a very useful script to show LVM information on one or more disks and report if it is:
- unassigned, with random data in the header
- initialized (pvcreate) but not assigned
- assigned to a VG but not the current host (perhaps from another computer)
- assigned to a VG and it belongs to the current system
To use showLVMinfo:
# showLVMinfo c1t2d0
Bill Hassell, sysadmin