From: Nagilum <nagilum@nagilum.org>
To: Matt Garman <matthew.garman@gmail.com>
Cc: Steven Haigh <netwiz@crc.id.au>, linux-raid@vger.kernel.org
Subject: Re: How can I tell what drive is sdb?
Date: Wed, 27 Jan 2010 19:10:37 +0100 [thread overview]
Message-ID: <20100127191037.459744dmff2r3i4g@cakebox.homeunix.net> (raw)
In-Reply-To: <bdd6985b1001270629g38a371abtd513ec54d2feb77f@mail.gmail.com>
----- Message from matthew.garman@gmail.com ---------
Date: Wed, 27 Jan 2010 08:29:50 -0600
From: Matt Garman <matthew.garman@gmail.com>
Subject: Re: How can I tell what drive is sdb?
To: Steven Haigh <netwiz@crc.id.au>
Cc: linux-raid@vger.kernel.org
> On Wed, Jan 27, 2010 at 8:21 AM, Steven Haigh <netwiz@crc.id.au> 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@gmail.com -----
========================================================================
# _ __ _ __ http://www.nagilum.org/ \n icq://69646724 #
# / |/ /__ ____ _(_) /_ ____ _ nagilum@nagilum.org \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..
next prev parent reply other threads:[~2010-01-27 18:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-27 14:03 How can I tell what drive is sdb? Rick Bragg
2010-01-27 14:09 ` Matt Garman
2010-01-27 14:18 ` Jan Ceuleers
2010-01-27 14:21 ` Steven Haigh
2010-01-27 14:29 ` Matt Garman
2010-01-27 15:12 ` Goswin von Brederlow
2010-01-27 18:10 ` Nagilum [this message]
2010-01-27 14:30 ` Kristleifur Daðason
2010-01-27 16:57 ` Zdenek Kaspar
2010-01-28 9:00 ` Jon Hardcastle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100127191037.459744dmff2r3i4g@cakebox.homeunix.net \
--to=nagilum@nagilum.org \
--cc=linux-raid@vger.kernel.org \
--cc=matthew.garman@gmail.com \
--cc=netwiz@crc.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).