1834757 Members
2954 Online
110070 Solutions
New Discussion

space availability

 
SOLVED
Go to solution
sjana
Occasional Advisor

space availability

Hello All,

I need to find out the space available in the HDD. What command i need to execute?

tar
siva
3 REPLIES 3
Ralph Grothe
Honored Contributor
Solution

Re: space availability

diskinfo /dev/rdsk/c?t?d?
Madness, thy name is system administration
Florian Heigl (new acc)
Honored Contributor

Re: space availability

I'll assume the disk is under LVM control?
Try the following:
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t0d0
/dev/dsk/c1t0d0
/dev/vg01
/dev/dsk/c10t3d4 #/dev/dsk/c13t3d4

Then check it's capacity

pvdisplay -v /dev/dsk/c10t3d4| head
-15
--- Physical volumes ---
PV Name /dev/dsk/c10t3d4
PV Name /dev/dsk/c13t3d4 Alternate Link
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 5
PE Size (Mbytes) 4
Total PE 2155
Free PE 655
Allocated PE 1500
Stale PE 0
IO Timeout (Seconds) 180
Autoswitch On


If You just wanted to know how much free space exists in Your system and I told You too much now, then just do a
vgdisplay
and look for the Free PE field, and multiply it by the PE Size.

Good luck,
Florian
yesterday I stood at the edge. Today I'm one step ahead.
sjana
Occasional Advisor

Re: space availability

hello all,

thanks for yr immediate reply.

tar
siva