- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trying to delete VG
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
02-03-2003 07:06 PM
02-03-2003 07:06 PM
Trying to delete VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 07:15 PM
02-03-2003 07:15 PM
Re: Trying to delete VG
How did you delete the VG?
You need to export the vg by using vgexport command this will remove the VG from lvmtab and freeup that PV linked to the vg.
Do a man on vgexport for more information.
Thanks
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 07:20 PM
02-03-2003 07:20 PM
Re: Trying to delete VG
That pesky ole lvmtab just won't let go, huh?
Just force it with
vgexport /dev/vg_name
Be VERY careful w/the VG name as this boots it out of lvmtab as well as the /dev/vg_name dir structure.
BTW - don't use mediainit on newer drives - just use
pvcreate -f /dev/rdsk/cxtydz
to force the new VG info onto the disk.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 07:22 PM
02-03-2003 07:22 PM
Re: Trying to delete VG
The correct manner is to either use 'vgexport' or 'lvremove' each volume, then 'vgreduce' each disk from the group and then finally do a 'vgremove'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 08:22 PM
02-03-2003 08:22 PM
Re: Trying to delete VG
You will need to de-activate the volume group else it won't let you vgexport. To de-activate you need to unmount all the logical volumes associated with the volume group. Once all the file systems are unmounted do the following (ex., vg01)
#vgchange -a n vg01
#vgexport vg01
Then do pvcreate on each of the disks that were in vg01 and create a new volume group.
But the glitch here is that you manually deleted /dev/vg01 directory.
If you are unable to vgexport vg01 for any reason (please post the errors you got), then you may need to reboot the box and get it into single user mode. Once in single user mode, you can export the volume group as by default it wouldn't be activated by that time.
Please continue posting your issues so that someone can assist you in fixing the problem.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 05:48 AM
02-05-2003 05:48 AM
Re: Trying to delete VG
You can't create the new physical volume because it says it in the lvmtab file.
The pvcreate command might just be telling you that the disk was once in a volume group. Perhaps that volume group information is still on the disk, but no where else? The pvcreate command sees volume group information on disk. It does not know if this info is real or not. It assumes it is. So pvcreate tells you the disk is in use. But it's not.
If the disk is NOT really in use, then use pvcreate -f
But be careful. You do NOT want to use a disk that is ALREADY in use. Run ioscan. Run vgdisplay -v. Make sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 07:36 AM
02-05-2003 07:36 AM
Re: Trying to delete VG
1. do a pvcreate -f /dev/rdsk/cxtydz for the disks which were a part of the VG . This will not remove the information from the lvmtab file
2. To do this you can also do a mv /etc/lvmtab and do a vgscan -a again this will recreate the /etc/lvmtab file .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 07:39 AM
02-05-2003 07:39 AM
Re: Trying to delete VG
#vgchange -a n vgxx
#vgremove /dev/vgxx
#vgscan -a