info about hdds in raid
Leonard Chatagnier
lenc5570 at sbcglobal.net
Tue Nov 3 00:08:13 UTC 2009
--- On Mon, 11/2/09, Preston Hagar <prestonh at gmail.com> wrote:
> From: Preston Hagar <prestonh at gmail.com>
> Subject: Re: info about hdds in raid
> To: "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>, eugeneapolinary81 at yahoo.com
> Date: Monday, November 2, 2009, 5:06 PM
> On Mon, Nov 2, 2009
> at 4:47 PM, Eugeneapolinary Ju <eugeneapolinary81 at yahoo.com>
> wrote:
>
>
> How can I tell wich HDD to swap, when the "cat
> /proc/mdstat" says one HDD of the RAID1 array has
> died?
>
> Does the HDD's has some serial numbers, that I can see
> in "reality", and I can get that number from e.g.:
> a commands output?
>
>
> How could I know wich HDD to swap in e.g.: a RAID1 array?
>
> thank you
>
>
> cat /proc/mdstat
>
> should give you the devices in your RAID1 array. For
> example, lets say they are /dev/sda1 and /dev/sdb1
>
>
> Now, if you run
>
> sudo lshw
>
> you will get a lot of output about your system. Look for
> the disk section with the failed /dev/sd device in it. For
> example, let's say /dev/sda1 is the failed drive. When
> I do sudo lshw on my system, I end up with this disk section
> relating to /dev/sda:
>
>
> *-disk:0
> description: ATA Disk
> product: ST3320620AS
> vendor: Seagate
> physical id: 0
> bus info: scsi at 0:0.0.0
> logical name: /dev/sda
>
> version: 3.AA
> serial: 4QF0028B
> size: 298GiB (320GB)
> capabilities: partitioned
> partitioned:dos
> configuration: ansiversion=5
> signature=000d9eb3
>
>
>
> This should give you all the information you need to
> determine which physical drive it is.
>
> Hope this helps,
>
>
I read this with interest but I don't see where the commands would show which drive has failed. Is is something obvious to you that isn't to me, someone who has never used any raid setup. I certainly would like to know as I have a computer in my lan with 2 HDDs that someday when I'm feeling reckless may try to set up a raid system.
Leonard Chatagnier
lenc5570 at sbcglobal.net
More information about the ubuntu-users
mailing list