TH problem z softraidem (Raid1)
darek w pekdar.net
darek w pekdar.net
Pią, 27 Lis 2009, 14:18:04 CET
Witam,
Problem z uruchomienie softraid (mdadm) RAID1. Mam 2 identyczne dyski z
partycjami:
[root w rescue /]# fdisk -l /dev/sda
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7a346114
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12 96358+ fd Linux raid
autodetect
/dev/sda2 13 74 498015 82 Linux swap /
Solaris
/dev/sda3 75 1047 7815622+ fd Linux raid
autodetect
/dev/sda4 1048 60801 479974005 5 Extended
/dev/sda5 1048 2020 7815591 fd Linux raid
autodetect
/dev/sda6 2021 60801 472158351 fd Linux raid
autodetect
[root w rescue /]# fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2812da06
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 12 96358+ fd Linux raid
autodetect
/dev/sdb2 13 74 498015 82 Linux swap /
Solaris
/dev/sdb3 75 1047 7815622+ fd Linux raid
autodetect
/dev/sdb4 1048 60801 479974005 5 Extended
/dev/sdb5 1048 2020 7815591 fd Linux raid
autodetect
/dev/sdb6 2021 60801 472158351 fd Linux raid
autodetect
[root w rescue /]# cat /proc/partitions
major minor #blocks name
7 0 60824 loop0
8 0 488386584 sda
8 1 96358 sda1
8 2 498015 sda2
8 3 7815622 sda3
8 4 1 sda4
8 5 7815591 sda5
8 6 472158351 sda6
8 16 488386584 sdb
8 17 96358 sdb1
8 18 498015 sdb2
8 19 7815622 sdb3
8 20 1 sdb4
8 21 7815591 sdb5
8 22 472158351 sdb6
9 0 96256 md0
9 1 7815552 md1
9 2 7815488 md2
9 3 472158272 md3
[root w rescue /]# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda6[0] sdb6[1]
472158272 blocks [2/2] [UU]
md2 : active raid1 sda5[0] sdb5[1]
7815488 blocks [2/2] [UU]
md1 : active raid1 sda3[0] sdb3[1]
7815552 blocks [2/2] [UU]
md0 : active raid1 sda1[0] sdb1[1]
96256 blocks [2/2] [UU]
unused devices: <none>
Utworzyłem i zsynchronizowałem macierze.
Wygenerowałem nowe initrd:
[root w rescue /boot]# geninitrd -v -f /boot/initrd-2.6.31.6-2.gz 2.6.31.6-2
geninitrd: # $Revision: 10520 $ $Date: 2009-08-31 15:13:31 +0200 (pon) $
geninitrd: Using _lib: lib
geninitrd: Using initrd_dir: /usr/lib/initrd
geninitrd: find_tool: found /usr/lib/initrd/initrd-busybox
geninitrd: find_tool: did not found any of: /usr/lib/initrd/cryptsetup
/sbin/cryptsetup-initrd
geninitrd: find_tool: did not found any of: /usr/lib/initrd/dmraid
/sbin/dmraid-initrd
geninitrd: find_tool: found /usr/lib/initrd/lvm
geninitrd: find_tool: found /usr/lib/initrd/mdassemble
geninitrd: find_tool: did not found any of: /usr/lib/initrd/blkid
/sbin/initrd-blkid
geninitrd: find_tool: found /usr/lib/initrd/udevd
geninitrd: find_tool: found /usr/lib/initrd/udevadm
geninitrd: find_tool: did not found any of: /usr/lib/initrd/resume
/usr/lib/suspend/resume /usr/sbin/resume
geninitrd: find_tool: did not found any of: /usr/sbin/splash_geninitramfs
/usr/bin/splash_geninitramfs
geninitrd: find_tool: did not found any of: /usr/sbin/splash_geninitramfs
/usr/bin/splash_geninitramfs
geninitrd: find_tool: did not found any of: /bin/splash.bin
geninitrd: find_tool: did not found any of: /usr/lib/initrd/v86d
/sbin/v86d
geninitrd: Using modprobe -c to get modules config
geninitrd: Using /dev/md1 as device for rootfs
geninitrd: Finding modules for device path /dev/md/1
geninitrd: Finding RAID details using mdadm for rootdev=/dev/md/1
geninitrd: Finding modules for device path /dev/sda3
geninitrd: Finding SCSI modules using scsi_hostadapter
geninitrd: Finding modules for device path /dev/sdb3
geninitrd: Finding SCSI modules using scsi_hostadapter
geninitrd: Building initrd...
geninitrd: + cp /usr/lib/initrd/initrd-busybox
/tmp/initrd.1xKwzl/bin/initrd-busybox
geninitrd: Loading module [md-mod]
geninitrd: Loading module [raid1]
geninitrd: Loading module [scsi_mod]
geninitrd: Loading module [crc-t10dif]
geninitrd: Loading module [sd_mod]
geninitrd: Loading module [scsi_wait_scan]
geninitrd: Loading module [mbcache]
geninitrd: Loading module [jbd]
geninitrd: Loading module [ext3]
geninitrd: Loading module [libata]
geninitrd: Loading module [sata_sil]
geninitrd: Loading module [ide-core]
geninitrd: Loading module [piix]
geninitrd: Loading module [ata_piix]
geninitrd: Loading module [exportfs]
geninitrd: Loading module [xfs]
geninitrd: Setting up mdadm...
geninitrd: + cp /usr/lib/initrd/mdassemble
/tmp/initrd.1xKwzl/bin/mdassemble
geninitrd: echo Setting up array (/dev/md/1 = /dev/sda3 /dev/sdb3)
geninitrd: + cp /dev/sda3 /tmp/initrd.1xKwzl/dev/sda3
geninitrd: + cp /dev/sdb3 /tmp/initrd.1xKwzl/dev/sdb3
geninitrd: + cp /dev/md/1 /tmp/initrd.1xKwzl/dev/md/1
geninitrd: + cp /dev/sda1 /tmp/initrd.1xKwzl/dev/sda1
geninitrd: + cp /dev/sdb1 /tmp/initrd.1xKwzl/dev/sdb1
geninitrd: + cp /dev/sda5 /tmp/initrd.1xKwzl/dev/sda5
geninitrd: + cp /dev/sdb5 /tmp/initrd.1xKwzl/dev/sdb5
geninitrd: + cp /dev/sda6 /tmp/initrd.1xKwzl/dev/sda6
geninitrd: + cp /dev/sdb6 /tmp/initrd.1xKwzl/dev/sdb6
geninitrd: Adding rootfs finding based on kernel cmdline root= option
support.
geninitrd: + cp /dev/md1 /tmp/initrd.1xKwzl/dev/md1
geninitrd: Creating initramfs image /tmp/initrd.img-MkfXf5
geninitrd: image size: 4096 KiB (/tmp/initrd.1xKwzl)
geninitrd: finding compressor: xz lzma bzip2 gzip (via yes)
geninitrd: Compressing /boot/initrd-2.6.31.6-2.gz with lzma
xz: Adjusted LZMA1 dictionary size from 64 MiB to 35 MiB to not exceed the
memory usage limit of 404 MiB
Zawartość /etc/mdadm.conf uzupełniona o wpisy dla urzadzeń (DEVICE...)
oraz mdadm --detail-scan >> /etc/mdadm.conf
Lilo:
[root w rescue /boot]# lilo
Warning: Unable to determine video adapter in use in the present system.
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.
2 warnings were issued.
[root w rescue /boot]#
Po restarcie systemu mam komunikat: md1 unknown partition table,
System nie wstaje :(
Walczę z tym od rana i poległem. Robię sobie przerwę pisząc tego maila do
Was z nadzieją że może ktoś wskaże mi co robię źle ?
Proszę o pomoc bo dostaję od tego białej gorączki.
--
Pozdrawiam
Darek
Więcej informacji o liście dyskusyjnej pld-users-pl