Determining number of hard disks in the system


 
Thread Tools Search this Thread
Operating Systems Solaris Determining number of hard disks in the system
# 1  
Old 03-20-2014
Determining number of hard disks in the system

Hello to all,

what is the command in Solaris/Unix which I can use to determine how many hard disks exist in the system?
I have tried with different command such as df -lk and similar but cannot know for sure how many actual disks are installed.

Commands like # fdisk -l | grep Disk and # lshw -short -C disk doesn't work in Solaris.

Thank you.

Last edited by vbe; 03-20-2014 at 11:47 AM..
# 2  
Old 03-20-2014
You are maybe using pools... type zpool list to see...
# 3  
Old 03-20-2014
Unfortunately, this is not it. I receive "no pools" result.
# 4  
Old 03-20-2014
Try
Code:
format

or
Code:
cfgadm

# 5  
Old 03-20-2014
Quote:
Originally Posted by firefox111
Try
Code:
format

or
Code:
cfgadm

yeah, after format just count the number of disk? There is actually already a count, however it starts with zero. So just add +1 to what ever number is present in format.
# 6  
Old 03-20-2014
Yes...
# 7  
Old 03-20-2014
How about?
Code:
ls /dev/[sh]d*[!0-9]

If you just need the number:
Code:
ls /dev/[sh]d*[!0-9]|wc -l

Hope ths helps
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

How to reclaim hard disks and IP's in AIX?

Hello I recently received a request to reclaim hard disks and IP addresses within an AIX system(s). THe file systems are no longer in use and the client has indicated that it is OK to remove them and reclaim the disks and release the IP's. Now, since the file systems belong to a Volume group I... (8 Replies)
Discussion started by: Joseph Sabo
8 Replies

2. UNIX for Advanced & Expert Users

Separated hard disks for Operating System and applications - better IO performance ?

Dear all, I would like to ask if there are any positive effects from having a dedicated hard disk for the operating system. The scenario would be to have a dedicated disk for the OS and a dedicated disk for the applications. Do you see any advantages in such a configuration such as better... (9 Replies)
Discussion started by: petrospis
9 Replies

3. Shell Programming and Scripting

How to get number of attached hard disks in HP-UX

how do i get the number of attached hard disks in HP-UX (1 Reply)
Discussion started by: achak01
1 Replies

4. Solaris

Hard/Transfer errors in disks

Could you please explain us what are these transport/hard errors... when i ran the following command, iostat -E | grep Errors i got the following: sd240 Soft Errors: 37 Hard Errors: 1144 Transport Errors: 0 sd578 Soft Errors: 0 Hard Errors: 890 Transport Errors: 0 Please... (5 Replies)
Discussion started by: sundar3350
5 Replies

5. AIX

Mount points to hard disks

Hi I am oracle DBA and sometimes need to see on which disks oracle data files are residing . How can we check that . The file system is jfs on aix 5.2.0.0 The method is use is to use mount |grep oracle_dir_name or lsfs mount_point_name command to see what /dev/logical_volume_name is mounted... (1 Reply)
Discussion started by: clifford
1 Replies

6. Solaris

Get onyl local hard disks

How can I get only the local hard disks in Solaris? I've tried iostat -x, iostat -E, etc, but it shows the cdroms, dvds, external storage... I want only the local physical hard disks. Thanks. (2 Replies)
Discussion started by: psimoes79
2 Replies

7. Solaris

Hard disks in solaris

I need to insert a new hard disk into a Sun Fire v210 machine. The (only) internal disk which is already in the machine is part number XRA-SC1CB-73G10K (DISK DRIVE ASSY. 73GB, 10K RPM, with SPUD BRACKET). I also have nearly endless access to IBM hard disks at extremely low prices and would there... (2 Replies)
Discussion started by: sprellari
2 Replies

8. Filesystems, Disks and Memory

External Lacie USB hard disks

I'm trying to mount a USB Lacie external hardrive in my Linux system but am having trouble doing so, I'm also having trouble mounting my USB ZIP 250 drive. It is totally me being stupid, but I'm new to unix and am having a few teathing problems. the command I'm using is the following mount... (4 Replies)
Discussion started by: electrode101
4 Replies
Login or Register to Ask a Question