On Thu, Apr 27, 2000 at 01:49:47PM +0300, Mika Kuoppala wrote:
> > I have an existing RAID-0 device that I would like to convert to RAID-5.
> >
> > I've done the necessary changes to my /etc/raidtab, but mkraid fails because
> > (I assume) it finds an existing persistent superblock on the old RAID-0
> > partitions.
> >
> > So my question becomes: How does one erase the raid persistent superblock
> > from a physical partition? Or, more generally, what'd be the right way to
> > switch from RAID-0 to RAID-5?
> I would:
> - backup everything in raid-0
Naturally - though the partition hosts /tmp so for me this is a moot point.
> - mkraid raid-5, destrying old raid-0
This is where I am encountering problems. mkraid reports:
DESTROYING the contents of /dev/md1 in 5 seconds, Ctrl-C if unsure!
handling MD device /dev/md1
analyzing super-block
disk 0: /dev/sda6, 530113kB, raid superblock at 530048kB
disk 1: /dev/sdb6, 530113kB, raid superblock at 530048kB
disk 2: /dev/sdc6, 530113kB, raid superblock at 530048kB
disk 3: /dev/sdd6, 530113kB, raid superblock at 530048kB
mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
And from syslog:
Apr 27 15:01:10 gromit kernel: array md1 already exists!
And /proc/mdstat:
md1 : inactive
Because of what syslog reports I think I'd have to somehow erase the
existing RAID-1 superblocks. I also tried mkfs'ing all the /dev/sd?6
partitions individually to erase the superblocks, but to no avail.
> - restore from backup
yeah.
> I think Jakob Østergaard has made raid-reconf utility
> which you can use to grow raid0 arrays. But i think
> i didn't support converting from raid0 to raid5. Or
> perhaps it alraeady does =? :)
Thanks - I'll check that out.
--
[EMAIL PROTECTED] fishpool creations oy ltd
http://www.kasvua.org/~toivotuo/ http://www.fishpool.fi/