- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: how to know the disk's capacity
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 05:16 PM
тАО02-17-2004 05:16 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 05:51 PM
тАО02-17-2004 05:51 PM
Solutionon V5.1A use
#diskconfig
which opens a GUI , click on each disks you can see the size of the disks.
in 4.0F use the tool 'sysconf' which creates a html file, open the html using netscape/IE which gives entire config of the machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 06:21 PM
тАО02-17-2004 06:21 PM
Re: how to know the disk's capacity
On V5.x (capacity is in 512byte blocks)
hwmgr -get attrib -cat scsi | grep -e dsk -e capacity
Enjoy,
Johan.
_JB_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 11:15 PM
тАО02-17-2004 11:15 PM
Re: how to know the disk's capacity
for an operational disk:
disklabel -r
for a new disk:
disklabel -z
disklabel -rw
disklabel -r
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 11:15 AM
тАО02-19-2004 11:15 AM
Re: how to know the disk's capacity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 11:32 AM
тАО02-19-2004 11:32 AM
Re: how to know the disk's capacity
All the previous answers will work. For all the disk this can get a bit tedious, I use the following script.
disk=`/sbin/hwmgr -view dev | grep dsk | awk '{print $2}' | cut -d/ -f4`
for id in $disk
do
/sbin/disklabel -r $id
if (( $? ))
then
print " No Label for $id "
else
DISK_ID=`/sbin/disklabel -r $id | grep dsk`
let SIZE=`/sbin/disklabel -r $id | grep sectors/unit | awk '{print $2}'`
let SIZE_GB=$SIZE/2097152
echo $SIZE_GB $id
fi
done
For v4.0F the command to get the disk id's is different but you can modify the script to give you the disk id's the rest is the same.
Hope this helps..
regards,
Orrin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 11:33 AM
тАО02-19-2004 11:33 AM
Re: how to know the disk's capacity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2004 12:02 AM
тАО02-20-2004 12:02 AM
Re: how to know the disk's capacity
However the hwmgr is designed to handle your question in one og. Please check it's man pages. hwmgr is your friend!
Here is a single command line that answers your question on V5.1
hwmgr -get attrib -cat disk -a capacity -a dev_base_name
You can massage the output to your liking. For example, if you like that listed as 'disk size' then just pipe it into awk:
| awk '/nam/{d=$3}/cap/{print d,$3}
Now I do not have a v4.0 handy. But here is a disklabel based command that should be easily adapted to V4 (change to /dev/rrz* ?)
find /dev/rdisk -follow -name "dsk1*a" -exec disklabel -r {} \; | awk '/#/{d=$2}/unit/{print d,$2}'
Cheers,
Hein.