- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgreduce error
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
09-07-2001 11:14 AM
09-07-2001 11:14 AM
I got into a situation (long story) whereby a pvdisplay of a drive shows 500 PE used in the header, yet all PE show as "free" in the detail list. There are no LV allocated to the drive (I'm sure!), yet vgdisplay still shows the drive as belonging to the VG.
I have tried to vgreduce the drive out from the VG, but the command fails, insisting that there are still PE assigned.
How can I force this drive out of the VG?
Can I physically remove the drive from the FC10 and replace with a new drive? I have a spare onhand.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 11:31 AM
09-07-2001 11:31 AM
Re: vgreduce error
with the -f option for Force.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 11:31 AM
09-07-2001 11:31 AM
Re: vgreduce error
Are you very sure that pvdisplay -v /dev/dsk/cxtxdx doesn't show any lv's associated with it?..
Check
pvdisplay -v /dev/dsk/your_dev_file |grep current
If it shows something there, means it's being used.
You can replace this disk and do a vgcfgrestore but it's better to fix the problem first than forcing the drive out.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 11:50 AM
09-07-2001 11:50 AM
Re: vgreduce error
I am sure that there are no LV on the affected drive. I ran pvdisplay -v /dev/dsk/c6d1t0 and all PE show as "free".
When I run vgdisplay -v I still see the drive:
PV Name /dev/dsk/c6t1d0
PV Status available
Total PE 4340
Free PE 3840
Autoswitch On
===============================================
When I run pvdisplay I get the following:
--- Physical volumes ---
PV Name /dev/dsk/c6t1d0
VG Name /dev/vgora02
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 4340
Free PE 3840
Allocated PE 500
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
--- Physical extents ---
PE Status LV LE
0000 free 0000
0001 free 0000
0002 free 0000
0003 free 0000
.
.
.
4337 free 0000
4338 free 0000
4339 free 0000
==========================================
I tried using the vgreduce -f option, but it had no effect. My only other plan at the moment is to physically remove the affected drive and then try the vgreduce -f option again.
The drive is good, only the VG/LV/PV info is out of sync.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 12:04 PM
09-07-2001 12:04 PM
Re: vgreduce error
Do the following
echo 2000?8c+8x|adb /dev/dsk/c6t1d0
and if it returns any info such as LVMRECxxxx then that disk belongs to a VG.
Also what if you try to create a LV on that disk?
Also which LVM patches are installed on your machine?
I know there was a patch in the past PHCO_20870 which fixed a similar problem. The latest LVM cumulative patch is PHCO_24437, Make sure you get the dependcy patches as well in case you decide to install this.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 12:09 PM
09-07-2001 12:09 PM
Re: vgreduce error
2000: LVMREC016057 3A75 3B82 9C23 6057 3A75 3B82
9F16
I'll check the patch levels as suggested. I know the server has the DEC2000 General Release Bundle loaded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 12:36 PM
09-07-2001 12:36 PM
Re: vgreduce error
I have PHCO_21630 LVM commands cumulative patch loaded.
A little history on what happened:
I was "borrowing" a mirror disk from one LV to another so that I could then break a mirror set and replace a 10K rpm drive with a faster 15k rpm drive. After the switch I would then return the mirror drive back to the original LV.
I used lvreduce -m 0 ... to reduce the mirror set and then used lvextend -m 1 /dev/vgxxx/lvxxx /dev/dsk/c5t1d0 /dev/dsk/c6t1d0 to add the mirror (I have two paths to the FC10).
I found out that there was also a smaller 2000MB (500 PE) residing on the disk that I missed. Instead of the system failing with a "too many extents" error, it proceeded to add the new mirror to the drive and over-allocated the PE somehow.
I was able to lvreduce -m 0 the newly created mirror and the smaller 2000MB mirror but the 500 over-allocated PE remain.
*sigh*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 01:35 PM
09-07-2001 01:35 PM
SolutionAs Ramesh suggested, try creating few logical volumes on the drive and then delete them. And then try reducing it.
If this doesn't work, I think you are left with no option except to replace the disk.
After replacing the disk, do a vgcfgrestore, then vgchange -a, reduce it from the volume group and re-add it to make it clean.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 05:25 AM
09-24-2001 05:25 AM
Re: vgreduce error
This weekend I was able to take the system down for maintenance. I unmounted the filesystems on the affected volume group and de-activated it (vgchange -a n ). Then I was able to restore the proper config to the disk (vgcfgrestore -n vgxxx /dev/rdsk/cx/tx/d0).
Thanks to all for the advice and points have been assigned.