- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Discripency on LV's and PV's
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
Discussions
Discussions
Forums
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
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
тАО07-28-2009 01:51 AM
тАО07-28-2009 01:51 AM
Could someon tell me the steps to rectify the discrepancies on vgdisplay output?
# vgdisplay -v /dev/racdbp_clon |more
--- Volume groups ---
VG Name /dev/racdbp_clon
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 17
Open LV 16
Max PV 255
Cur PV 18
Act PV 17
Max PE per PV 7500
VGDA 34
PE Size (Mbytes) 16
Total PE 34901
Alloc PE 34901
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
There is discrepancy in Cur LV:Open LV and Cur PV:Act PV
I think someone did improper lvm config in the past. Now I could not find the missing lv to reduce/remove that lv using pvkey.Because of that vgreduce -f also failing with this message.
# vgreduce -f /dev/racdbp_clon
Not all extents are free. i.e. Out of 1026 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
Ganesh.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 03:55 AM
тАО07-28-2009 03:55 AM
SolutionCur PV 18
Act PV 17
Normally this is caused by the removal of a physical volume from the volume group.
If there are extents on the missing physical volume it would explain all of the impact.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 05:20 AM
тАО07-28-2009 05:20 AM
Re: Discripency on LV's and PV's
That's why I tried vgreduce -f to remove the missed pv's. But it is not allowing since some lv's are created on the missed pv.
I am not able to find which lv resides on the missed pv since Cur LV:Act LV is shows some discrepancy. So first I should fix LV discrepancy before I fix PV discrepancy.
How do i fix LV discrepancy?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 05:26 AM
тАО07-28-2009 05:26 AM
Re: Discripency on LV's and PV's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 05:27 AM
тАО07-28-2009 05:27 AM
Re: Discripency on LV's and PV's
Some trial and error is possible.
I just had the same problem with my pair of HP-UX systems with JBOD.
cd /etc
mv lvmtab lvmtab.save
vgscan -a -v
Then you may need to activate/deactivate the volume group (I forget).
vgreduce -f
Basically I went through a laundry list of what I remembered and what I could find in the forums until I resolved the problem, which was vg00 had a disk on the JBOD, thought extents were allocated. I'd moved and pulled the disks out of the jbod and hadn't bothered to get them back in the same spot.
I may have tried exporting the volume group and then importing it.
Wish I'd taken better notes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 05:39 AM
тАО07-28-2009 05:39 AM
Re: Discripency on LV's and PV's
attached "vgdisplay -v vgname" output.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 05:46 AM
тАО07-28-2009 05:46 AM
Re: Discripency on LV's and PV's
Could you pleae check lvol16... /dev/racdbp_clon/lvol16 & paste lvdisplay -v output for this LV ( only Disks used for this LV )
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 06:27 AM
тАО07-28-2009 06:27 AM
Re: Discripency on LV's and PV's
Nothing wrong in the logical volume you specified. It just spread across two disks.
# lvdisplay -v /dev/racdbp_clon/lvol16 |more
--- Logical volumes ---
LV Name /dev/racdbp_clon/lvol16
VG Name /dev/racdbp_clon
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 65696
Current LE 4106
Allocated PE 4106
Stripes 0
Stripe Size (Kbytes) 0
Bad block NONE
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c7t8d2 2053 2053
/dev/dsk/c11t2d7 2053 2053
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 06:34 AM
тАО07-28-2009 06:34 AM
Re: Discripency on LV's and PV's
strings /etc/lvmtab
Compare that to the output from the attached report to identify the missing PV
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 07:05 AM
тАО07-28-2009 07:05 AM
Re: Discripency on LV's and PV's
lvmtab contains only 17 disks.
Any other solution from anyone?
Ganesh.