LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How many drives do I have? What is my RAID configuration? (https://www.linuxquestions.org/questions/linux-newbie-8/how-many-drives-do-i-have-what-is-my-raid-configuration-231054/)

hrock 09-15-2004 05:11 PM

How many drives do I have? What is my RAID configuration?
 
Hi,

I don't have physical access to this box, but was told it was RAID 5 with with multiple SCSI drives.

How can I tell how many hard drives there are and what partition is mounted on which drive?

Here is the the output but I don't know any other commands that would help me figure out how many drives, the raid configuration, etc.

Thanks.


[me@www /me]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext2 509M 338M 145M 70% /
/dev/sda3 ext2 23M 18M 4.4M 80% /boot
/dev/sda9 ext2 68M 408k 64M 1% /tmp
/dev/sda5 ext2 2.7G 2.1G 556M 79% /usr
/dev/sda6 ext2 27G 8.4G 16G 34% /var
/dev/sda2 ext2 3.0G 1.1G 1.7G 38% /home

CroMagnon 09-15-2004 05:31 PM

If you don't have physical access to the machine, the big question is why do you need to know?

But anyway, if the drives are in a RAID5 configuration (which is likely done via actual hardware, so would be transparent to the system), then the data for all partitions is spread across all the drives, along with some redundancy so the system will still work if any single drive fails.

hrock 09-15-2004 09:13 PM

This is the output from proc/devices

Block devices:
1 ramdisk
2 fd
8 sd
9 md
11 sr
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd

does "sd" mean scsci device?

Does that mean I have 9 disk drives?

jonthelam 09-16-2004 01:38 PM

Re: How many drives do I have? What is my RAID configuration?
 
Like what CroMagnon said, the drives are transparent. You won't be able to see it unless you boot into the configuration at the BIOS. At least I can't think of any way other ways.

Cort 09-16-2004 01:48 PM

You might try the "fdisk -l" command.

Also

hd = IDE disks
hda = partition 1
hdb = partition 2
hdc = partition 3
partitions = a-h

sd = SCSI disks
partitions = a-p

ed = ESDI disk
partitions = a-d

I hope this helps!

hrock 09-18-2004 01:12 AM

Thanks for the replies but there has to be a way to check the number of drives in the raid config.

cat /proc/scsi/scsi tells me i am running a percraid 5 card

But how many drives in the array?

Thanks.

Cort 09-18-2004 08:00 AM

How about in the /etc/raidtab

This file could possibly list the number of disks per raid.


All times are GMT -5. The time now is 07:40 AM.