Linux RAID migration

2007-08-07 Thread saeed bishara
Hi, I'm looking for a method for doing RAID migration while keeping the data available. the migrations I'm interested with are: 1. Single drive -RAID1/RAID5 2. RAID1 - RAID5. the mdadm and kernel doesn't seem to provide built-in and crash-proof solution. but I found that RAID5 on 2 drives in

Re: Linux RAID migration

2007-08-07 Thread Tuomas Leikola
On 8/7/07, saeed bishara [EMAIL PROTECTED] wrote: Hi, I'm looking for a method for doing RAID migration while keeping the data available. the migrations I'm interested with are: 1. Single drive -RAID1/RAID5 2. RAID1 - RAID5. 1. is a bit complicated, as a raid device on a disk is slightly

Re: Linux RAID migration

2007-08-07 Thread saeed bishara
On 8/7/07, Tuomas Leikola [EMAIL PROTECTED] wrote: On 8/7/07, saeed bishara [EMAIL PROTECTED] wrote: Hi, I'm looking for a method for doing RAID migration while keeping the data available. the migrations I'm interested with are: 1. Single drive -RAID1/RAID5 2. RAID1 - RAID5. 1.

mdadm and superblock format 1

2007-08-07 Thread Michal Soltys
I've noticed, that whenever I use 1.1 or 1.2 superblock format, mdadm will always report version 1, when i.e. mdadm -E --scan is issued. Also, in these two cases, mdadm -A --scan won't work, unless proper ARRAY line is present in mdadm.conf (and if metadata is part of the description, it must

Re: Linux RAID migration

2007-08-07 Thread Neil Brown
On Tuesday August 7, [EMAIL PROTECTED] wrote: 2. should be simple as (offline) re-creating the raid as raid5. this didn't work, I created raid1 array on sda[12], then stopped it, and created new raid5 on sda[123], the data on the raid1 was not preserved. Create the new raid5 on sda[12] (same

Re: Linux RAID migration

2007-08-07 Thread saeed bishara
A 2-disk raid5 and a 2-disk raid1 put the data in exactly the same place - is that what you wanted to know? yes, exactly. NeilBrown - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: Linux RAID migration

2007-08-07 Thread Tomasz Chmielewski
Neil Brown schrieb: (...) - can I really assume that RAID 5 on 2 hdds (degraded mode) will function as raid 5? You should test by using loopback devices and files. But why degraded? raid5 of two disks should look like raid1. I meant to ask whether raid 5 on 2 disks will function as raid1 :(

Re: Linux RAID migration

2007-08-07 Thread saeed bishara
how can I create raid 5 array that preserves the contents of a given disk (part of the array)? I can do that in two steps, raid 5 on two disks then reshape it to be real raid5, but is there a direct way to do it? saeed - To unsubscribe from this list: send the line unsubscribe linux-raid in the

Re: mdadm and superblock format 1

2007-08-07 Thread Neil Brown
On Tuesday August 7, [EMAIL PROTECTED] wrote: I've noticed, that whenever I use 1.1 or 1.2 superblock format, mdadm will always report version 1, when i.e. mdadm -E --scan is issued. Also, in these two cases, mdadm -A --scan won't work, unless proper ARRAY line is present in mdadm.conf

Re: Linux RAID migration

2007-08-07 Thread Neil Brown
On Tuesday August 7, [EMAIL PROTECTED] wrote: how can I create raid 5 array that preserves the contents of a given disk (part of the array)? I can do that in two steps, raid 5 on two disks then reshape it to be real raid5, but is there a direct way to do it? What do you mean by real raid 5.

Re: Linux RAID migration

2007-08-07 Thread Neil Brown
On Tuesday August 7, [EMAIL PROTECTED] wrote: On 8/7/07, Neil Brown [EMAIL PROTECTED] wrote: On Tuesday August 7, [EMAIL PROTECTED] wrote: how can I create raid 5 array that preserves the contents of a given disk (part of the array)? I can do that in two steps, raid 5 on two disks then

Re: Linux RAID migration

2007-08-07 Thread saeed bishara
mdadm --grow /dev/md0 --raid-disks=3 the mdadm --grow supports saving backup file that can be used to re-assemble the array in case of crash during the critical section. Any idea what is the size of file? or is there any upper limit in the case of array of 5 drives? saeed - To unsubscribe