[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: The order of my SATA and PATA are switching all the time



On 05/09/2013 07:10 AM, st wrote:
> Stefan Monnier wrote:
> 
>> I see many people suggested UUIDs and other funny long names.
>> What I use instead: LVM.  This way you get to name the "disks" and
>> "partitions" with meaningful names which only change when you decide to
>> change them.
> 
> One simple question, though: if you have 2 similar HDDs and one
> of them starts to fail, how do you know which one it is?

It might help to look at the disk's "path" which is mapped to the
physical ports:

~$ ls /dev/disk/by-path -l | cut -c 40-
pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:0 -> ../../sde
pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:1 -> ../../sdf
pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:2 -> ../../sdg
pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:3 -> ../../sdh
pci-0000:00:1d.7-usb-0:6.4:1.0-scsi-0:0:0:0 -> ../../sdi
pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda
pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> ../../sda1
pci-0000:00:1f.2-scsi-0:0:0:0-part2 -> ../../sda2
pci-0000:00:1f.2-scsi-1:0:0:0 -> ../../sdb
pci-0000:00:1f.2-scsi-1:0:0:0-part1 -> ../../sdb1
pci-0000:00:1f.2-scsi-1:0:0:0-part2 -> ../../sdb2
pci-0000:00:1f.2-scsi-2:0:0:0 -> ../../sdc
pci-0000:00:1f.2-scsi-2:0:0:0-part1 -> ../../sdc1
pci-0000:00:1f.2-scsi-3:0:0:0 -> ../../sdd
pci-0000:00:1f.2-scsi-3:0:0:0-part1 -> ../../sdd1
pci-0000:00:1f.2-scsi-5:0:0:0 -> ../../sr0

> It's turned into quite an issue for me since Debian stopped
> assigning disk names in a predictable way.

HTH
Linux-Fan

-- 
http://masysma.ohost.de/


Reply to: