Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk Size in MB

Status
Not open for further replies.

new2ora

Technical User
May 5, 2003
17
CA
Hi,

I am very new to Unix...so please DONOT laugh.

I am trying to get an idea of how much disk space I have left and how much I am using. Is there a way to see this info in bytes(MB/GB etc).

Thanks in advance.
 
bdf and du will show the space available in configured logical volumes.

However you may have space available in the volume group which is not assigned to logical volumes.

vgdisplay -v /dev/vg00 replacing vg00 with the name of the volume group that you are interested in, will tell you the number of free Physical Extents (PE), when multiplied by the Physical extent size will tell you the amount of free space in the volume group.

PE Size (Mbytes) 4
Total PE 2046
Alloc PE 1463
Free PE 583

In this case 4*583=2332MB free

You may also have disk(s) on your system which have not been assigned to volume groups.

#ioscan -funC disk
will tell you the disks that your system can see.

#diskinfo /dev/rdsk/c*t*d*
replacing the *'s will tell you the size of the disks that the system can see.

#strings /etc/lvmtab will tell you which disks are assigned to which volume groups as will vgdisplay -v output

Taking away from ioscan output those disks used and those in use by lvm and those disks which are raw(some databases use raw), which can be identified from fstab, you will know whether there are any disks on your system which are not in use.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top