- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding total number of disks
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
Forums
Discussions
Discussions
Discussions
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
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
10-03-2003 04:49 AM
10-03-2003 04:49 AM
Finding total number of disks
I am trying to find out total number of disks available on some HP 9000 L5000 class, N4000 and K570 class servers.. I used following command..
disks=`ioscan -fkC disk |grep -v CD|grep -v Class|grep -v ==== |wc -l`
echo "total disks = "$disks
I found some wrong information on the output.
It shows 239 disks on a N class server. Can you please tell me how to find out total number of disks....
thanks in advance
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 04:56 AM
10-03-2003 04:56 AM
Re: Finding total number of disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 04:56 AM
10-03-2003 04:56 AM
Re: Finding total number of disks
ioscan -fnkC disk | grep disk | wc -l
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 05:00 AM
10-03-2003 05:00 AM
Re: Finding total number of disks
I suspect you're seeing alternate paths. You could use SAM but you're probably trying to do this in a script? How about using vgdisplay -v instead of ioscan?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 05:08 AM
10-03-2003 05:08 AM
Re: Finding total number of disks
ioscan -fnkC disk is also not enough.
Pete:
I tried
vgdisplay -v | grep "PV Name"
46
but, i think vgdisplay -v will show only physical volumes that are attached to a VG, is it right? let me check the man pages? any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 05:09 AM
10-03-2003 05:09 AM
Re: Finding total number of disks
armdsp -a
and the
ioscan -fnC |grep disk |wc -l for the LUN's
i could find correct with alternate links also
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 05:13 AM
10-03-2003 05:13 AM
Re: Finding total number of disks
As Pete has pointed out you have to be careful about using ioscan to determine disk/LUN count. Not only will it show alternate links (effectively doubling the disk count), it will also show "gatekeeper" devices on XPs & EMCs - not to mention CD/DVD devices.
So I'd have to agree that
vgdisplay -v | grep "PV Name" | grep -v grep | grep -v "Alternate Link" | wc -l
would be a better method.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 05:43 AM
10-03-2003 05:43 AM
Re: Finding total number of disks
2) You can use the print_manifest command and look at the disk devices session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 07:38 AM
10-03-2003 07:38 AM
Re: Finding total number of disks
Did u try ?
# sympd list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 07:52 AM
10-03-2003 07:52 AM
Re: Finding total number of disks
I'm attaching a script that will let you check and count(you need to make a mod to get a count) of all disks configured and part of logical volumes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com