- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
11-11-2004 01:45 AM
11-11-2004 01:45 AM
we had a disk crash in our RAID array. the array needed rebuilding but I forgot to break some of the mirrors to another array and remove the physical disks from the VG.
So I have now realised my mistake and tried to vgreduce the VG to get the physical volumes out. In vgdisplay the volume in question is showing as unavailabe and has stale extents on it. What I need to do is get the PV out of the VG, pvcreate it and then add it back to the VG.
When I try an lvreduce -m 0 I get that the PV still has extents in use. So tried to vgreduce the Vg and got a message saying there was an IO error.
is there anyway to force remove the PV from the VG?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 01:47 AM
11-11-2004 01:47 AM
Re: VGREDUCE PRoblem
Force the vgreduce with -f
vgreduce -f /dev/vg_name
You do not need the PV as it will remove any/all missing PVs.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 01:49 AM
11-11-2004 01:49 AM
Re: VGREDUCE PRoblem
Just replace the bad disk with a new good one and do the following:
# vgcfgrestore -n /dev/vg?? /dev/rdsk/c?t?d?
# vgchange -a y vg??
# vgsync vg??
That's much easier than all the steps of manually rebuilding all of your mirrors on that disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 01:57 AM
11-11-2004 01:57 AM
Re: VGREDUCE PRoblem
We had a disk crash in our VA7110 and we dont use Hot spares, so we called in HP, the disk was pulled and then replaced. this was the wrong thing to do, the new disk should have been put in along side the crashed disk to allow the array to rebuild. It turns out we didnt have enough space in the array to do a rebuild. So they only way out was to completley rebuild the array, according to HP. We have now purchased hot spares for both arrays.
Hope that explains why we are doing it this way.
Tried a force on the vgreduce and got:
not all extents are free, please free the extents first using lvremove/reduce here is a list of the free extents.....
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 02:11 AM
11-11-2004 02:11 AM
SolutionCheck this doc.
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063208748
Document description: LVM: splitting a stale mirror from a mirrored volume group
Document id: S3100003942
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 02:39 AM
11-11-2004 02:39 AM
Re: VGREDUCE PRoblem
Unless you remove the disk from the definitions of the logical volumes, you will not be able to reduce the PV from the VG. There are two options. Easiest is to get the disk back, run 'vgcfgrestore' to only restore the LVM structures and reduce the mirrors. If you don't have that choice, you will need to use the painful and time taking process of reducing it through 'pvkey'. Find out all the LVs in that VG. Run 'lvdisplay -v -k /dev/vgxx/lvolx' and get the corresponding PV Key for the failed disk. Then run 'lvreduce -k -m 0 /dev/vgxx/lvolx
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 06:28 PM
11-11-2004 06:28 PM
Re: VGREDUCE PRoblem
Thanks.