System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to see disk attached to the server

SOLVED
Go to solution
Arturo Galbiati
Esteemed Contributor

How to see disk attached to the server

Hi Gurus,
I need to check if a disk has been attached to the server.
How can I see all the attached disks to the server (no matter of it's mounted or not)?
Rgds,
Art
7 REPLIES
Matti_Kurkela
Honored Contributor
Solution

Re: How to see disk attached to the server

First, if you think a disk may have been hot-added, perform the appropriate SCSI scan procedures. See RedHat Storage Online Reconfiguration Guide:

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/html/Online_Storage_Reconfiguration_Guide/scanning-storage-interconnects.html

After that, all connected disks should be listed in /proc/partitions (e.g. "less /proc/partitions").

In RHEL 5, the "lsscsi" command is very useful if you have multiple SCSI and/or FibreChannel HBAs. If it is not installed, run "yum install lsscsi" to install it.

The "fdisk -l" command works too.

MK
MK
Larry Klasmier
Honored Contributor

Re: How to see disk attached to the server

try pvs or pvdisplay

Re: How to see disk attached to the server

Use fdisk -l that would show the disk device file name like /dev/hda.
Jupinder Bedi
Respected Contributor

Re: How to see disk attached to the server

fdisk -l is the command in linux
All things excellent are as difficult as they are rare
Kranti Mahmud
Honored Contributor

Re: How to see disk attached to the server

Hi Art,

If you want to see information about your disk you can run fdisk -l. you also can run the pvdislay, vgdisplay etc.

You have also third party software to monitor you disks for example
http://gentoowiki.com HOWTO_Monitor_your_hard_disk (s)_with_smartmontools

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
GUNASEKARAN_1
Occasional Advisor

Re: How to see disk attached to the server

Hi,

fdisk -l will list the attached disks to the server
Arturo Galbiati
Esteemed Contributor

Re: How to see disk attached to the server

ok, thx