Why does md3 persist after deleting and recreating the partitions?
Why does md3 persist after deleting and recreating the partitions?
am 31.12.2010 01:10:53 von Mark Knecht
Hi,
What am I forgetting to do? I had a RAID1 using sd{a,b,c}3. I
stopped md3, removed the md3 line in /etc/mdadm.conf, deleted the
partitions using fdisk, and then created 5 new partitions using
sd{a,b,c,d,e}3 to get ready to do a 5 disk RAID6. The new partitions
are the same size as the old ones and located at the same sector
addresses.
After rebooting, but before creating the new RAID6, I still see md3:
mark@c2stable ~ $ cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md6 : active raid1 sdb6[1] sdc6[2] sda6[0]
247416933 blocks super 1.1 [3/3] [UUU]
md3 : active raid1 sdc3[2] sdb3[1] sda3[0]
52436096 blocks [3/3] [UUU]
md5 : active raid1 sdc5[2] sdb5[1] sda5[0]
52436032 blocks [3/3] [UUU]
unused devices:
mark@c2stable ~ $
What am I doing wrong or forgetting? I would like md3 to be totally
gone before I create a new md3 in it's place.
Thanks,
Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Why does md3 persist after deleting and recreating the partitions?
am 31.12.2010 01:12:52 von mathias.buren
On 31 December 2010 00:10, Mark Knecht wrote:
> Hi,
> Â What am I forgetting to do? I had a RAID1 using sd{a,b,c}3. I
> stopped md3, removed the md3 line in /etc/mdadm.conf, deleted the
> partitions using fdisk, and then created 5 new partitions using
> sd{a,b,c,d,e}3 to get ready to do a 5 disk RAID6. The new partitions
> are the same size as the old ones and located at the same sector
> addresses.
>
> Â After rebooting, but before creating the new RAID6, I still se=
e md3:
>
> mark@c2stable ~ $ cat /proc/mdstat
> Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [ra=
id4]
> md6 : active raid1 sdb6[1] sdc6[2] sda6[0]
> Â Â Â 247416933 blocks super 1.1 [3/3] [UUU]
>
> md3 : active raid1 sdc3[2] sdb3[1] sda3[0]
> Â Â Â 52436096 blocks [3/3] [UUU]
>
> md5 : active raid1 sdc5[2] sdb5[1] sda5[0]
> Â Â Â 52436032 blocks [3/3] [UUU]
>
> unused devices:
> mark@c2stable ~ $
>
>
> Â What am I doing wrong or forgetting? I would like md3 to be to=
tally
> gone before I create a new md3 in it's place.
>
> Thanks,
> Mark
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.ht=
ml
>
Erase the superblocks? Recreating partitions doesn't (usually) affect
the data on the HDDs.
// M
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Why does md3 persist after deleting and recreating the partitions?
am 31.12.2010 01:14:17 von Mark Knecht
On Thu, Dec 30, 2010 at 4:12 PM, Mathias Burén
l.com> wrote:
> On 31 December 2010 00:10, Mark Knecht wrote:
>> Hi,
>> Â What am I forgetting to do? I had a RAID1 using sd{a,b,c}3. I
>> stopped md3, removed the md3 line in /etc/mdadm.conf, deleted the
>> partitions using fdisk, and then created 5 new partitions using
>> sd{a,b,c,d,e}3 to get ready to do a 5 disk RAID6. The new partitions
>> are the same size as the old ones and located at the same sector
>> addresses.
>>
>> Â After rebooting, but before creating the new RAID6, I still s=
ee md3:
>>
>> mark@c2stable ~ $ cat /proc/mdstat
>> Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [r=
aid4]
>> md6 : active raid1 sdb6[1] sdc6[2] sda6[0]
>> Â Â Â 247416933 blocks super 1.1 [3/3] [UUU]
>>
>> md3 : active raid1 sdc3[2] sdb3[1] sda3[0]
>> Â Â Â 52436096 blocks [3/3] [UUU]
>>
>> md5 : active raid1 sdc5[2] sdb5[1] sda5[0]
>> Â Â Â 52436032 blocks [3/3] [UUU]
>>
>> unused devices:
>> mark@c2stable ~ $
>>
>>
>> Â What am I doing wrong or forgetting? I would like md3 to be t=
otally
>> gone before I create a new md3 in it's place.
>>
>> Thanks,
>> Mark
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid=
" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.h=
tml
>>
>
> Erase the superblocks? Recreating partitions doesn't (usually) affect
> the data on the HDDs.
>
> // M
>
Is erasing the superblocks a mdadm operation? I've not heard of that on=
e before.
Thanks,
Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Why does md3 persist after deleting and recreating the partitions?
am 31.12.2010 01:16:52 von mathias.buren
On 31 December 2010 00:14, Mark Knecht wrote:
> On Thu, Dec 30, 2010 at 4:12 PM, Mathias Burén
ail.com> wrote:
>> On 31 December 2010 00:10, Mark Knecht wrote:
>>> Hi,
>>> Â What am I forgetting to do? I had a RAID1 using sd{a,b,c}3. =
I
>>> stopped md3, removed the md3 line in /etc/mdadm.conf, deleted the
>>> partitions using fdisk, and then created 5 new partitions using
>>> sd{a,b,c,d,e}3 to get ready to do a 5 disk RAID6. The new partition=
s
>>> are the same size as the old ones and located at the same sector
>>> addresses.
>>>
>>> Â After rebooting, but before creating the new RAID6, I still =
see md3:
>>>
>>> mark@c2stable ~ $ cat /proc/mdstat
>>> Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [=
raid4]
>>> md6 : active raid1 sdb6[1] sdc6[2] sda6[0]
>>> Â Â Â 247416933 blocks super 1.1 [3/3] [UUU]
>>>
>>> md3 : active raid1 sdc3[2] sdb3[1] sda3[0]
>>> Â Â Â 52436096 blocks [3/3] [UUU]
>>>
>>> md5 : active raid1 sdc5[2] sdb5[1] sda5[0]
>>> Â Â Â 52436032 blocks [3/3] [UUU]
>>>
>>> unused devices:
>>> mark@c2stable ~ $
>>>
>>>
>>> Â What am I doing wrong or forgetting? I would like md3 to be =
totally
>>> gone before I create a new md3 in it's place.
>>>
>>> Thanks,
>>> Mark
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rai=
d" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.=
html
>>>
>>
>> Erase the superblocks? Recreating partitions doesn't (usually) affec=
t
>> the data on the HDDs.
>>
>> // M
>>
>
> Is erasing the superblocks a mdadm operation? I've not heard of that =
one before.
>
> Thanks,
> Mark
>
Yes, see mdadm --misc. Like:
mdadm --zero-superblock
// M
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Why does md3 persist after deleting and recreating the partitions?
am 31.12.2010 01:17:51 von Mark Knecht
On Thu, Dec 30, 2010 at 4:16 PM, Mathias Burén
l.com> wrote:
> On 31 December 2010 00:14, Mark Knecht wrote:
>> On Thu, Dec 30, 2010 at 4:12 PM, Mathias Burén
mail.com> wrote:
>>> On 31 December 2010 00:10, Mark Knecht wrote=
:
>>>> Hi,
>>>> Â What am I forgetting to do? I had a RAID1 using sd{a,b,c}3.=
I
>>>> stopped md3, removed the md3 line in /etc/mdadm.conf, deleted the
>>>> partitions using fdisk, and then created 5 new partitions using
>>>> sd{a,b,c,d,e}3 to get ready to do a 5 disk RAID6. The new partitio=
ns
>>>> are the same size as the old ones and located at the same sector
>>>> addresses.
>>>>
>>>> Â After rebooting, but before creating the new RAID6, I still=
see md3:
>>>>
>>>> mark@c2stable ~ $ cat /proc/mdstat
>>>> Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] =
[raid4]
>>>> md6 : active raid1 sdb6[1] sdc6[2] sda6[0]
>>>> Â Â Â 247416933 blocks super 1.1 [3/3] [UUU]
>>>>
>>>> md3 : active raid1 sdc3[2] sdb3[1] sda3[0]
>>>> Â Â Â 52436096 blocks [3/3] [UUU]
>>>>
>>>> md5 : active raid1 sdc5[2] sdb5[1] sda5[0]
>>>> Â Â Â 52436032 blocks [3/3] [UUU]
>>>>
>>>> unused devices:
>>>> mark@c2stable ~ $
>>>>
>>>>
>>>> Â What am I doing wrong or forgetting? I would like md3 to be=
totally
>>>> gone before I create a new md3 in it's place.
>>>>
>>>> Thanks,
>>>> Mark
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-ra=
id" in
>>>> the body of a message to majordomo@vger.kernel.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info=
html
>>>>
>>>
>>> Erase the superblocks? Recreating partitions doesn't (usually) affe=
ct
>>> the data on the HDDs.
>>>
>>> // M
>>>
>>
>> Is erasing the superblocks a mdadm operation? I've not heard of that=
one before.
>>
>> Thanks,
>> Mark
>>
>
> Yes, see mdadm --misc. Like:
>
> mdadm --zero-superblock
>
> // M
>
Yes, just found that.
Can I still use /dev/md3 safely even though it's no longer in
mdadm.conf? I suspect I can?
Cheers,
Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Why does md3 persist after deleting and recreating thepartitions?
am 31.12.2010 02:07:33 von NeilBrown
On Thu, 30 Dec 2010 16:17:51 -0800 Mark Knecht w=
rote:
> On Thu, Dec 30, 2010 at 4:16 PM, Mathias Bur=E9n
com> wrote:
> > On 31 December 2010 00:14, Mark Knecht wrote=
:
> >> On Thu, Dec 30, 2010 at 4:12 PM, Mathias Bur=E9n
ail.com> wrote:
> >>> On 31 December 2010 00:10, Mark Knecht wro=
te:
> >>>> Hi,
> >>>> =A0 What am I forgetting to do? I had a RAID1 using sd{a,b,c}3. =
I
> >>>> stopped md3, removed the md3 line in /etc/mdadm.conf, deleted th=
e
> >>>> partitions using fdisk, and then created 5 new partitions using
> >>>> sd{a,b,c,d,e}3 to get ready to do a 5 disk RAID6. The new partit=
ions
> >>>> are the same size as the old ones and located at the same sector
> >>>> addresses.
> >>>>
> >>>> =A0 After rebooting, but before creating the new RAID6, I still =
see md3:
> >>>>
> >>>> mark@c2stable ~ $ cat /proc/mdstat
> >>>> Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5=
] [raid4]
> >>>> md6 : active raid1 sdb6[1] sdc6[2] sda6[0]
> >>>> =A0 =A0 =A0247416933 blocks super 1.1 [3/3] [UUU]
> >>>>
> >>>> md3 : active raid1 sdc3[2] sdb3[1] sda3[0]
> >>>> =A0 =A0 =A052436096 blocks [3/3] [UUU]
> >>>>
> >>>> md5 : active raid1 sdc5[2] sdb5[1] sda5[0]
> >>>> =A0 =A0 =A052436032 blocks [3/3] [UUU]
> >>>>
> >>>> unused devices:
> >>>> mark@c2stable ~ $
> >>>>
> >>>>
> >>>> =A0 What am I doing wrong or forgetting? I would like md3 to be =
totally
> >>>> gone before I create a new md3 in it's place.
> >>>>
> >>>> Thanks,
> >>>> Mark
> >>>> --
> >>>> To unsubscribe from this list: send the line "unsubscribe linux-=
raid" in
> >>>> the body of a message to majordomo@vger.kernel.org
> >>>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.=
html
> >>>>
> >>>
> >>> Erase the superblocks? Recreating partitions doesn't (usually) af=
fect
> >>> the data on the HDDs.
> >>>
> >>> // M
> >>>
> >>
> >> Is erasing the superblocks a mdadm operation? I've not heard of th=
at one before.
> >>
> >> Thanks,
> >> Mark
> >>
> >
> > Yes, see mdadm --misc. Like:
> >
> > mdadm --zero-superblock
> >
> > // M
> >
>=20
> Yes, just found that.
>=20
> Can I still use /dev/md3 safely even though it's no longer in
> mdadm.conf? I suspect I can?
That sentence doesn't make much sense to me, so I suspect some misunder=
stand
is going on. So to be explicit:
Use
mdadm --zero-superblock /dev/sdc3 /dev/sdb3 /dev/sda3
to remove from those devices any record that they are part of any md =
array.
Does that clarify thing sufficienty?
NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Why does md3 persist after deleting and recreating the partitions?
am 31.12.2010 02:33:50 von Mark Knecht
On Thu, Dec 30, 2010 at 5:07 PM, Neil Brown wrote:
> On Thu, 30 Dec 2010 16:17:51 -0800 Mark Knecht =
wrote:
>
>> On Thu, Dec 30, 2010 at 4:16 PM, Mathias Burén
mail.com> wrote:
>> > On 31 December 2010 00:14, Mark Knecht wrot=
e:
>> >> On Thu, Dec 30, 2010 at 4:12 PM, Mathias Burén
n@gmail.com> wrote:
>> >>> On 31 December 2010 00:10, Mark Knecht wr=
ote:
>> >>>> Hi,
>> >>>> Â What am I forgetting to do? I had a RAID1 using sd{a,b,c=
}3. I
>> >>>> stopped md3, removed the md3 line in /etc/mdadm.conf, deleted t=
he
>> >>>> partitions using fdisk, and then created 5 new partitions using
>> >>>> sd{a,b,c,d,e}3 to get ready to do a 5 disk RAID6. The new parti=
tions
>> >>>> are the same size as the old ones and located at the same secto=
r
>> >>>> addresses.
>> >>>>
>> >>>> Â After rebooting, but before creating the new RAID6, I st=
ill see md3:
>> >>>>
>> >>>> mark@c2stable ~ $ cat /proc/mdstat
>> >>>> Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid=
5] [raid4]
>> >>>> md6 : active raid1 sdb6[1] sdc6[2] sda6[0]
>> >>>> Â Â Â 247416933 blocks super 1.1 [3/3] [UUU]
>> >>>>
>> >>>> md3 : active raid1 sdc3[2] sdb3[1] sda3[0]
>> >>>> Â Â Â 52436096 blocks [3/3] [UUU]
>> >>>>
>> >>>> md5 : active raid1 sdc5[2] sdb5[1] sda5[0]
>> >>>> Â Â Â 52436032 blocks [3/3] [UUU]
>> >>>>
>> >>>> unused devices:
>> >>>> mark@c2stable ~ $
>> >>>>
>> >>>>
>> >>>> Â What am I doing wrong or forgetting? I would like md3 to=
be totally
>> >>>> gone before I create a new md3 in it's place.
>> >>>>
>> >>>> Thanks,
>> >>>> Mark
>> >>>> --
>> >>>> To unsubscribe from this list: send the line "unsubscribe linux=
-raid" in
>> >>>> the body of a message to majordomo@vger.kernel.org
>> >>>> More majordomo info at  http://vger.kernel.org/majordomo-i=
nfo.html
>> >>>>
>> >>>
>> >>> Erase the superblocks? Recreating partitions doesn't (usually) a=
ffect
>> >>> the data on the HDDs.
>> >>>
>> >>> // M
>> >>>
>> >>
>> >> Is erasing the superblocks a mdadm operation? I've not heard of t=
hat one before.
>> >>
>> >> Thanks,
>> >> Mark
>> >>
>> >
>> > Yes, see mdadm --misc. Like:
>> >
>> > mdadm --zero-superblock
>> >
>> > // M
>> >
>>
>> Yes, just found that.
>>
>> Can I still use /dev/md3 safely even though it's no longer in
>> mdadm.conf? I suspect I can?
>
> That sentence doesn't make much sense to me, so I suspect some misund=
erstand
> is going on. Â So to be explicit:
>
> Â Use
> Â Â mdadm --zero-superblock /dev/sdc3 /dev/sdb3 /dev/sda3
>
>  to remove  from those devices any record that they are par=
t of any md array.
>
> Does that clarify thing sufficienty?
>
> NeilBrown
Yes, making sure to do
mdadm -S /dev/md3
first.
/dev/md3 seems to be gone at this point. On to doing the new RAID6.
(See other thread - no one has responded to that one yet.)
Thanks again,
Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html