- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgreduce -f 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
05-26-2002 11:37 PM
05-26-2002 11:37 PM
vgreduce -f error
We moved some filesystems over the weekend by splitting mirrors, exporting the VGs and reimporting the VG's from the mirrors. All worked aok except the usual problem with the new VG showing twice the number of disks than we have. Easy to fix, first do vgreduce -f, then rm the lvmtab file, vgscan etc.
On one of our servers we get an error though doing the vgreduce -f
Not all extents are free. i.e. Out of 4355 PEs, only 0 are free.
You must free all PEs using lvreduce/lvremove before the PV can be removed.
Example: lvreduce -A n -m 0 /dev/vg01/lvol1.
lvremove -A n /dev/vg01/lvol1
Here's the map of used PEs
--- Logical extents ---
LE LV PE Status 1
0000 lvol1 0000 ???
0001 lvol1 0001 ???
Can anybody shed some light on why and whats the resolution?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2002 11:40 PM
05-26-2002 11:40 PM
Re: vgreduce -f error
Ken,
did everything on the vgimport go fine ? no errors ? import aok, right number of lvols (from map file), can mount cleanly, then you moved the lvolXb's to lvolX and rlvols too, then you can sill mount aok ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2002 11:46 PM
05-26-2002 11:46 PM
Re: vgreduce -f error
It went clean as a whistle. Did this on another server and it worked fine - even the vgreduce -f worked aok. But the patch levels on the 2 boxes are different. The one it worked on is March2002 and the one it failed on is Jun01. Could it be a patch issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:41 AM
05-30-2002 11:41 AM
Re: vgreduce -f error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 12:13 AM
06-04-2002 12:13 AM
Re: vgreduce -f error
Are you reduced the swap?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 12:23 AM
06-04-2002 12:23 AM
Re: vgreduce -f error
If you get ??? in status field
I think the PV is configured in LVM and currently the PV is unavailable or bad.
You may have to replace that disk, and restore LVM configuration.
It's only my feeling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 10:10 AM
06-04-2002 10:10 AM
Re: vgreduce -f error
The vgreduce -f command will always fail if the Logical Volume Manager beleives that physical extents (pe) on the physical volume (pv) you are trying to remove are allocated to a logical volume. The volume group status area (VGSA) contains and tracks pe data that determines whether the extent is stale/current or unknown which is shown as ??? next to the pe in lvdisplay. This data is not altered during a vgexport. By running the command:
# pvdisplay -v /dev/vg01/lvol[1-9] |grep ?
you will find any "unknown" physical extents. These must be resolved before vgreduce will work.
Which disk is being displayed that the LVM thinks these pe are assigned in your lvdisplay?
Refer to doc KBRC00000632
Thanks for participating in the forums,
Martin
Chaos reigns within. Reflect, repent, and reboot. Order shall return.