grub-setup fails to acess lvm
I will provide the info , then the section I couldnt get past:
1.
# cat device.map (hd0) /dev/hda (hd1) /dev/hdb (hd2) /dev/hdc (hd3) /dev/sda (hd4) /dev/sdb
2.
(chroot) kurbin grub # lvdisplay
File descriptor 6 left open
--- Logical volume ---
LV Name /dev/vg/RaidRoot VG Name vg LV UUID Y6cGVN-LGVo-xgjG-05BM-XdRn-2lPN-dyiTuF LV Write Access read/write LV Status available # open 2 LV Size 200.00 GB Current LE 51200 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:0
--- Logical volume ---
LV Name /dev/vg/boot VG Name vg LV UUID feiwNM-e85R-a33T-ozDL-kHvr-aVB2-w4GwPp LV Write Access read/write LV Status available # open 1 LV Size 32.00 MB Current LE 8 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1
--- Logical volume ---
LV Name /dev/vg/swap VG Name vg LV UUID SDX7rq-Bjtu-D8bR-8OJF-Ov33-cfFj-K9stU5 LV Write Access read/write LV Status available # open 0 LV Size 512.00 MB Current LE 128 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:2
3.
(chroot) kurbin grub # ./grub-setup -d $PWD -v -r '(md1)' -m $PWD/device.map '(md1,1)'
grub-setup: info: prefix = /grub
grub-setup: error: Can't open /dev/md1,1: No such file or directory
4.
(chroot) kurbin grub # ./grub-setup -d $PWD -v -r '(md1)' -m $PWD/device.map '(m
d1)'
grub-setup: info: prefix = /grub
grub-setup: info: /dev/sda starts from 0
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: reading /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: reading /boot/grub/core.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: the size of hd3 is 156301488
grub-setup: info: setting the root device to `md1'
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: will leave the core image on the filesystem
grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G
RUB
grub-setup: info: couldn't open the core image
grub-setup: info: error message = unknown device
grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G
RUB again
grub-setup: info: couldn't open the core image
grub-setup: info: error message = unknown device
grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G
RUB again
grub-setup: info: couldn't open the core image
grub-setup: info: error message = unknown device
grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G
RUB again
grub-setup: info: couldn't open the core image
grub-setup: info: error message = unknown device
grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G
RUB again
grub-setup: info: couldn't open the core image
grub-setup: info: error message = unknown device
grub-setup: error: Cannot read `(md1)/grub/core.img' correctly
what to put instead of md1??