<div class="gmail_quote">On Mon, Nov 2, 2009 at 4:47 PM, Eugeneapolinary Ju <span dir="ltr"><<a href="mailto:eugeneapolinary81@yahoo.com">eugeneapolinary81@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
How can I tell wich HDD to swap, when the "cat /proc/mdstat" says one HDD of the RAID1 array has died?<br><br>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?<br>
<br>How could I know wich HDD to swap in e.g.: a RAID1 array?<br><br>thank you<br></td></tr></tbody></table><br><br></blockquote><div>cat /proc/mdstat <br><br>should give you the devices in your RAID1 array.  For example, lets say they are /dev/sda1 and /dev/sdb1<br>
<br>Now, if you run<br><br>sudo lshw<br><br>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:<br>
<br>  *-disk:0<br>             description: ATA Disk<br>             product: ST3320620AS<br>             vendor: Seagate<br>             physical id: 0<br>             bus info: scsi@0:0.0.0<br>             logical name: /dev/sda<br>
             version: 3.AA<br>             serial: 4QF0028B<br>             size: 298GiB (320GB)<br>             capabilities: partitioned partitioned:dos<br>             configuration: ansiversion=5 signature=000d9eb3<br>
         <br><br>This should give you all the information you need to determine which physical drive it is.  <br><br>Hope this helps,<br><br>Preston<br><br> <br></div></div>