* raid5 Unplug the disk
@ 2015-01-28 6:44 lilofile
2015-01-28 16:59 ` John Drescher
0 siblings, 1 reply; 3+ messages in thread
From: lilofile @ 2015-01-28 6:44 UTC (permalink / raw)
To: lilofile, stan, Linux RAID
kernel linux 3.10, centos
when I use 5 disk to create raid5,after sync complete, I unplug a disk,and wait a moment, then replug the same disk.
the original 4 disk are still a raid5 which is degraded.
I find the single disk become a new raid5,but inactive,what the reason?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: raid5 Unplug the disk
2015-01-28 6:44 raid5 Unplug the disk lilofile
@ 2015-01-28 16:59 ` John Drescher
2015-02-05 5:03 ` NeilBrown
0 siblings, 1 reply; 3+ messages in thread
From: John Drescher @ 2015-01-28 16:59 UTC (permalink / raw)
To: lilofile; +Cc: stan, Linux RAID
On Wed, Jan 28, 2015 at 1:44 AM, lilofile <lilofile@aliyun.com> wrote:
> kernel linux 3.10, centos
> when I use 5 disk to create raid5,after sync complete, I unplug a disk,and wait a moment, then replug the same disk.
>
> the original 4 disk are still a raid5 which is degraded.
> I find the single disk become a new raid5,but inactive,what the reason?
stop whatever new array that shows up then use
mdadm --manage /dev/mymddevice --re-add /dev/disk5
John
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: raid5 Unplug the disk
2015-01-28 16:59 ` John Drescher
@ 2015-02-05 5:03 ` NeilBrown
0 siblings, 0 replies; 3+ messages in thread
From: NeilBrown @ 2015-02-05 5:03 UTC (permalink / raw)
To: John Drescher; +Cc: lilofile, stan, Linux RAID
[-- Attachment #1: Type: text/plain, Size: 934 bytes --]
On Wed, 28 Jan 2015 11:59:30 -0500 John Drescher <drescherjm@gmail.com> wrote:
> On Wed, Jan 28, 2015 at 1:44 AM, lilofile <lilofile@aliyun.com> wrote:
> > kernel linux 3.10, centos
> > when I use 5 disk to create raid5,after sync complete, I unplug a disk,and wait a moment, then replug the same disk.
> >
> > the original 4 disk are still a raid5 which is degraded.
> > I find the single disk become a new raid5,but inactive,what the reason?
>
> stop whatever new array that shows up then use
>
> mdadm --manage /dev/mymddevice --re-add /dev/disk5
>
Also, you probably need a newer version of mdadm. Creating a new inactive
raid5 was a bug.
If you have udev configured to run "mdadm -I" on newly added devices (which I
think most distros do), then adding
POLICY action=re-add
to /etc/mdadm.conf should cause the device to automatically be added back to
the array when you plug it in.
NeilBrown
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-05 5:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 6:44 raid5 Unplug the disk lilofile
2015-01-28 16:59 ` John Drescher
2015-02-05 5:03 ` NeilBrown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.