lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 13 May 2009 11:20:37 +0300
From:	roma1390 <roma1390@...il.com>
To:	linux-kernel@...r.kernel.org
CC:	neilb@...e.de
Subject: md: Can't convert raid level

Hello,

tested with linux-2.6.git a4f1cb9f3c42e5d278b0678ed5225d9331a8dcff

If i have spare disk i can grow
raid1, raid4, raid5 and raid6

but can't convert to other raid level. Raid conversation matrix:

from\to | 0 | 1 | 4 | 5 | 6
============================
  raid0  | -   -   -   -   -
  raid1  | -   +   -   -   -
  raid4  |-22 -22  +  -22 -22
  raid5  |-22 -22 -22  +  -22
  raid6  |-22 -22 -22 -22  +

Sample test script, log, dmesg, kernel config is attached.

Major problem is than can not do online covert from raid5 to raid6:

## create raid5
# mdadm --create /dev/md0 --level=5 --raid-devices=2 \
  /dev/loop1 /dev/loop2
mdadm: array /dev/md0 started.

## add some spare devices
# mdadm --add /dev/md0 /dev/loop5 /dev/loop6
mdadm: added /dev/loop5
mdadm: added /dev/loop6

## try to convert to raid6
# mdadm --grow /dev/md0 --level=6 --raid-devices=4
mdadm: Need to backup 128K of critical section..
mdadm: Cannot set device size/shape for /dev/md0: Invalid argument
dmesg: md: couldn't update array info. -22




View attachment ".config" of type "text/plain" (60750 bytes)

View attachment "dmesg" of type "text/plain" (18185 bytes)

View attachment "log" of type "text/plain" (5706 bytes)

View attachment "mini" of type "text/plain" (1577 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ