[Eisfair] Software-Raid-1 mit ext4
Jürgen Witt
j-witt at web.de
Sa Jul 5 10:28:08 CEST 2014
Hallo Marcus,
Am 04.07.2014 16:55, schrieb Marcus Roeckrath:
> Hallo Jürgen,
>
> Jürgen Witt wrote:
>
>>> md3->/mnt
>>> md1 nach /mnt/boot
>>>
>>> gemountet werden.
>>>
>>> lilo -r /mnt macht dann praktisch eine Art chroot.
>>
>> ja, genau so habe ich es auch gemacht.
>
> Kannst Du mal Deine /mnt/etc/lilo.conf posten?
eis # cat /mnt/etc/lilo.conf
lba32
disk = /dev/sda
bios = 0x80
boot = /dev/sda
read-only
prompt
timeout = 50
vga = normal
menu-scheme = wr:bw:wr:Yr
image = /boot/kernel
root = /dev/md3
label = eis
initrd = /boot/initrd.gz
append = "raid=noautodetect"
image = /boot/old-kernel
root = /dev/sda3
label = oldeis
initrd = /boot/old-initrd.gz
append = "raid=noautodetect"
eis # cat /mnt/etc/fstab
/dev/md3 / ext4 defaults,errors=remount-ro 0 1
/dev/md1 /boot ext4 defaults,errors=remount-ro 0 1
/dev/md2 none swap sw 0 0
/dev/md4 /data ext4 defaults 0 2
proc /proc proc defaults 0 0
/dev/fd0 /media/floppy auto defaults,user,noauto 0 0
/dev/cdrom /media/cdrom iso9660 defaults,ro,user,noauto 0 0
devpts /dev/pts devpts defaults 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
/sys /sys sysfs defaults 0 0
eis # sfdisk -luS
Disk /dev/sda: 9729 cylinders, 255 heads, 63 sectors/track
sfdisk: Warning: The partition table looks like it was made
for C/H/S=*/256/63 (instead of 9729/255/63).
For this listing I'll assume that geometry.
Units: sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sda1 1 156301487 156301487 ee GPT
/dev/sda2 0 - 0 0 Empty
/dev/sda3 0 - 0 0 Empty
/dev/sda4 0 - 0 0 Empty
Disk /dev/sdb: 9729 cylinders, 255 heads, 63 sectors/track
sfdisk: Warning: The partition table looks like it was made
for C/H/S=*/256/63 (instead of 9729/255/63).
For this listing I'll assume that geometry.
Units: sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdb1 1 156301487 156301487 ee GPT
/dev/sdb2 0 - 0 0 Empty
/dev/sdb3 0 - 0 0 Empty
/dev/sdb4 0 - 0 0 Empty
Disk /dev/md1: 12272 cylinders, 2 heads, 4 sectors/track
Disk /dev/md2: 1035760 cylinders, 2 heads, 4 sectors/track
Disk /dev/md3: 2619360 cylinders, 2 heads, 4 sectors/track
Disk /dev/md4: 15856624 cylinders, 2 heads, 4 sectors/track
eis # gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sda: 156301488 sectors, 74.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 5A0051F6-A58C-4742-8322-C58395B6C20B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 156301454
Partitions will be aligned on 2048-sector boundaries
Total free space is 22494 sectors (11.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 100351 48.0 MiB FD00 boot
2 100352 8390655 4.0 GiB FD00 swap
3 8390656 29362175 10.0 GiB FD00 root
4 29362176 156280974 60.5 GiB FD00 data
eis # gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sdb: 156301488 sectors, 74.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): A68D49C2-EAD8-44A6-AD33-D73ECD591566
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 156301454
Partitions will be aligned on 2048-sector boundaries
Total free space is 22494 sectors (11.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 100351 48.0 MiB FD00 boot
2 100352 8390655 4.0 GiB FD00 swap
3 8390656 29362175 10.0 GiB FD00 root
4 29362176 156280974 60.5 GiB FD00 data
Gruß
Jürgen
> Desweiteren, was für eine Platte (Bootplatte) hängt noch im System.
>
Mehr Informationen über die Mailingliste Eisfair