Re: which disk the the one that data is on?

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

 



On 2006-07-19 at 08:33:21, Shai wrote:
> Another question on this matter please:
> If there is a raid5 with 4 disks and 1 missing, and we add that disk,
> while its doing the resync of that disk, how do we know which disk it
> is (if we forgot what one we added)?

Everything is already in the /proc/mdstat (and mdadm -Q -D /dev/md0)
output you posted:

md0 : active raid5 hdd1[1] hdc1[0] hdh1[5](S) hdg1[4] hdf1[3] hde1[2]
     781433344 blocks level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]
     [=>...................]  resync =  5.1% (9965184/195358336) finish=180.5min speed=17110K/sec

There's a number after each component (hdc1[0]), and there's an U in the
next line for each component.  If some of the component drives are not
there, or resyncing, something else will be there.  You can also see
that hdh1 is a (S)pare right now.  [_UUUU] would mean that the component
0 is not (U)p to date.  Make yourself familiar with this output so you
are not confused should there be any problem.

Similarly, mdadm output is containing largely the same information, but
in a different layout, maybe that's more clear in some cases.

Janos
-
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