- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: remove 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
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
01-08-2006 01:16 PM
01-08-2006 01:16 PM
remove VG
I need to remove one of the vg that is no longer in use. I have deleted all the LV. should I just vgremove /dev/myvg? Do I need to do a vgscan -v to update my lvmtab again.
I need to release the pv in /dev/myvg and use it to extend other vg. Should I do pvremove first and pvcreate again before I can do vgextend to the other vg?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 01:22 PM
01-08-2006 01:22 PM
Re: remove VG
no need to vgscan but u may confirm it by referring to /etc/lvmtab if the vg is still there:
# strings /etc/lvmtab
perform "pvcreate -f" on the pv u like to vgextend. this will delete any file system still present.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 01:32 PM
01-08-2006 01:32 PM
Re: remove VG
You could then pvcreate the freed up pv's and use vgextend to add them to other volume groups.
You shouldn't need to run vgscan.
to sum it up...
lvremove
vgreduce
vgremove
pvcreate
vgextend
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 01:38 PM
01-08-2006 01:38 PM
Re: remove VG
I always do a pvremove first before I use it again for another vg. Because if I see an error message I know it is being used by another vg. So I do not need to remember and double check if I pick up the correct one.
Do a pvremove and create new pv using pvcreate without -f option. That is my advice.
pvcreate -f works just fine.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 01:48 PM
01-08-2006 01:48 PM
Re: remove VG
You can just do
#vgexport
to remove all reference to that vg from the system, including dev files.
Latter you can do
#pvcreate -f < the disks> , to the disks which are part of this vg now, to use for another vg.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 03:18 PM
01-08-2006 03:18 PM
Re: remove VG
After you remove the LVs with the lvremove command, you can use the vgexport command.
This will remove the /dev/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 04:45 PM
01-08-2006 04:45 PM
Re: remove VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 10:22 PM
01-08-2006 10:22 PM
Re: remove VG
you could youse multiple PV arguments with vgreduse command for this.
you have to reduce alternate links also if any.
One you come to a position were only one PV is presrent in the VG , you could remove the VG using vgreomve command.
The best and recomended method for removing a vg is using a vgexport command which will remove all the entries about VG and PVs belonging to that VG from /etc/lvmtab.
shinoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 10:36 PM
01-08-2006 10:36 PM
Re: remove VG
You can remove vg through both methods. First is vgreduce and other is vgexport ? The second one is more appropriate and will require very less efforts.
In case of first you require to reduce VG to only one disk and this is applicable even if you have more than one link for one disk. But in the second case all the disks will be released even if your VG have 10 disks with 4 links each.
After removing the VG by either method you need to pvcreate it using -f option. This is requires as the charaterstics of the VG to which the disk/disks are being added now could be different.
Also do assign points to the responses to your threads. Your unassigned threads are listed here
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA610806&listType=unassigned&forumId=1
HTH,
Devender