On Sun, 31 Aug 2014 12:43:26 +0000 (UTC) Mike Muratet <muratetm@xxxxxxxxx> wrote: > I am doing some experiments with mdadm to combine two 1TB disks into a RAID > array. I used fdisk to create the partitions and mdadm to create a two disk > RAID5 array. I would like to have more space and I can live without > redundancy. I searched the man pages and boards for a way to do that and found: > > $ sudo mdadm /dev/md0 -f /dev/sdd > mdadm: set /dev/sdd faulty in /dev/md0 > $ sudo mdadm /dev/md0 -r /dev/sdd > mdadm: hot removed /dev/sdd from /dev/md0 > $ sudo echo raid0 > /sys/block/md0/md/level > > -bash: /sys/block/md0/md/level: Permission denied > > which was not the result I expected. > > Is it possible to convert RAID5 to RAID0? Presumably you mean to convert a 2-device RAID5 to q 2-device RAID0, thus doubling the amount of space. mdadm /dev/md0 --grow --level=0 --raid-disks=2 will tell you that you need a backup file, so mdadm /dev/md0 --grow --level=0 --raid-disks=2 --backup-file=/root/backup will work... but will leave you with a degraded RAID4. So just run that same command again to finish the job. NeilBrown > > There are no data on the disk. Is there a way to start over? > > Cheers > > Mike > > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html
Attachment:
signature.asc
Description: PGP signature