Доброго.
Ставится gentoo на lvm+raid1
Boot раздел отсутствует, вот схема устройств:
rescue / # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 2.7T 0 disk
|-sda1 8:1 0 2T 0 part
| `-md0 9:0 0 2T 0 raid1
| |-vg_mirror-lv_root (dm-0) 253:0 0 50G 0 lvm /mnt/gentoo
| `-vg_mirror-lv_var (dm-1) 253:1 0 2T 0 lvm /mnt/gentoo/var
`-sda2 8:2 0 746.5G 0 part
sdb 8:16 0 2.7T 0 disk
|-sdb1 8:17 0 2T 0 part
| `-md0 9:0 0 2T 0 raid1
| |-vg_mirror-lv_root (dm-0) 253:0 0 50G 0 lvm /mnt/gentoo
| `-vg_mirror-lv_var (dm-1) 253:1 0 2T 0 lvm /mnt/gentoo/var
`-sdb2 8:18 0 746.5G 0 part
loop0 7:0 0 1.5G 1 loop
Усрановлен grub
[ebuild R ~] sys-boot/grub-2.00_p5086:2 USE="device-mapper multislot nls -custom-cflags -debug -doc -efiemu -libzfs -mount -sdl -static {-test} -truetype" GRUB_PLATFORMS="coreboot pc -efi-32 -efi-64 -emu -ieee1275 -multiboot -qemu -qemu-mips -yeeloong" 0 kB
Теперь сама проблема. Запускаю установку grub и ступор:
rescue / # grub2-install --modules="lvm raid mdraid1x reiserfs" --no-floppy /dev/sda
Path `/boot/grub2' is not readable by GRUB on boot. Installation is impossible. Aborting.
А до этого тоже конфиг ругался:
rescue / # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/kernel-genkernel-x86_64-3.8.13-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-3.8.13-gentoo
mdadm: cannot open /dev/md0 : No such file or directory
/usr/sbin/grub2-probe: error: cannot open `/dev/md0 ': No such file or directory.
mdadm: cannot open /dev/md0 : No such file or directory
/usr/sbin/grub2-probe: error: cannot open `/dev/md0 ': No such file or directory.
mdadm: cannot open /dev/md0 : No such file or directory
/usr/sbin/grub2-probe: error: cannot open `/dev/md0 ': No such file or directory.
done
Отдельно проба и тоже самое:
rescue / # grub2-probe -v -t fs /boot/grub2
grub2-probe: info: cannot open `/boot/grub2/device.map': No such file or directory.
grub2-probe: info: changing current directory to /dev/mapper.
grub2-probe: info: /dev/dm-0 is an LVM.
mdadm: cannot open /dev/md0 : No such file or directory
grub2-probe: error: cannot open `/dev/md0 ': No such file or directory.
Как так? Ведь raid на месте:
rescue / # mdadm -D /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Thu Aug 8 05:47:17 2013
Raid Level : raid1
Array Size : 2147479651 (2048.00 GiB 2199.02 GB)
Used Dev Size : 2147479651 (2048.00 GiB 2199.02 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Thu Aug 8 13:24:53 2013
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : rescue:0 (local to host rescue)
UUID : a192dc51:120fd3d2:f677d519:8e915e11
Events : 22
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
Понять не могу.
Вопрос: как починить установку загрузчика?
Спасибо кто откликнется.