I have a raid10 which i wish to expand the idea was to remove 1 disk from the raid and copy the filesystem to this disk and then adapt lilo to boot from this disk.
But it doesn't work. It keeps booting from the raid. I also tried chroot but then lilo exits with a error.
Code:
bash-4.1# mount -t ext2 /dev/sdc3 /mnt/disk
bash-4.1# chroot /mnt/disk
bash-4.1# lilo
Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sdc3")
Code:
bash-4.1# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md_d0 : active raid10 sdb[1] sda[0]
1464685056 blocks 256K chunks 2 far-copies [3/2] [UU_]
bitmap: 1/11 pages [4KB], 65536KB chunk
unused devices: <none>
Old lilo.conf
Code:
bash-4.1# cat /etc/lilo.conf
boot = /dev/sdc
compact # faster, but won't work on all systems.
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
append=" raid=noautodetect md=d0,/dev/sda,/dev/sdb,/dev/sdc3 vt.default_utf8=1"
prompt
timeout = 50
vga = 886
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/md_d0p2
label = Linux
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
New lilo.conf
Code:
bash-4.1# cat /mnt/disk/etc/lilo.conf
boot = /dev/sdc
map=boot/map
#install=mnt/disk/boot/boot.b
compact # faster, but won't work on all systems.
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
append="vt.default_utf8=1"
# raid=noautodetect md=d0,/dev/sda,/dev/sdb,/dev/sdc3 vt.default_utf8=1"
prompt
timeout = 50
vga = 886
# Linux bootable partition config begins
image =/boot/vmlinuz
root = /dev/sdc3
label = Linux
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends