Operating System - HP-UX
1754019 Members
7288 Online
108811 Solutions
New Discussion юеВ

Re: how to check the details of unused disk

 
praveen..
Super Advisor

how to check the details of unused disk

Hi,
I have removed some LVs / FSs from one VG right now.

and now i have to release some unused disk from that VG.

how to check that how much of the unused disk in that volume group safely removed.

please suggest
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: how to check the details of unused disk

Check the "free PE" count in vgdisplay.


Pete

Pete
Carlos Roberto Schimidt
Regular Advisor

Re: how to check the details of unused disk

Hi,

Try "vgdisplay -v /dev/vg_name". Is possible looking for specific disk:

--- Physical volumes ---
PV Name /dev/dsk/c0t0d0s2
PV Status available
Total PE 4318
Free PE 350
Autoswitch On
TwoProc
Honored Contributor

Re: how to check the details of unused disk

If you know that you believe no longer have any lv's on them, you can verify by typing the "pvdisplay" command.

pvdisplay -v /dev/dsk/cxxtxxdxx

Look at the extent map and make sure that no extents are participating in any lvols.
We are the people our parents warned us about --Jimmy Buffett
James R. Ferguson
Acclaimed Contributor

Re: how to check the details of unused disk

Hi:

A verbose 'vgdisplay' of the volume group will show the physical volumes and the inuse and free extents for each at the end.

# vgdisplay -v vgNN

Thus, if a physical volume shows a Free PE count equal to its Total PE count, it is unused and can be 'vgreduced' from the volume group.

Regards!

...JRF...
Sivakumar TS
Honored Contributor

Re: how to check the details of unused disk


Hi Praveen,

You may do a #vgdisplay -v to get the Free PE list and find the disks that is not used and you do Xvgreduce to remove those disks from VGs.

Or you can also do a #pvdisplay -v for the disks and find the unused disks.

Regards,

Siva.
Nothing is Impossible !