1835215 Members
2421 Online
110078 Solutions
New Discussion

Raw disk space

 
M.sureshkumar
Regular Advisor

Raw disk space

Hi All,

How to check on the amount of raw disk space available in hp unix.The "bdf" is used to see the free disk space in hfs and vxfs file systems.How to see the raw disk space in hp unix because already i created 3 raw logical volume.Pls give me the command for to see free space for raw disk.

Regards,
Suresh,
3 REPLIES 3
Paul_481
Respected Contributor

Re: Raw disk space

Hi,

Try "pvdisplay /dev/rdsk/c-t-d-"

Regards,

Paul
Henk Geurts
Esteemed Contributor

Re: Raw disk space

hi Suresh
this thread will provide the answer :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=605567

regards
Henk
Jannik
Honored Contributor

Re: Raw disk space

The command is diskinfo /dev/rdsk/cXtXd0 and this small script will get the information and add it:

#!/usr/bin/ksh
ADD=0
SIZE=0

for i in $(ioscan -funC disk | awk '/rdsk/ {print $2}')
do
SIZE=$(diskinfo $i | awk '/size/ {print $2}')
ADD=`echo $SIZE + $ADD | bc`
echo "The Size of $i : $SIZE KB"
done

echo "All disks raw size : $ADD KB"
jaton