[Eisfair] Problem beim RAID einrichten E1

Marcus Roeckrath marcus.roeckrath at gmx.de
Di Jun 14 16:40:15 CEST 2016


Hallo Andreas,

Andreas Schmied wrote:

>> Ausgabe von fdisk -l
> Disk /dev/hda: 74.6 GiB, 80059342336 bytes, 156365903 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 2AC3D577-8724-4886-B1A7-F61A780705A0
> 
> Device        Start       End   Sectors  Size Type
> /dev/hda1      2048    100351     98304   48M Linux filesystem
> /dev/hda2    100352    362495    262144  128M Linux swap
> /dev/hda3    362496  33916927  33554432   16G Linux filesystem
> /dev/hda4  33916928 156345389 122428462 58.4G Linux filesystem
> 
> 
> Disk /dev/hdb: 74.6 GiB, 80059342336 bytes, 156365903 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 2AC3D577-8724-4886-B1A7-F61A780705A0
> 
> Device        Start       End   Sectors  Size Type
> /dev/hdb1      2048    100351     98304   48M Linux filesystem
> /dev/hdb2    100352    362495    262144  128M Linux swap
> /dev/hdb3    362496  33916927  33554432   16G Linux filesystem
> /dev/hdb4  33916928 156345389 122428462 58.4G Linux filesystem

Da stimmt schonmal der Filesystemtype nicht, dass muss bei einem Raid-System
so aussehen (hier nicht mit gpt, deshalb sieht die Ausgabe leicht anders
aus):

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x62259314

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sda1  *        2048    112454    110407  53.9M fd Linux raid autodetect
/dev/sda2         112456   2216969   2104514     1G fd Linux raid autodetect
/dev/sda3        2216976  35776754  33559779    16G fd Linux raid autodetect
/dev/sda4       35776760 976768064 940991305 448.7G fd Linux raid autodetect


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0f378d00

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sdb1  *        2048    112454    110407  53.9M fd Linux raid autodetect
/dev/sdb2         112456   2216969   2104514     1G fd Linux raid autodetect
/dev/sdb3        2216976  35776754  33559779    16G fd Linux raid autodetect
/dev/sdb4       35776760 976768064 940991305 448.7G fd Linux raid autodetect


>> Inhalt der lilo.conf
> lba32
> disk = /dev/hdb
>   bios = 0x80
> boot = /dev/hdb
> read-only
> prompt
> timeout = 50
> vga = normal
> image = /boot/kernel
> root = /dev/md3 ##das (md3)habe ich nach dem reboot geändert
> label = eis
> initrd = /boot/initrd.gz
> append = "raid=noautodetect"

Wenn das Raid sauber steht, müsste die lilo.conf so aussehen:

lba32
disk = /dev/hda
  bios = 0x80
boot = /dev/md1
raid-extra-boot = /dev/hda,/dev/hdb
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 net.ifnames=0"

Und lilo aufzurufen nicht vergessen.

>> Inhalt der fstab
>> 
> /dev/hdb3 / ext4 defaults,errors=remount-ro 0 1
> /dev/hdb1 /boot ext4 defaults,errors=remount-ro 0 1
> /dev/hdb2 none swap sw 0 0
> /dev/hdb4 /data ext4 defaults 0 2

Wenn das RAID aktiv werden soll, muss das auch anders aussehen:

/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

-- 
Gruss Marcus


Mehr Informationen über die Mailingliste Eisfair