* which disk the the one that data is on?
@ 2006-07-18 7:53 Shai
2006-07-18 9:02 ` Neil Brown
2006-07-18 13:16 ` Bill Davidsen
0 siblings, 2 replies; 9+ messages in thread
From: Shai @ 2006-07-18 7:53 UTC (permalink / raw)
To: linux-raid
Hi,
I rebooted my server today to find out that one of the arrays is being
re-synced (see output below)
.
1. What does the (S) to the right of hdh1[5](S) mean?
2. How do I know, from this output, which disk is the one holding the
most current data and from which all the other drives are syncing
from? Or are they all containing the data and this sync process is
something else? Maybe I'm just not understanding what is being done
exactly?
Thanks in advance for the help.
Shai
---
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
-------------------
# mdadm -Q --detail /dev/md0
/dev/md0:
Version : 00.90.02
Creation Time : Mon Mar 20 20:40:24 2006
Raid Level : raid5
Array Size : 781433344 (745.23 GiB 800.19 GB)
Device Size : 195358336 (186.31 GiB 200.05 GB)
Raid Devices : 5
Total Devices : 6
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Tue Jul 18 10:28:39 2006
State : active, resyncing
Active Devices : 5
Working Devices : 6
Failed Devices : 0
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 64K
Rebuild Status : 8% complete
UUID : 4bc2c7f7:b7ec1184:9c2c382d:2aaf7a98
Events : 0.386738
Number Major Minor RaidDevice State
0 22 1 0 active sync /dev/.static/dev/hdc1
1 22 65 1 active sync /dev/.static/dev/hdd1
2 33 1 2 active sync /dev/.static/dev/hde1
3 33 65 3 active sync /dev/.static/dev/hdf1
4 34 1 4 active sync /dev/.static/dev/hdg1
5 34 65 - spare /dev/.static/dev/hdh1
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-18 7:53 which disk the the one that data is on? Shai
@ 2006-07-18 9:02 ` Neil Brown
2006-07-18 9:23 ` Shai
2006-07-18 13:16 ` Bill Davidsen
1 sibling, 1 reply; 9+ messages in thread
From: Neil Brown @ 2006-07-18 9:02 UTC (permalink / raw)
To: Shai; +Cc: linux-raid
On Tuesday July 18, shaibn@gmail.com wrote:
> Hi,
>
> I rebooted my server today to find out that one of the arrays is being
> re-synced (see output below)
> .
> 1. What does the (S) to the right of hdh1[5](S) mean?
Spare.
> 2. How do I know, from this output, which disk is the one holding the
> most current data and from which all the other drives are syncing
> from? Or are they all containing the data and this sync process is
> something else? Maybe I'm just not understanding what is being done
> exactly?
This is raid5. The data is distributed over all of the drives.
There are also 'parity' blocks used for coping with missing devices.
This 'resync' process is checking that the parity blocks are all
correct and will correct any that are wrong.
NeilBrown
>
> Thanks in advance for the help.
>
> Shai
> ---
>
> 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
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-18 9:02 ` Neil Brown
@ 2006-07-18 9:23 ` Shai
2006-07-18 9:51 ` Neil Brown
0 siblings, 1 reply; 9+ messages in thread
From: Shai @ 2006-07-18 9:23 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
Hi,
So if I were to want to stop the resync process on a very large array
(1.4T), since it is in the middle of the day and makes work slower...
How can I tell which drive is the one that is being used to check all
the rest of the data? Or in other words, how can I stop the resync
process and let it cont. later?
Shai
On 7/18/06, Neil Brown <neilb@suse.de> wrote:
> On Tuesday July 18, shaibn@gmail.com wrote:
> > Hi,
> >
> > I rebooted my server today to find out that one of the arrays is being
> > re-synced (see output below)
> > .
> > 1. What does the (S) to the right of hdh1[5](S) mean?
>
> Spare.
>
> > 2. How do I know, from this output, which disk is the one holding the
> > most current data and from which all the other drives are syncing
> > from? Or are they all containing the data and this sync process is
> > something else? Maybe I'm just not understanding what is being done
> > exactly?
>
> This is raid5. The data is distributed over all of the drives.
> There are also 'parity' blocks used for coping with missing devices.
> This 'resync' process is checking that the parity blocks are all
> correct and will correct any that are wrong.
>
> NeilBrown
>
>
> >
> > Thanks in advance for the help.
> >
> > Shai
> > ---
> >
> > 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
> >
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-18 9:23 ` Shai
@ 2006-07-18 9:51 ` Neil Brown
2006-07-19 5:33 ` Shai
0 siblings, 1 reply; 9+ messages in thread
From: Neil Brown @ 2006-07-18 9:51 UTC (permalink / raw)
To: Shai; +Cc: linux-raid
On Tuesday July 18, shaibn@gmail.com wrote:
> Hi,
>
> So if I were to want to stop the resync process on a very large array
> (1.4T), since it is in the middle of the day and makes work slower...
> How can I tell which drive is the one that is being used to check all
> the rest of the data? Or in other words, how can I stop the resync
> process and let it cont. later?
There is no "one that is being used to check all the rest". They are
all in this together.
But if you want to stop the resync because it is slowing things down
then write a small number to /proc/sys/dev/raid/speed_limit_min
e.g.
echo 10 > /proc/sys/dev/raid/speed_limit_min
This won't actually stop it, but it will make it go very slowly so as
not to interfere with anything else.
NeilBrown
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-18 7:53 which disk the the one that data is on? Shai
2006-07-18 9:02 ` Neil Brown
@ 2006-07-18 13:16 ` Bill Davidsen
1 sibling, 0 replies; 9+ messages in thread
From: Bill Davidsen @ 2006-07-18 13:16 UTC (permalink / raw)
To: Shai; +Cc: linux-raid
Shai wrote:
> Hi,
>
> I rebooted my server today to find out that one of the arrays is being
> re-synced (see output below)
> .
> 1. What does the (S) to the right of hdh1[5](S) mean?
> 2. How do I know, from this output, which disk is the one holding the
> most current data and from which all the other drives are syncing
> from? Or are they all containing the data and this sync process is
> something else? Maybe I'm just not understanding what is being done
> exactly?
In addition to what you have already been told, if you "find out" that
the array is in rebuild I would be a lot more worried to find out why.
If it was from unclean shutdown you really should look into a bitmap if
you don't have one.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-18 9:51 ` Neil Brown
@ 2006-07-19 5:33 ` Shai
2006-07-19 10:17 ` Janos Farkas
2006-07-20 0:23 ` Neil Brown
0 siblings, 2 replies; 9+ messages in thread
From: Shai @ 2006-07-19 5:33 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
Hi,
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)?
Thanks,
Shai
On 7/18/06, Neil Brown <neilb@suse.de> wrote:
> On Tuesday July 18, shaibn@gmail.com wrote:
> > Hi,
> >
> > So if I were to want to stop the resync process on a very large array
> > (1.4T), since it is in the middle of the day and makes work slower...
> > How can I tell which drive is the one that is being used to check all
> > the rest of the data? Or in other words, how can I stop the resync
> > process and let it cont. later?
>
> There is no "one that is being used to check all the rest". They are
> all in this together.
>
> But if you want to stop the resync because it is slowing things down
> then write a small number to /proc/sys/dev/raid/speed_limit_min
> e.g.
>
> echo 10 > /proc/sys/dev/raid/speed_limit_min
>
> This won't actually stop it, but it will make it go very slowly so as
> not to interfere with anything else.
>
> NeilBrown
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-19 5:33 ` Shai
@ 2006-07-19 10:17 ` Janos Farkas
2006-07-20 0:23 ` Neil Brown
1 sibling, 0 replies; 9+ messages in thread
From: Janos Farkas @ 2006-07-19 10:17 UTC (permalink / raw)
To: Shai; +Cc: linux-raid
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-19 5:33 ` Shai
2006-07-19 10:17 ` Janos Farkas
@ 2006-07-20 0:23 ` Neil Brown
2006-07-21 7:07 ` Shai
1 sibling, 1 reply; 9+ messages in thread
From: Neil Brown @ 2006-07-20 0:23 UTC (permalink / raw)
To: Shai; +Cc: linux-raid
On Wednesday July 19, shaibn@gmail.com wrote:
> Hi,
>
> 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)?
mdadm --detail will list all the devices. The one that is being
recovered won't be 'sync' - the others will.
NeilBrown
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: which disk the the one that data is on?
2006-07-20 0:23 ` Neil Brown
@ 2006-07-21 7:07 ` Shai
0 siblings, 0 replies; 9+ messages in thread
From: Shai @ 2006-07-21 7:07 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
Thanks thus far :)
Shai
On 7/20/06, Neil Brown <neilb@suse.de> wrote:
> On Wednesday July 19, shaibn@gmail.com wrote:
> > Hi,
> >
> > 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)?
>
> mdadm --detail will list all the devices. The one that is being
> recovered won't be 'sync' - the others will.
>
> NeilBrown
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-07-21 7:07 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-18 7:53 which disk the the one that data is on? Shai
2006-07-18 9:02 ` Neil Brown
2006-07-18 9:23 ` Shai
2006-07-18 9:51 ` Neil Brown
2006-07-19 5:33 ` Shai
2006-07-19 10:17 ` Janos Farkas
2006-07-20 0:23 ` Neil Brown
2006-07-21 7:07 ` Shai
2006-07-18 13:16 ` Bill Davidsen
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).