[Eisfair] E1 LILO Duplicated Volume ID

Thomas Bork tom at eisfair.org
Fr Jun 20 21:50:28 CEST 2014


Am 20.06.2014 21:28, schrieb ich:

> volume ids beider Platten genullt und lilo ausgeführt. Ausgabe von 'lilo
> -T vol-ID' nicht verändert. Nach Reboot aber schon...

Mit dem 3.2er Installer System mit 2 Sata-Platten mit Raid 1 aufgesetzt:

sata # sgdisk -p /dev/sda
Disk /dev/sda: 8388608 sectors, 4.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B15F79C7-05B6-4855-BF3F-00CB4FBF2E33
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8388574
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          362495   128.0 MiB   FD00  swap
    3          362496         8368094   3.8 GiB     FD00  root
sata # sgdisk -p /dev/sdb
Disk /dev/sdb: 8388608 sectors, 4.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): CD0EF521-0C2D-4534-B753-7C8602C5E511
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8388574
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          362495   128.0 MiB   FD00  swap
    3          362496         8368094   3.8 GiB     FD00  root
sata # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] 
[raid4] [multipath]
md3 : active raid1 sda3[0] sdb3[1]
       4000704 blocks super 1.2 [2/2] [UU]
       bitmap: 1/1 pages [4KB], 65536KB chunk

md2 : active raid1 sda2[0] sdb2[1]
       130944 blocks super 1.2 [2/2] [UU]
       bitmap: 0/1 pages [0KB], 65536KB chunk

md1 : active raid1 sda1[0] sdb1[1]
       49088 blocks [2/2] [UU]
       bitmap: 0/1 pages [0KB], 65536KB chunk

unused devices: <none>
sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     50247053
   0x81     009CB34D

Volume ID's are all unique.


sata #

Nullen der volume ids:

sata # lilo -z -M /dev/sda
/boot/boot.0800 exists - no /dev/sda backup copy made.
The Master Boot Record of  /dev/sda  has been updated.
sata # lilo -z -M /dev/sdb
/boot/boot.0810 exists - no /dev/sdb backup copy made.
The Master Boot Record of  /dev/sdb  has been updated.

Das ist hier nicht zu sehen:

sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     50247053
   0x81     009CB34D

Volume ID's are all unique.


sata #


Was würde lilo machen?:

sata # lilo -t -v2
LILO version 23.2 (test mode)
  (released 09-Apr-2011)
   * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
   * Copyright (C) 1999-2007 John Coffman  (until v22)
   * Copyright (C) 2009-2011 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software
distributed under the BSD License (3-clause). Details can be found in
the file COPYING, which is distributed with this software.
Compiled at 14:19:35 on Feb  3 2013
Running Linux kernel 3.2.54-eisfair-1-SMP on i686

pf_hard_disk_scan: ndevs=2
/boot/boot.0800 exists - no master disk volume ID record backup copy made.
/boot/boot.0810 exists - no master disk volume ID record backup copy made.
   0800  42AB77D6  /dev/sda
   0810  2B19766C  /dev/sdb
device codes (user assigned pf) = 1
device codes (user assigned) = 1
device codes (BIOS assigned) = 1
device codes (canonical) = 3
RAID info:  nr=2, raid=2, active=2, working=2, failed=0, spare=0
Using BIOS device code 0x80 for RAID boot blocks
raid_setup returns offset = 00000000  ndisk = 2
  BIOS   VolumeID   Device
   80    42AB77D6    0800
   81    2B19766C    0810
raid flags: at bsect_open  0x02
Reading boot sector from /dev/md1
map_create:  boot=0901  map=0901
mode = 0x03,  columns = 80,  rows = 25,  page = 0
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 18 sectors (0x3600 dataend).
bios_boot = 0x80  bios_map = 0x80  map==boot = 1  map S/N: 00000000
BIOS data check was okay on the last boot

Boot image: /boot/kernel
Setup length is 26 sectors.
Mapped 4474 sectors.
Mapping RAM disk /boot/initrd.gz
RAM disk: 2887 sectors.
The initial RAM disk will be loaded in the high memory above 16M.
Added eis  +  *

  BIOS   VolumeID   Device
   80    42AB77D6    0800
   81    2B19766C    0810
do_md_install: MD_PARALLEL
   offset 00000000  /dev/sda
   offset 00000000  /dev/sdb
The map file has *NOT* been updated.
The boot record of  /dev/md1  has *NOT* been updated.
The boot record of  /dev/sda  has *NOT* been updated.
The boot record of  /dev/sdb  has *NOT* been updated.
sata #


Ausführen von lilo mit Debug (die was-wäre-wenn-volume-ids von oben sind 
nun aktuell andere - aber die Ausgangslage 00000000 wird gezeigt):

sata # lilo -v 3
LILO version 23.2 eisfair-1 (released 09-Apr-2011)
   * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
   * Copyright (C) 1999-2007 John Coffman  (until v22)
   * Copyright (C) 2009-2011 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software
distributed under the BSD License (3-clause). Details can be found in
the file COPYING, which is distributed with this software.
Compiled at 14:19:35 on Feb  3 2013
Running Linux kernel 3.2.54-eisfair-1-SMP on i686

device-mapper major = 253
pf_hard_disk_scan: ndevs=2
   0800  00000000  /dev/sda
   0810  00000000  /dev/sdb
Resolve invalid VolumeIDs
/boot/boot.0800 exists - no master disk volume ID record backup copy made.
/boot/boot.0810 exists - no master disk volume ID record backup copy made.
Resolve duplicate VolumeIDs
   0800  67C2919F  /dev/sda
   0810  1CCFEC22  /dev/sdb
device codes (user assigned pf) = 1
device codes (user assigned) = 1
device codes (BIOS assigned) = 1
Filling in '/dev/sdb' = 0x81
device codes (canonical) = 3
RAID info:  nr=2, raid=2, active=2, working=2, failed=0, spare=0
md: RAIDset device 0 = 0x0801
Device 0x0801: BIOS drive 0x80, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 2048 sectors.
Using Volume ID 67C2919F on bios 80
RAID scan: geo_get: returns geo->device = 0x80 for device 0801
disk->start = 2048              raid_offset = 0 (00000000)
Name: /dev/sda1  yields MBR: /dev/sda  (without primary partition check)
md: RAIDset device 1 = 0x0811
Device 0x0811: BIOS drive 0x81, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 2048 sectors.
Using Volume ID 1CCFEC22 on bios 81
RAID scan: geo_get: returns geo->device = 0x81 for device 0811
disk->start = 2048              raid_offset = 0 (00000000)
Name: /dev/sdb1  yields MBR: /dev/sdb  (without primary partition check)
Using BIOS device code 0x80 for RAID boot blocks
raid_setup returns offset = 00000000  ndisk = 2
  BIOS   VolumeID   Device
   80    67C2919F    0800
   81    1CCFEC22    0810
raid flags: at bsect_open  0x02
Reading boot sector from /dev/md1
Device 0x0801: BIOS drive 0x80, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 2048 sectors.
Device 0x0801: BIOS drive 0x80, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 2048 sectors.
map_create:  boot=0901  map=0901
mode = 0x03,  columns = 80,  rows = 25,  page = 0
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 18 sectors (0x3600 dataend).
bios_boot = 0x80  bios_map = 0x80  map==boot = 1  map S/N: 00000000
BIOS data check was okay on the last boot

Boot image: /boot/kernel
Device 0x0801: BIOS drive 0x80, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 2048 sectors.
Setup length is 26 sectors.
Mapped 4474 sectors.
Mapping RAM disk /boot/initrd.gz
Device 0x0801: BIOS drive 0x80, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 2048 sectors.
RAM disk: 2887 sectors.
The initial RAM disk will be loaded in the high memory above 16M.
Added eis  +  *
     <dev=0xf0,hd=0,cyl=116,sct=56>
     "ro root=903 raid=noautodetect"

  BIOS   VolumeID   Device
   80    67C2919F    0800
   81    1CCFEC22    0810
do_md_install: MD_PARALLEL
   offset 00000000  /dev/sda
   offset 00000000  /dev/sdb
/boot/boot.0901 exists - no boot sector backup copy made.
Map file size: 51200 bytes.
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID offset entry 0  0x00000000
RAID device mask 0x0003
Failsafe check:  boot_dev_nr = 0x0901 0x0000
map==boot = 1    map s/n = 00000000
The boot record of  /dev/md1  has been updated.
Specified partition:  /dev/sda  raid offset = 00000000
Reading boot sector from /dev/sda
Device 0x0800: BIOS drive 0x80, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 0 sectors.
Using Volume ID 67C2919F on bios 80
Using s/n from device 0x80
/boot/boot.0800 exists - no boot sector backup copy made.
Failsafe check:  boot_dev_nr = 0x0800 0xfffffff0
map==boot = 0    map s/n = 67C2919F
The boot record of  /dev/sda  has been updated.
Specified partition:  /dev/sdb  raid offset = 00000000
Reading boot sector from /dev/sdb
Device 0x0810: BIOS drive 0x81, 255 heads, 522 cylinders,
                63 sectors. Partition offset: 0 sectors.
Using Volume ID 1CCFEC22 on bios 81
Warning: /dev/sdb is not on the first disk
Using s/n from device 0x81
/boot/boot.0810 exists - no boot sector backup copy made.
Failsafe check:  boot_dev_nr = 0x0810 0xfffffff0
map==boot = 0    map s/n = 1CCFEC22
The boot record of  /dev/sdb  has been updated.
One warning was issued.
sata #

Die nun aktuell verwendeten volume ids von oben
   80    67C2919F    0800
   81    1CCFEC22    0810
sind noch nicht zu sehen:

sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     50247053
   0x81     009CB34D

Volume ID's are all unique.


sata #

*Nach* dem Reboot:

sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     67C2919F
   0x81     1CCFEC22

Volume ID's are all unique.


sata #

-- 
der tom
[eisfair-team]


Mehr Informationen über die Mailingliste Eisfair