Thread (13 messages) 13 messages, 3 authors, 2012-02-20

Re: add another disk to existing raid 0, ie grow raid 0 possible?

flat view

From: Nikolay Kichukov <hidden>
Date: 2012-02-16 15:38:52

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
It really might be fixed in recent code, just for consistency:

dpkg -l | grep mdadm
ii  mdadm                                         3.2.3-2                          tool to administer Linux MD arrays
(software RAID)

uname -a
Linux hanna64 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64 GNU/Linux



Cheers,
- -Nik

On 02/16/2012 08:55 AM, NeilBrown wrote:
On Tue, 14 Feb 2012 11:43:30 +0200 Nikolay Kichukov [off-list ref]
wrote:
quoted
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
quoted
Hello Neil,
Here is the result, I think I managed to reproduce it as it has converted the raid0 to raid4.
quoted
so commands in sequence:
quoted
mdadm --verbose --create /dev/md/mdtest --level=0 --raid-devices=2 --metadata=1.2 /dev/loop0 /dev/loop1
mdadm: chunk size defaults to 512K
mdadm: array /dev/md/mdtest started.
quoted
strace -o /tmp/foo -f mdadm --grow /dev/md/mdtest --raid-devices=3 --add /dev/loop2
mdadm: level of /dev/md/mdtest changed to raid4
mdadm: /dev/loop2 not large enough to join array
mdadm: Need to backup 3072K of critical section..
mdadm: /dev/md/mdtest: Cannot grow - need a spare or backup-file to backup critical section
mdadm: aborting level change

I tried exactly that and it worked perfectly.
Maybe the bug has been fixed.
Please remind me exactly which versions of mdadm and linux you are using.

Thanks,
NeilBrown
N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¥Š{±­¨Š{ayº
ʇڙë,j­¢f£¢·hš‹àz¹
®w¥¢¸
¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾«‘êçzZ+ƒùšŽŠÝ¢j"ú!tml=
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPPSMMAAoJEDFLYVOGGjgXKWgH/3W4VqM65Dq4j0XIpyDUYi2B
ATFvVtzmBfiXvNnVBDdP953OK5bBrdcfXUbqYcRUOnzIPEcnxycWxtAe4qO/+OT5
ZJVajCD5JT8dD/xpSbW+bqi9CHo1kRzCfQmI9GydIYykfN6qjS7jfJqH4Jp6Au/w
2UFE0ZyZvB9pVrORdUCCZ7r0Zj2ctofqhxAG1Rip1ZZXtpuSHayIib5gUBx2S/JB
FQPElqbaEureoDzG5fSg3IMBB7Sc37AjxzxbWkvYd1mBe2e9v4GHnsjv+wEukR95
e5VMr1NZ31AUzeQJR9YQW0NEjE/x/dar9+3jTXwZ1J2Z/1j08lsx9yL4kum3KDQ=
=gOyk
-----END PGP SIGNATURE-----
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help