managing order and names for hd in a raid
Hi guys,
shortly, I have 2 sata disks attached to a motherboard and one on a promise pci sata controller. Everything gone well, all disks recognized by red hat 5.2 I am going to create 3 raid 1 for swap /home and / and I would like to create such raids on two different controller of course : 1 disk on sata mobo controller and 1 disk on pci sata controller USUALLY Linux gives names in orders as he find them, and I could take the vol_id and try to boot with only one disk for 3 times to discover the vol_id . But what if I have no access to this machine? I mean, is there a way to find and to be sure that sda ( for example ) and sdb are the two on the mobo and sdc is the only one on the pci controller? Is there a way to see where sd* is attached on my computer, throught which controller ? Thanks in advance. |
Look in /dev/disk/uuid and compare to the other entries in /dev/disk/something or other. (Sorry, I'm stuck on a Windows machine and can't remember the exact location.) One location will list the partitions and the device names, you should be able to identify them from there.
EDITED, looking up under google "lspci" should probably help too, as should looking at dmesg |
Quote:
Sorry for my bad english, maybe I couldn't explain the right way. Basically I have 3 sata hard disks ( sda,sdb,sdc ) : 2 attached on motherboard and 1 on pci controller. How can I identify which one is attached to pci port ? ( in theory sdc, because usually Linux gives names in the order as if finds them at the boot, and I suppose the 2 hd on the mobo will be the first and second ) I wish to be sure of that because managing a raid and wish to make a raid 1 on two disks and 2 different controllers. Thanks |
Identifying disks
Well, here's how I would do it, using my machine as an example:
Go to /dev/disk/by-id and type ls You should see all of the disks. If I do that, for example I get (among other things): Code:
ata-MAXTOR_STM3320620A_9QF3SLT2 Code:
lrwxrwxrwx 1 root root 9 2008-07-05 07:45 ata-MAXTOR_STM3320620A_9QF3SLT2 -> ../../hda Going to /dev/disk/by-path and typing 'ls' Code:
pci-0000:00:1f.1-ide-0:0 Code:
lrwxrwxrwx 1 root root 9 2008-07-05 07:45 pci-0000:00:1f.1-ide-0:0 -> ../../hda Looking at /var/adm/dmesg shows (among a lot of other stuff) Code:
Probing IDE interface ide0... Hope that makes it clearer! |
All times are GMT -5. The time now is 10:25 PM. |