- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't vgreduce
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
12-20-2002 11:18 AM
12-20-2002 11:18 AM
Can't vgreduce
pvdisplay -v /dev/dsk/c1t3d0
--- Physical volumes ---
PV Name /dev/dsk/c1t3d0
VG Name /dev/vgname
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 9416
Free PE 9250
Allocated PE 166
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
--- Physical extents ---
PE Status LV LE
0000 free 0000
... all the way to ...
9415 free 0000
- Justin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:20 AM
12-20-2002 11:20 AM
Re: Can't vgreduce
It appears to have some 700MB still allocated. Go through the logical volumes with lvdisplay -v and see if you can find one with extents on /dev/dsk/c1t3d0.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:24 AM
12-20-2002 11:24 AM
Re: Can't vgreduce
vgdisplay -v /dev/vg00 | grep c1t3d0
for all your vg's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:26 AM
12-20-2002 11:26 AM
Re: Can't vgreduce
I may try and vgchange -a n && vgchange -a y and see if that makes any difference or not once I shut down the application that uses this the VG.
- Justin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:30 AM
12-20-2002 11:30 AM
Re: Can't vgreduce
Only one of my VG has this disk as part of it. But none of the LV's are on this disk (according to lvdisplay). Very strange...
--- Physical volumes ---
PV Name /dev/dsk/c1t3d0
PV Status available
Total PE 9416
Free PE 9250
Autoswitch On
- Justin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:35 AM
12-20-2002 11:35 AM
Re: Can't vgreduce
I'm not sure how to fix it. Was c1t3d0 ever part of an LVM mirror? I wonder what would happen if you mirror an LV between two PVs, break the mirror, and then do an lvremove on the lvol? Would LVM know to go free up the PEs on the second disk after the mirror has been split?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:36 AM
12-20-2002 11:36 AM
Re: Can't vgreduce
Maybe the vgchange will "wake it up" - we can hope. If it doesn't you might want to try physically disconnecting then using vgreduce -f. From the man page on vgreduce:
The vgreduce command with -f option removes all missing physical
volume from the volume group.
That sounds like just the ticket.
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:39 AM
12-20-2002 11:39 AM
Re: Can't vgreduce
Actually, further reading makes me have doubts about vgreduce -f :
"-f vg_name force reduction of missing physical volume(s) in a
given volume group. This option does not require
a physical volume (PV) to be supplied on the
command line. vgreduce obtains the name of each
physical volume (PV) belonging to the volume group
from the file /etc/lvmtab. It then reads the LVM
structures from each PV and compares these with
that held by the kernel to work out which PVs are
missing. PVs which are missing will be candidates
for removal. If all the physical extents on the
missing PV are free then it will be removed from
the volume group. Otherwise vgreduce will report
the physical to logical extent mapping. For
missing PVs, which have extents in use, you must
free up all the extents by using lvreduce(1M) or
lvremove(1M) and re-run vgreduce with the -f
option. This option is most commonly used when
the vgdisplay(1M) command shows "Cur PV" higher
than "Act PV" and all of the PVs belonging to the
volume group are attached. This option only works
on PVs and not on links.
Your vgexport idea is sounding better all the time.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 11:47 AM
12-20-2002 11:47 AM
Re: Can't vgreduce
The disk was part of the volume group at one time. I did a mirror/break for all LV's to new disks (on a SAN). When I was done I went to do a vgreduce of the disk and could not.. This is where I am now. There were two disks I moved data off of and one I could vgreduce just fine, it showed 0 extents in use. The other disk showed extends in use but now where.
Should I just do the vgchange -a n && vgchange -a y then vgexport/import or what about doing a vgscan, would that do anything for me? The disk I am trying to remove is from a LUN on a AutoRaid 12. I don't see the LED flashing so I assume there is do data being access (still on the AutoRaid).
- Justin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2002 06:00 AM
12-23-2002 06:00 AM
Re: Can't vgreduce
Thanks to all who replied!
- Justin