[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RAID across kernel upgrade ?



I had a RAID1 on the root fs on the machine with kernel
2.4.27-1-386. Decided at last to upgrade to 2.4.27-3-686. There were
no problems with the new kernel installation, only with the RAID1, I
lost it :(

What is the _right_ procedure of actions might be (well, at least I
know one wrong procedure now) ?

Dispositon:

There is a working RAID1 (mirroring) array /dev/md0 of 2 elements
/dev/hda1, /dev/hdc1. kernel 2.4.27-1-386

$ cat /etc/mkinitrd/modules 
raid1

(Yes, md and raid1 as modules)

$ cat /proc/mdstat
Personalities : [raid1] 
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus0/target0/lun0/part1[0] ide/host0/bus1/target0/lun0/part1[1]
      76603328 blocks [2/2] [UU]
      
unused devices: <none>

/etc/fstab

  /dev/md0       /               ext3    defaults,errors=remount-ro 0       1

/boot/grub/menu.lst

  title           Debian GNU/Linux, kernel 2.4.27-1-386 RAID
  root            (hd0,0)
  kernel          /boot/vmlinuz-2.4.27-1-386 ro root=/dev/md0 md=0,/dev/hda1,/dev/hdc1
  initrd          /boot/initrd.img-2.4.27-1-386.raid
  savedefault
  boot

/etc/mdadm/mdadm.conf
  DEVICE partitions

Goal:

Upgrade kernel to 2.4.27-3-686 without losing the RAID1

The fist step is to upgrade the kernel

  $ aptitude install kernel-image-2.4-686

About the follwing steps I'm not so sure, could you please help me
with the following steps?


-- 
Vladimir Zolotykh



Reply to: