> Suppose you have a RAID0 array already functioning, and you want to mirror
> it to another RAID0 array of Identical size.  How do you "hot-add" this
> second array to the first?

Can't you use the failed-disk technique, same as with mirroring a normal
partition?

> (Can you "raidhotadd /dev/md1 /dev/md2" as if md1 were just a regular
> drive?)

You could only "raidhotadd /dev/md1 /dev/md2" if /dev/md2 were defined as a
raid-disk, failed-disk or spare-disk in the raidtab used when /dev/md1 was
mkraided. I suppose this could be so if /dev/md2 is the already functioning
RAID-0 array and /dev/md1 is the new RAID-1 array created with /dev/md2 as a
failed-disk. Assuming /dev/md3 is the other RAID-0 array, would the following
raidtab not work?

raiddev                 /dev/md1  # New RAID-1 array
raid-level              1
persistent-superblock   1
chunk-size              4
nr-raid-disks           2
nr-spare-disks          0

device                  /dev/md3  # New RAID-0 array
raid-disk               0
device                  /dev/md2  # Existing RAID-0 array
failed-disk             1

I doubt this is what you mean, because the array numbering is out of any logical
order for this to work. But if you could successfully create the RAID-1 array in
degraded mode this way (changing the md device numbers to whatever is the actual
situation on your machine), copy the data from /dev/md2 to /dev/md1, unmount
/dev/m2 and then raidhotadd /dev/md1 /dev/md2, wouldn't that get you there?

Cheers,


Bruno Prior         [EMAIL PROTECTED]

Reply via email to