Yes, I did an install on /dev/hda1 and then configured hdb1 and hdc1 for
raid0 (for / mount) -- hdb3 and hdc3 (for /boot mount) on a couple of 20G
drives.  (/dev/hdb2 and /dev/hdc2 are 128M swap).  I mounted /dev/md0 as
/mnt/root and /dev/md1 as /mnt/boot.  Then:
cp -ax /boot /mnt/boot
cp -ax / /mnt/root
Then, I wanted to remove the install disk. To do this, edit
/mnt/root/etc/raidtab and change references from hdb to hda.  Configure
/mnt/root/etc/lilo.conf and /etc/mnt/etc/fstab and power down.  Pull install
drive (old /dev/hda).  Jumper /dev/hdb to now be master.  Boot from a floppy
and run lilo.  Reboot.

[root@bugsbunny /root]# cat /etc/raidtab
# Sample raid-1 configuration
raiddev                 /dev/md0
raid-level              1
nr-raid-disks           2
nr-spare-disks          0
chunk-size              4
persistent-superblock   1

device                  /dev/hda1
raid-disk               0

device                  /dev/hdc1
raid-disk               1

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

device                  /dev/hda3
raid-disk               0

device                  /dev/hdc3
raid-disk               1

[root@bugsbunny /root]# cat /etc/lilo.conf
boot = /dev/md1
timeout = 50
prompt
  message = /boot/message
  default = linux
  vga = 0x0f05
  read-only
map=/boot/map
install=/boot/boot.b
keytable=/boot/us.klt

image = /boot/vmlinuz
  label = linux
  append = "max_scsi_luns=5"
  root = /dev/md0

image = /boot/vmlinuz.old
  label = oldlinux
  append = "max_scsi_luns=5"
  root = /dev/md0

other = /dev/fd0
  label = floppy
  unsafe

[root@bugsbunny /root]# cat /etc/fstab
#/dev/hda1      /               ext2    defaults        1 1
/dev/md0        /               ext2    defaults        1 1
/dev/md1        /boot           ext2    defaults        1 1

#/dev/hda2      swap            swap    defaults        0 0
/dev/hda2       none            swap    pri=100,exec,dev,suid,rw 1 1
/dev/hdc2       none            swap    pri=100,exec,dev,suid,rw 1 1

none            /proc           proc    defaults        0 0
none            /dev/pts        devpts  mode=0620       0 0

/dev/fd0        /mnt/floppy     auto sync,user,noauto,nosuid,nodev,unhide
0
 0
/dev/cdrom      /mnt/cdrom      auto user,noauto,nosuid,exec,nodev,ro   0 0

elmo:/home/Mandrake /mnt/nfs nfs noauto,ro,nosuid,rsize=8192,wsize=8192 0 0


Hope this helps,
Bill


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Marc Bourget
> Sent: Friday, June 23, 2000 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: [expert] Upgrade on Software root RAID
>
>
>
> Hi,
>
> I'm trying to upgrade MDK 7.0 system with a software raid0 root. It
> seems that everything is in place to do it since I manadged
> to manually
> start and mount the array. The problem is that the installer
> dont offer
> you any choice over choosing a root on an md device.
>
> Did someone managed to do it automaticly or even manually. I
> wold really
> apreciate some help on this thing since the only other way I
> have is to
> reinstall everything from scratch. (We all know this is a bad thing!)
>
> --
> _____________________________________________________________
> Marc Bourget
>
>
>
>
>
>

Reply via email to