- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vg in lvmtab
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
тАО06-17-2009 12:32 PM
тАО06-17-2009 12:32 PM
i have hpux 11.00. i created a test vg named vgtest on server to check some disks. Then, we have been told to remove that vg and pvremove the disk. As i was on leave, so my colleague did that job. what he did,
1. he unmounted the LVs.
2. remove the VG directory from /dev
3. and pvremove the two disk that were in VG.
Now, i can see that vgtest is still in lvmtab file. and when i try to vgexport or vgremove it, it give me an error:-
# vgexport vgtest
vgexport: "/dev/vgtest/group": not a character device.
vgexport: Couldn't export volume group "vgtest".
as it is unable to find its group file, as its directory does not exist. plz help on this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2009 12:46 PM
тАО06-17-2009 12:46 PM
Re: vg in lvmtab
You colleague failed to follow correct LVM procedures.
Do:
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -av
# vgchange -a y
# lvlnboot -R
Now, if you have alternate links to any volume groups, you may need to reorder them by doing 'vgreduce' and 'vgextend' to demote primary links to secondary ones and promote secondary links to primary ones, respectively.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2009 12:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2009 07:03 PM
тАО06-17-2009 07:03 PM
Re: vg in lvmtab
As the above posts say, you need to use vgscan to rescan the volume groups in the server and to update the lvmtab.
Using vgexport to remove the vg from the server will be a good practice.This is the safest way.This will remove the corresponding entries from lvmtab also.
/usr/sbin/vgexport [-m mapfile] [-p] [-v] [-f outfile] vg_name
/usr/sbin/vgexport -m mapfile -s -p -v vg_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2009 10:24 PM
тАО06-17-2009 10:24 PM
Re: vg in lvmtab
Please do vgscan as mentioned above
vgscan will Recovering and recreating the /etc/lvmtab file when the file has been deleted or does not match the current physical volumes.
and reporting device special file lists for unconfigured volume groups.
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2009 10:31 PM
тАО06-17-2009 10:31 PM
Re: vg in lvmtab
Deleting device files will not remove the VG entries!
Use "vgremove" next time!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2009 11:13 PM
тАО06-17-2009 11:13 PM
Re: vg in lvmtab
as pvremove has been done vgscan as run with option -av should recreate the /etc/lvmtab afresh without that VG entry.
regards
sujit