- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error when running vgchid
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-12-2010 06:31 AM
тАО07-12-2010 06:31 AM
error when running vgchid
Using Hitachi ShadowImage, I created a snapshot consisting of 12 disks that I am trying to import on a different server.
The first thing I do is run the vgchgid command like this:
vgchgid /dev/rdsk/c12t6d1 /dev/rdsk/c12t6d2 /dev/rdsk/c12t6d3 /dev/rdsk/c12t6d4 /dev/rdsk/c12t6d5 /dev/rdsk/c12t6d6 /dev/rdsk/c12t6d7 /dev/rdsk/c12t7d0 /dev/rdsk/c12t7d1 /dev/rdsk/c12t7d2 /dev/rdsk/c12t7d3 /dev/rdsk/c12t7d4
but I get the following error: physical volume "/dev/rdsk/c12t6d1" and "/dev/rdsk/c12t7d1" do not belong to the same volume group.
I have confirmed that the disks that these were mirrored from were, in fact, part of the same volume group.
Any ideas on how to resolve this error?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2010 10:58 AM
тАО07-12-2010 10:58 AM
Re: error when running vgchid
"If a disk is newly added to an existing volume group and no subsequent LVM operations has been performed to alter the structures (in other words, operations which perform an automated vgcfgbackup); then it is possible a subsequent vgchgid will fail. It will report that the disk does not belong to the volume group...."
Got that from the handy manpage.
It also says:"...This may be overcome by performing a structue changing operation on the volume group (for example, using lvcreate)."
Now I probably wouldn't do lvcreate, but I might, on that separate server run vgchange -a n /dev/vg and vgchange -a e /dev/vg, and then maybe even throw in a vgcfgbackup for the heck of it...then give it a shot.
BUT....if it's on a different server and these disks will never mount on the primary server I might NOT even change the vgid. I might just go ahead and import them using the -f (use this file with the /dev/dsk/c-t-d- listing them in one continual line) like this:
vgimport -v -m /etc/lvmconf/vgmapfile -f /path/file-with-ctd /dev/vgname
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2010 11:28 AM
тАО07-12-2010 11:28 AM
Re: error when running vgchid
The disk that I am working with is not being added to an existing volume group. It is effectively new disk that will be imported to a newly created VG on the new server.
This is procedure I am following and it has worked on two different test servers:
snapshot the disk from the original server
vgchid the disks
create a volume group
vgimport the disks into the VG using a map file from the original server
vgchange the VG
fsck the VG
mount the LVs
In this case changing the IDs fails.
I also tried skipping the vgchid and went right to creating the VG and importing the disk and that didn't work either. Again the error was that the physical volumes are not part of the same VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 03:47 AM
тАО07-13-2010 03:47 AM
Re: error when running vgchid
Attached is a quick script that you could run against each disk to confirm if in fact the vgid is the same. Possibly something didn't mirror/sync properly.
Hope this helps,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 08:09 AM
тАО07-13-2010 08:09 AM
Re: error when running vgchid
Here's what I tried and the results:
#./test.sh /dev/dsk/c12t7d1
/dev/dsk/c12t7d1 pvid = vgid =
venetian:/home/roote
#./test.sh /dev/rdsk/c12t6d4
/dev/rdsk/c12t6d4 pvid = vgid =
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 09:52 AM
тАО07-13-2010 09:52 AM
Re: error when running vgchid
Are you sure hp-ux supports hitachi's shadowimage ?
If it is log a call with HP support. (and get HP supports "lvminfo" tool, which is able to read out the complete lvm header of a certain disk in "ascii" version.)
Greetz,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 11:12 AM
тАО07-13-2010 11:12 AM
Re: error when running vgchid
Contacting HP support is my next step.
Also, thanks for the info on the "lvminfo" tool.