- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems with vgchange
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
04-11-2002 09:09 AM
04-11-2002 09:09 AM
Problems with vgchange
Information in "/etc/lvmtab" differs from that in "/etc/lvmpvg".
VG "/dev/vg04_1" is not defined in file "/etc/lvmtab".
vgdisplay: Volume group "/dev/lvemcNMES" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "lvemcNMES".
When I try to diactivate the volume group, because vgimport is complaining that it already exist, I get:
# vgchange -a n lvemcNMES
vgchange: Volume group "/dev/lvemcNMES" does not exist in the "/etc/lvmtab" file.
#
Now, my conclusion is that the /etc/lvmatab file is not consistent. How can I "safely" remove this volume so that I can reimport it properly from my BCV.
Any help would be much appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 09:20 AM
04-11-2002 09:20 AM
Re: Problems with vgchange
I would rename lvmtab to lvmtab.old & try a vgscan -a to recreate the "true" VG defs. You can always go back to the org lvmtab. You can also run vgscan w/o renaming & it'll just "add" missing entries.
If the /dev/vgxxx directory already exists & you are truly not using it now, you could just delete the directory & try to reimport.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 09:20 AM
04-11-2002 09:20 AM
Re: Problems with vgchange
Here is waht acan be done.
1. Make a copy of lvmtab file say lvmtab.old.
2. Do a vgscan -a -v , this will recreate a new lvmtab file which will have information of all the vg's.
3.Then go ahead with the vg operations.
It is safe bcoz you have a copy of lvmtab , you can alos try -p option which will preview thte stuff.
Also donto forget to do a lvlnboot -R after the work is done.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 09:21 AM
04-11-2002 09:21 AM
Re: Problems with vgchange
# cd /etc
# mv lvmtab lvmtab.old
# vgscan -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 09:27 AM
04-11-2002 09:27 AM
Re: Problems with vgchange
#cp lvmtab lvmtab.org
#vgscan -v
Check the lvmtab file conteants using
#strings /etc/lvmtab
Look for the existing Vg in lvmtab defination.
Now your vg whichj you want to remove will not be in lvmtab and hence you will be able to remove it.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 09:30 AM
04-11-2002 09:30 AM
Re: Problems with vgchange
Two comments in addition to the advice you have already been given. (1) Did you use 'vgchgid' on the BCV volume before you attempted the 'vgimport'? (2) Remember that the '/etc/lvmpvg' can be manually edited as well as modified by LVM commands like 'vgcreate', etc.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 09:34 AM
04-11-2002 09:34 AM
Re: Problems with vgchange
Renaming /etc/lvmtab and recreating with 'vgscan -v' is a good suggestion.
Just curious, are you using PVG ( physical volume groups ) ?
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 11:16 AM
04-11-2002 11:16 AM
Re: Problems with vgchange
I did try to recreate the /etc/lvmtab. In fact here is the output of the new /etc/lvmtab:
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t5d0
#
As you can see there is no mention of lvemcNMES - so that is good. However,
when I try importing - I still get an error.
sapsplit: Error importing disk group lvemcNMES [Error executing command 'vgimport -m /nsr/tmp/map_lvemcNMES.14228 lvemcNMES /dev/dsk/c15t0d4 /dev/dsk/c15t2d1' [Volume group "/dev/lvemcNMES" is still active.]]
sapsplit: Error constructing primary host environment
Where is the OS getting the information about lvemcNMES still being active - beats me.
Here is the contents of lvmpvg:
# more lvmpvg
VG /dev/vg04_1
PVG pvg04_1
/dev/dsk/c7t8d0
#
There must be another file on the system that still contains information about lvemcNMES being active.
I know what I can do. I can reboot the machine, but I definitely don't want to do this every time I run into this issue:(
Thanks for everyones replies so far, they are all good, but no solution yet:)