Discussion:
Converting RAID5 -> RAID6
Roger Irwin
2011-10-04 00:12:17 UTC
Permalink
Hi,

I have a server that I have upgraded from RAID1 to RAID5 and want to add
a device to convert it to RAID6.

To do this I removed /dev/sdb2 from /dev/md0 (was on dev/sda2 &
/dev/sdb2), partitioned, created /dev/md1 and used LVM to move the data
over. I have then allowed it to rebuild and added /dev/sda3 to /dev/md1.

but I keep getting this error:

***@server:~# mdadm --grow /dev/md1 --level=6 --raid-devices=4
--backup-file=/root/md1.backup
mdadm: metadata format 00.90 unknown, ignored.
mdadm: /dev/md1: Cannot reshape array without increasing size (yet).

Can anyone tell why?

Regards,
Roger

***@server:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md1 : active raid5 sda3[3](S) sdc3[1] sdd3[2] sdb3[0]
3906525056 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

unused devices: <none>
***@server:~# mdadm --detail /dev/md1
mdadm: metadata format 00.90 unknown, ignored.
/dev/md1:
Version : 00.90
Creation Time : Sun Oct 2 15:34:44 2011
Raid Level : raid5
Array Size : 3906525056 (3725.55 GiB 4000.28 GB)
Used Dev Size : 1953262528 (1862.78 GiB 2000.14 GB)
Raid Devices : 3
Total Devices : 4
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Tue Oct 4 12:40:12 2011
State : clean
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 64K

UUID : e3014b69:92684343:b34c445f:7ce90c42
Events : 0.16484

Number Major Minor RaidDevice State
0 8 19 0 active sync /dev/sdb3
1 8 35 1 active sync /dev/sdc3
2 8 51 2 active sync /dev/sdd3

3 8 3 - spare /dev/sda3

***@server:~# parted /dev/sda
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA ST32000641AS (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 1018kB 1001kB bios_grub
2 1018kB 257MB 256MB ext2
3 258MB 2000GB 2000GB raid

(parted) select /dev/sdb
Using /dev/sdb
(parted) p
Model: ATA ST32000641AS (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 1018kB 1001kB bios_grub
2 1018kB 257MB 256MB ext2
3 258MB 2000GB 2000GB raid

(parted) quit


_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

Loading...