Operating System - HP-UX
1834647 Members
2241 Online
110069 Solutions
New Discussion

Space remaining on Physical Volume

 
SOLVED
Go to solution
maxell_1
Frequent Advisor

Space remaining on Physical Volume

Hi,

How can I find the remaining hard disk space in my hard disk with paramteres as below?

Thanks


1) Physical Volume
/dev/disk/disk4_p2

2) diskinfo /dev/rdisk/disk4
SCSI describe of /dev/rdisk/disk4:
vendor: HP
product id: LOGICAL VOLUME
type: direct access
size: 143338560 Kbytes
bytes per sector: 512

5 REPLIES 5
john123
Trusted Contributor
Solution

Re: Space remaining on Physical Volume

Use pvdisplay /dev/disk/disk4_p2
And multiply free PE with the PE size

unixguy_1
Regular Advisor

Re: Space remaining on Physical Volume


Hi Maxell,

diskinfo command will show the exact used and free space in a disk.

and du/bdf command also the usage of disks.

Note:- du is not in HP-UX,use bdf command.

and pvdisplay -v /dev/vg01/cxtxdx

above commands are shown the exact the details of free space in disks.

Regards,
Unixguy.
OFC_EDM
Respected Contributor

Re: Space remaining on Physical Volume

Use vgdisplay -v and lvdisplay commands to find out if the disk is in a volume group / lvol.

When you know the VG then I think vgdisplay -v will show you all the extents in use (for ALL disks in the VG). But it should have a one or two liner showing the specific disk and how many extents are free.

Excuse the vagueness I don't have an HP system available to me right now to cut and paste examples.

Cheers
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: Space remaining on Physical Volume

As I was writing my post John123 posted the correct answer I believe :)...the memory's fading!
The Devil is in the detail.
maxell_1
Frequent Advisor

Re: Space remaining on Physical Volume

Hey Guys,

Thanks so much for the speedy advice. All of your suggestions appreciated ;)