RA: raid1 + root + lilo = grrr

Roman Kolasiewicz rkolasiewicz w excellent.com.pl
Czw, 26 Lut 2004, 12:44:30 CET


Witam,

Thursday, February 26, 2004, 11:42:10 AM, marcinek wrote:

> Gdzieś, kiedyś czytałem, żę /boot nie może być na RAIDzie...
> Dla gruba chyba też...
Hmm, dobrze ze moja maszyna o tym nie wie ;)

[root w xeon /root]# cat /etc/lilo.conf
boot = /dev/md1
raid-extra-boot=mbr-only
map = /boot/map
install = /boot/boot.b
image = /boot/vmlinuz
        initrd = /boot/initrd
        label = pld
        root = /dev/md0
        read-only

[root w xeon /root]# fdisk -l /dev/sda /dev/sdb

Disk /dev/sda: 36.7 GB, 36703918080 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start  End      Blocks   Id  System
/dev/sda1   *    1      1        8001   fd  Linux raid autodetect
/dev/sda2        2    131     1044225   82  Linux swap
/dev/sda3      132   4462    34788757+  fd  Linux raid autodetect

Disk /dev/sdb: 36.7 GB, 36703918080 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start  End      Blocks   Id  System
/dev/sdb1   *    1      1        8001   fd  Linux raid autodetect
/dev/sdb2        2    131     1044225   82  Linux swap
/dev/sdb3      132   4462    34788757+  fd  Linux raid autodetect

[root w xeon /root]# cat /etc/raidtab
raiddev /dev/md0
        raid-level              1
        persistent-superblock   1
        chunk-size              32
        nr-raid-disks           2
        device                  /dev/sda3
        raid-disk               0
        device                  /dev/sdb3
        raid-disk               1
raiddev /dev/md1
        raid-level              1
        persistent-superblock   1
        chunk-size              32
        nr-raid-disks           2
        device                  /dev/sda1
        raid-disk               0
        device                  /dev/sdb1
        raid-disk               1

[root w xeon /root]# cat /etc/fstab
/dev/md0        /       ext3    defaults        1       1
/dev/md1        /boot   ext2    defaults        1       2
/dev/sda2       swap    swap    defaults        0       0
/dev/sdb2       swap    swap    defaults        0       0

[root w xeon /root]# lilo
Warning: '/proc/partitions' does not match '/dev' directory structure.
    Name change: '/dev/scsi/host0/bus0/target0/lun0/disc' -> '/dev/sda'
    The kernel was compiled with DEVFS_FS, but 'devfs=mount' was omitted
        as a kernel command-line boot parameter; hence, the '/dev' directory
        structure does not reflect DEVFS_FS device names.
Added pld *
The Master boot record of  /dev/sda  has been updated.
Warning: /dev/sdb is not on the first disk
The Master boot record of  /dev/sdb  has been updated.

Dyski w macierzy hotswap, rok temu jak testowalem to wszystko
dzialalo - mozna bylo wyciagac ktorykolwiek dysk i wstawalo bez
problemow.

-- 
Best regards,
 Roman



Więcej informacji o liście dyskusyjnej pld-users-pl