* How do I get rid of old device?
@ 2008-01-16 23:09 Justin Piszcz
2008-01-16 23:13 ` Justin Piszcz
2008-01-16 23:14 ` Neil Brown
0 siblings, 2 replies; 4+ messages in thread
From: Justin Piszcz @ 2008-01-16 23:09 UTC (permalink / raw)
To: linux-raid
p34:~# mdadm /dev/md3 --zero-superblock
p34:~# mdadm --examine --scan
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=f463057c:9a696419:3bcb794a:7aaa12b2
ARRAY /dev/md1 level=raid1 num-devices=2
UUID=98e4948c:c6685f82:e082fd95:e7f45529
ARRAY /dev/md2 level=raid1 num-devices=2
UUID=330c9879:73af7d3e:57f4c139:f9191788
ARRAY /dev/md3 level=raid0 num-devices=10
UUID=6dc12c36:b3517ff9:083fb634:68e9eb49
p34:~#
I cannot seem to get rid of /dev/md3, its almost as if there is a piece of
it on the root (2) disks or reference to it?
I also dd'd the other 10 disks (non-root) and /dev/md3 persists.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do I get rid of old device?
2008-01-16 23:09 How do I get rid of old device? Justin Piszcz
@ 2008-01-16 23:13 ` Justin Piszcz
2008-01-16 23:14 ` Neil Brown
1 sibling, 0 replies; 4+ messages in thread
From: Justin Piszcz @ 2008-01-16 23:13 UTC (permalink / raw)
To: linux-raid
On Wed, 16 Jan 2008, Justin Piszcz wrote:
> p34:~# mdadm /dev/md3 --zero-superblock
> p34:~# mdadm --examine --scan
> ARRAY /dev/md0 level=raid1 num-devices=2
> UUID=f463057c:9a696419:3bcb794a:7aaa12b2
> ARRAY /dev/md1 level=raid1 num-devices=2
> UUID=98e4948c:c6685f82:e082fd95:e7f45529
> ARRAY /dev/md2 level=raid1 num-devices=2
> UUID=330c9879:73af7d3e:57f4c139:f9191788
> ARRAY /dev/md3 level=raid0 num-devices=10
> UUID=6dc12c36:b3517ff9:083fb634:68e9eb49
> p34:~#
>
> I cannot seem to get rid of /dev/md3, its almost as if there is a piece of it
> on the root (2) disks or reference to it?
>
> I also dd'd the other 10 disks (non-root) and /dev/md3 persists.
>
>
>
Hopefully this will clear it out:
p34:~# for i in /dev/sd[c-l]; do /usr/bin/time dd if=/dev/zero of=$i bs=1M
& done
[1] 4625
[2] 4626
[3] 4627
[4] 4628
[5] 4629
[6] 4630
[7] 4631
[8] 4632
[9] 4633
[10] 4634
p34:~#
Good aggregate bandwidth at least writing to all 10 disks.
procs -----------memory---------- ---swap-- -----io---- -system------cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 9 0 46472 7201008 73424 0 0 0 658756 2339 2242 0 22 24 54
3 10 0 44132 7204680 73292 0 0 0 660040 2335 2276 0 22 19 59
5 8 0 48196 7201840 73736 0 0 0 652708 2403 1645 0 23 11 66
2 9 0 45728 7205036 72628 0 0 0 659844 2296 1891 0 23 11 66
0 11 0 47672 7202992 72564 0 0 0 672856 2327 1616 0 22 7 71
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do I get rid of old device?
2008-01-16 23:09 How do I get rid of old device? Justin Piszcz
2008-01-16 23:13 ` Justin Piszcz
@ 2008-01-16 23:14 ` Neil Brown
2008-01-17 0:35 ` Justin Piszcz
1 sibling, 1 reply; 4+ messages in thread
From: Neil Brown @ 2008-01-16 23:14 UTC (permalink / raw)
To: Justin Piszcz; +Cc: linux-raid
On Wednesday January 16, jpiszcz@lucidpixels.com wrote:
> p34:~# mdadm /dev/md3 --zero-superblock
> p34:~# mdadm --examine --scan
> ARRAY /dev/md0 level=raid1 num-devices=2
> UUID=f463057c:9a696419:3bcb794a:7aaa12b2
> ARRAY /dev/md1 level=raid1 num-devices=2
> UUID=98e4948c:c6685f82:e082fd95:e7f45529
> ARRAY /dev/md2 level=raid1 num-devices=2
> UUID=330c9879:73af7d3e:57f4c139:f9191788
> ARRAY /dev/md3 level=raid0 num-devices=10
> UUID=6dc12c36:b3517ff9:083fb634:68e9eb49
> p34:~#
>
> I cannot seem to get rid of /dev/md3, its almost as if there is a piece of
> it on the root (2) disks or reference to it?
>
> I also dd'd the other 10 disks (non-root) and /dev/md3 persists.
You don't zero the superblock on the array device, because the array
device does not have a superblock. The component devices have the
superblock.
So
mdadm --zero-superblock /dev/sd*
or whatever.
Maybe
mdadm --examine --scan -v
then get the list of devices it found for the array you want to kill,
and --zero-superblock that list.
NeilBrown
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do I get rid of old device?
2008-01-16 23:14 ` Neil Brown
@ 2008-01-17 0:35 ` Justin Piszcz
0 siblings, 0 replies; 4+ messages in thread
From: Justin Piszcz @ 2008-01-17 0:35 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
On Thu, 17 Jan 2008, Neil Brown wrote:
> On Wednesday January 16, jpiszcz@lucidpixels.com wrote:
>> p34:~# mdadm /dev/md3 --zero-superblock
>> p34:~# mdadm --examine --scan
>> ARRAY /dev/md0 level=raid1 num-devices=2
>> UUID=f463057c:9a696419:3bcb794a:7aaa12b2
>> ARRAY /dev/md1 level=raid1 num-devices=2
>> UUID=98e4948c:c6685f82:e082fd95:e7f45529
>> ARRAY /dev/md2 level=raid1 num-devices=2
>> UUID=330c9879:73af7d3e:57f4c139:f9191788
>> ARRAY /dev/md3 level=raid0 num-devices=10
>> UUID=6dc12c36:b3517ff9:083fb634:68e9eb49
>> p34:~#
>>
>> I cannot seem to get rid of /dev/md3, its almost as if there is a piece of
>> it on the root (2) disks or reference to it?
>>
>> I also dd'd the other 10 disks (non-root) and /dev/md3 persists.
>
> You don't zero the superblock on the array device, because the array
> device does not have a superblock. The component devices have the
> superblock.
>
> So
> mdadm --zero-superblock /dev/sd*
> or whatever.
> Maybe
> mdadm --examine --scan -v
>
> then get the list of devices it found for the array you want to kill,
> and --zero-superblock that list.
>
> NeilBrown
>
Thanks, will keep this in mind for the future-- I just checked and the
dd's have finished and there is no longer a /dev/md3, but mdadm
--zero-superblock /dev/sd[c-l] would have been much easier.
Justin.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-17 0:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-16 23:09 How do I get rid of old device? Justin Piszcz
2008-01-16 23:13 ` Justin Piszcz
2008-01-16 23:14 ` Neil Brown
2008-01-17 0:35 ` Justin Piszcz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox