Re: How can I tell what drive is sdb?

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

 




----- Message from matthew.garman@xxxxxxxxx ---------
    Date: Wed, 27 Jan 2010 08:29:50 -0600
    From: Matt Garman <matthew.garman@xxxxxxxxx>
 Subject: Re: How can I tell what drive is sdb?
      To: Steven Haigh <netwiz@xxxxxxxxx>
      Cc: linux-raid@xxxxxxxxxxxxxxx


On Wed, Jan 27, 2010 at 8:21 AM, Steven Haigh <netwiz@xxxxxxxxx> wrote:

On 28/01/2010, at 1:18 AM, Jan Ceuleers wrote:

Matt Garman wrote:
Is there a way to identify what drive is what?

Another tedious approach: use smartctl or hdparm as suggested above to
get an initial mapping of /dev/sdX to serial number.  Then, disconnect
the SATA cable of all but one drive, and reboot.  Now look at what
/dev/sda's serial number is, and compare that to the initial mapping.
Eventually /dev/sda will correspond to /dev/sdb when all drives are
connected.

If the controller supports hotswap, you could do something similar
without so many reboots.

This scheme makes the assumption that it's easier to pull SATA cables
than just look at the drive's serial numbers.

blkid could also be used to identify the drives.
It should work with all types of drives SCSI/SATA/PATA/USB/...


----- End message from matthew.garman@xxxxxxxxx -----



========================================================================
#    _  __          _ __     http://www.nagilum.org/ \n icq://69646724 #
#   / |/ /__ ____ _(_) /_ ____ _  nagilum@xxxxxxxxxxx \n +491776461165 #
#  /    / _ `/ _ `/ / / // /  ' \  Amiga (68k/PPC): AOS/NetBSD/Linux   #
# /_/|_/\_,_/\_, /_/_/\_,_/_/_/_/   Mac (PPC): MacOS-X / NetBSD /Linux #
#           /___/     x86: FreeBSD/Linux/Solaris/Win2k  ARM9: EPOC EV6 #
========================================================================


----------------------------------------------------------------
cakebox.homeunix.net - all the machine one needs..
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux