- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- HPE 9000 and HPE e3000 Servers
- >
- How to determine the amount of disk on a server?
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
тАО11-18-2002 02:54 PM
тАО11-18-2002 02:54 PM
Through SAM I see a "Disk & File Systems" that lists hardware, # of Paths, etc but I???m not knowledgeable enough yet to know if this provides me the ???amount??? of disk we have to validate against our service contract. I assume ???amount??? is in regard to total Mbytes, right?
I???ve tried a few other commands such as ioscan ???fnCdisk and even went into the server room to view the disks in the server but its pretty foreign to me. This should be available through CLI, shouldn???t it?
In advance, all help will be appreciated.
Sandra
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 03:18 PM
тАО11-18-2002 03:18 PM
Solutionioscan -fnC disk|grep -v disk|awk '{print $2}'|xargs -i diskinfo {}
That will output the following :
SCSI describe of /dev/rdsk/c0t1d0:
vendor: HP
product id: C2247
type: direct access
size: 1025730 Kbytes
bytes per sector: 512
SCSI describe of /dev/rdsk/c0t2d0:
vendor: HP
product id: C2247
type: direct access
size: 1025730 Kbytes
bytes per sector: 512
SCSI describe of /dev/rdsk/c0t3d0:
vendor: TOSHIBA
product id: CD-ROM XM-3401TA
type: CD-ROM
size: 0 Kbytes
bytes per sector: 0
SCSI describe of /dev/rdsk/c0t5d0:
vendor: IBM
etc.....
Then you can just add up the "size" fields. Or practice your script writing and have a script add them up for you.
I would ouput the above results to a file for reference later. To do that just follow the command I gave you with a > filename and that's it.
ioscan -fnC disk|grep -v disk|awk '{print $2}'|xargs -i diskinfo {} > filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 05:27 PM
тАО11-18-2002 05:27 PM
Re: How to determine the amount of disk on a server?
diskinfo -v
vgdisplay -v
or better yet:
/opt/ignite/bin/print_manifest
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 06:07 PM
тАО11-18-2002 06:07 PM
Re: How to determine the amount of disk on a server?
#!/usr/bin/sh
function disks
{
for i in `ioscan -fnC disk|grep -v floppy|grep rdsk|awk '{print $2}'`
do
diskinfo -b $i
done
}
x=0
for i in `disks`
do
printf "%5.#2f\n" `echo "$i/(1000*1024)"|bc -l `
x=`expr $x + $i`
done
printf "Total disk space %5.2f GB\n" `echo "$x/(1000*1024)"|bc -l`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 09:03 PM
тАО11-18-2002 09:03 PM
Re: How to determine the amount of disk on a server?
http://www.docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/diag/stm/stt_start.htm&searchterms=stm&queryid=20021118-220617
To find out detail information of a specific disk ..
# cstm
cstm> map
cstm> sel path
cstm> info
cstm> infolog
You should be able to information like the productID, firmware rev, serial number, model and capacity in MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2002 06:57 AM
тАО11-21-2002 06:57 AM