- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing missing VG configuration
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
11-30-2003 12:35 AM
11-30-2003 12:35 AM
$rm -r /dev/vgxxx
but that's still remaining in /etc/lvmtab and other configuration files, so how I can delete that configuration for this volume group to recreate it again?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 12:46 AM
11-30-2003 12:46 AM
Re: Removing missing VG configuration
You do not need to remove the configuration, do the following:
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgcreate /dev/vg01 /dev/dsk/cxtxdx
This will create a new VG. then create a map file, it'll help you for a quick restore in the future.
#vgexport -p -v -s -m /etc/vg01.map /dev/vg01
When you restore
#vgimport -p -v -s -m /etc/vg01.map /dev/vg01
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 12:49 AM
11-30-2003 12:49 AM
Re: Removing missing VG configuration
to recreat the /etc/lvmtab
#strings /etc/lvmtab
to show the contents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 12:57 AM
11-30-2003 12:57 AM
Re: Removing missing VG configuration
Try this, you might be able to import the old VG configuration:
#vgimport -v /dev/vg01 /dev/dsk/cxtxdx
to import the old VG to your HD
#vgchange -a y vg01
to activate vg01
Please keep us updated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 03:55 AM
11-30-2003 03:55 AM
SolutionIF the user ONLY deleted the volume group directory /dev/vgxx, then there are two options.
1 - Recreate dir /dev/vgxx, this method has a cowboy hat & spurs to go with it, but is the most direct method .. HP might balk though
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 0x??0000
where ?? is unique (do ls -l /dev/vg*/group)
# mknod /dev/vgxx/rlvol1 c 64 0x??0001
# mknod /dev/vgxx/lvol1 b 64 0x??0001
# vgchange -a y vgxx
2 Variation of above, still a cowboy!
restore /dev/vgxx from tape backup.
3 - Less "ye-ha" more "HP"
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 0x??0000
where ?? is unique (do ls -l /dev/vg*/group)
# vgimport /dev/vgxx /dev/dsk/cXtYdZ (other disks if appropriate)
# vgchange -a y vgxx
** DO NOT DO pvcreate on the disks, if you do so the hole just gets REALLY DEEP **
ALL methods may suffer from the problem that the kernel has probably already registered the OLD minor number and has effectively LOCKD it in. If so, just use another (unique) minor number (a minor number is 0x??0000 & ?? is what may be locked in kernel)
Good luck & chop off the fingers or remove root access from the guy/gal that did rm -r /dev/vgxx...
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 06:47 AM
11-30-2003 06:47 AM
Re: Removing missing VG configuration
I appreciate your CowBoy Moves!!! but if you realize at the end of his question, he is asking to remove the old configuration from the /etc/lvmtab so that's why I posted
vgscan -v
Abdul,
Please tell us how you fixed it!!!
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 05:55 PM
11-30-2003 05:55 PM
Re: Removing missing VG configuration
Appreciate your help but Tim is giving the correct answer.
Hope we are dealing as one internationatiol team work, so no bother who is giving the correct answer.
~Abdullah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 06:30 PM
11-30-2003 06:30 PM
Re: Removing missing VG configuration
Take it easy pale!
Asalam Alaikum