hosenbund
27.08.13, 20:38
habe ähnliche Probleme, nur dass ich bei mir noch auf ein RAID 1 für / (dev/md2) und /boot (/dev/md1) setzen wollte/will.
Habe das Ganze per Paritionierungstool schon gebaut, komme per chroot in das neue System, habe die fstab angepasst, aber nach dem boot von HDD kommt ... nix bekomme dann nur nach 5 min die Mail von OVH, dass die Kiste nicht mehr erreichbar sei...
eine SW-RAID angelegt (/etc/grub.d/09_swraid1_setup)
Die config für mdadm angepasst:
grub2 installiert, lief ohne Probleme durch:
Jetzt bin ich mit meinem Latein völlig am Ende... Finde nichts aussagekräftiges in den Logs (legt GRUB2 denn auch keine logs an!!?). Hab ich irgendetwas offensichtliches übersehen? Wäre über jeden Tipp dankbar
Habe das Ganze per Paritionierungstool schon gebaut, komme per chroot in das neue System, habe die fstab angepasst, aber nach dem boot von HDD kommt ... nix bekomme dann nur nach 5 min die Mail von OVH, dass die Kiste nicht mehr erreichbar sei...
Code:
#/dev/md2 / ext4 errors=remount-ro,relatime 0 1 /dev/md1 /boot ext4 errors=remount-ro,relatime 0 1 /dev/sda3 swap swap defaults 0 0 /dev/sdb3 swap swap defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts defaults 0 0
Code:
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os { insmod raid insmod mdraid insmod part_msdos insmod ext2 set root='(md/1)' echo 'Loading Linux 3.2.0-4-amd64 ...' linux /vmlinuz-3.2.0-4-amd64 root=/dev/md2 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-3.2.0-4-amd64
Code:
# mdadm.conf .... #DEVICE partitions containers # auto-create devices with Debian standard permissions CREATE owner=root group=disk mode=0660 auto=yes # automatically tag new arrays as belonging to the local system HOMEHOST# instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays ARRAY /dev/md1 UUID=d24dbc78:d17d8d32:a4d2adc2:26fd5302 ARRAY /dev/md2 UUID=cff61221:3b6f445e:a4d2adc2:26fd5302 # This file was auto-generated on Mon, 26 Aug 2013 23:07:53 +0200 # by mkconf 3.2.5-5 ARRAY /dev/md1 UUID=d24dbc78:d17d8d32:a4d2adc2:26fd5302 ARRAY /dev/md2 UUID=cff61221:3b6f445e:a4d2adc2:26fd5302
Code:
root@rescue:/# update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.0-4-amd64 Found initrd image: /boot/initrd.img-3.2.0-4-amd64 Found Debian GNU/Linux (7.1) on /dev/sda2 Found Debian GNU/Linux (7.1) on /dev/sdb2 done root@rescue:/# root@rescue:/# update-initramfs -u update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64