- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgreduce problem
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-09-2002 11:36 AM
04-09-2002 11:36 AM
vgreduce problem
Is there any other way to remove this disk from the volume group?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:41 AM
04-09-2002 11:41 AM
Re: vgreduce problem
You can do following things to solve your problem.
1. Identify the disk which you want to remove from volume group.
2. FInd out which logical volume resides in that disk.
You can do vgdisplay -v /dev/vgXX that will give you the name of Logical volume residing on the disk unser consideration.
3. remove all the LVs from the disk using lv remove.
Before doing so, please make sure that those LV you do not need.
Once all LVs have been removed from that disk, you can do vgreduce /dev/vgXX /dev/dsk/cAtBdC......
you are all set now.
let me know if you have any questions.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:46 AM
04-09-2002 11:46 AM
Re: vgreduce problem
You don't need to boot in LVM maintenance mode for reducing a VG, unless something related to root filesystems.
Before removing the PV, you have to remove or reduce the file systems from that. check it with:
# pvdisplay -v /dev/dsk/cxtydz
Remove those LVs, if not needed and then do a vgreduce. You have to unmount the file systems first.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:46 AM
04-09-2002 11:46 AM
Re: vgreduce problem
1. Do a vgdisplay -v to find the status of the disk you wnat to remove in terms of lvols .
2. Remove the logical volumes .
3. vgreduce the volume group.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:52 AM
04-09-2002 11:52 AM
Re: vgreduce problem
Be careful when reducing out of vg00 - you don't want to reduce out any of the disks containing boot or swap info. You really don't want to lose /var or /usr either.
definitely do the vgdisplay -v & determine just WHAT exactly you're reducing out BEFORE you go too far.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:55 AM
04-09-2002 11:55 AM
Re: vgreduce problem
/dev/vg00/lvol6 is currently used. But /dev/vg00/lvol6 on the disk I want to get rid of is part of the mirror I forgot to reduce.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:59 AM
04-09-2002 11:59 AM
Re: vgreduce problem
To remove the mirror:
# lvreduce -m 0 /dev/vg00/lvol6 /dev/dsk/c#t#d# (the disk you want to reduce)
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 12:00 PM
04-09-2002 12:00 PM
Re: vgreduce problem
Try this:
# lvreduce -m 0 /dev/vg00/lvol6 PV_path
# pvdisplay -v PV_path
If there is no other FS on this disk, then:
# vgreduce /dev/vg00 PV_path
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 12:16 PM
04-09-2002 12:16 PM
Re: vgreduce problem
I cannot lvreduce -m 0 on that disk because it says no mirror copies.
This the procedure I did:
lvextend -m 1/dev/vg00/lvol6 /dev/dsk/c3t2d0
(mirrored fine because I had room for lvol6)
But my original lvol6 spanned across two disks.
When I reduced it
I said
lvreduce -m 0 /dev/dsk/old1
I should have said
lvreduce -m 0 disk1 disk2
Now disk2 has /dev/vg00/lvol6 on some of the extents.
The problem is when I first reduced this /dev/vg00/lvol6 I should have give two disks(because lvol6 spanned on two disks)
instead I only gave one disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 12:24 PM
04-09-2002 12:24 PM
Re: vgreduce problem
In this situation, If you have a good backup of vg00/lvol6, then I would remove this entire LV and recreate it on the new disk, then restore it from backup. This may save a lot of your time.
However, as it is saying there is no mirror copies now. Confirm it with:
# lvdisplay -v /dev/vg00/lvol6 ( check for mirror copies)
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 12:27 PM
04-09-2002 12:27 PM