- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgchange failed
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
09-09-2002 11:15 AM
09-09-2002 11:15 AM
Once the system came up, I cleaned the other VGs by vgexport them. Only left vg00, then I mirrored them one logical volume at a time.
Everything looks fine before I reboot the 2nd box.
During boot, vgchange complaints:"
vgchange:
Couldn't set the unique id for volume group "/dev/vg00"
File exists."
What unique ID and which file exisits? How could fix this problem? the system actually boot up and mirrors are working, vgdisplay would not show anything, but lvdisplay show all the logical volumes fine.
Have never seen this before. I would suggest the programmer if they decide to putout error message and bail out, please explain in the man page how to fix the problem or at least explain what was the thing it talked about. vgchange 's man page has nothing about this error.
Thanks for any help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:23 AM
09-09-2002 11:23 AM
Re: vgchange failed
For me it looks like a conflict of the minor numbers. Do an ll /dev/*/group and see if there are group files in the other volume groups with the same minor number. Get rid of them.
If it does not solve the problem, then do the following.
Bring the system in lm maintenance mode (interact with isl, boot the system with hpux -lm -is command).
Once it boots, do an export of vg00. Create vg00 fresh and then import it back and then run the lvlnboot commands.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:31 AM
09-09-2002 11:31 AM
Solution# vgexport -m /mapfile /dev/vg00
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x0#0000
=> Use the "unique" minor number that you have noted down earlier.
# vgimport -m /mapfile /dev/vg00 /dev/dsk/CXtYdZ /dev/dsk/...
# vgchange -a y /dev/vg00
It should activate without complaining now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 12:47 PM
09-09-2002 12:47 PM
Re: vgchange failed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 01:34 PM
09-09-2002 01:34 PM
Re: vgchange failed
What does
strings /etc/lvmtab | more
show?
Are there more than one VG in there?
If so
mv /etc/lvmtab /etc/lvmtab.old
vgscan -av
then try to vgchange the vg00 VG.
Also IF the tape came off an MC/SG system, you may have pulled over a file named
/dev/slvmvg
that has the same major/minor numbers as vg00.
IF you aren't running MC/SG you should remove this file & rebuild lvmtab as noted above.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 02:17 PM
09-09-2002 02:17 PM
Re: vgchange failed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:46 PM
09-09-2002 11:46 PM
Re: vgchange failed
During activation LVM gets the VGID from /etc/lvmtab and creates a new VG structure in memory. While attaching PVs to that structure the VGID of that PVs are checked against that one found in lvmtab.
So I assume that the VGID in lvmtab does not match the VGID on disk. vgexport/vgimport from maintanance mode should fix the problem. See other responses above.
To check the VGID on disk:
echo "0d8208?UU" | /usr/bin/adb /dev/dsk/cXtYdZ
To check the VGID from lvmtab:
strings -t d /etc/lvmtab |grep /dev |grep -v /dev/dsk |while read offset path; do
xd -An -j$(($offset+1024)) -N8 -tuL /etc/lvmtab |read vgid1 vgid2
echo $path $vgid1 $vgid2
done
Regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 02:13 PM
09-11-2002 02:13 PM