Strona 2 z 2
: 10 stycznia 2013, 13:20
autor: markg
Jest to UUID urządzenia md0, podany przez polecenie blkid. Dlaczego zatem UUID tego samego urządzenia w mdadm.conf jest inny?
Kod: Zaznacz cały
root@PartedMagic:~# blkid
/dev/md0: UUID="ded436d7-1a41-4c68-8abf-68315e796f9b" TYPE="ext4"
/dev/md1: UUID="27a7c154-4897-4e17-bbd9-f4d74cf6a87a" TYPE="swap"
/dev/md2: UUID="669a036e-4504-4b6b-a0c4-b74eb9643a0d" TYPE="ext4"
/dev/sdb1: UUID="fc4df3ec-f6f5-b039-081a-383fe7497a5d" UUID_SUB="b7118872-5727-2829-9582-5f7e540bca3a" LABEL="server:0" TYPE="linux_raid_member"
/dev/sdb2: UUID="9d9aafb8-8655-f893-8bc6-dd63ef318f8c" UUID_SUB="510f666e-f341-200e-2abe-fbf254664f5f" LABEL="server:1" TYPE="linux_raid_member"
/dev/sdb3: UUID="a1d276db-f580-f659-5f38-1e62c4827508" UUID_SUB="41128b64-0e5a-bb8c-d121-7c3215538714" LABEL="server:2" TYPE="linux_raid_member"
/dev/sr0: LABEL="Parted Magic" TYPE="iso9660"
/dev/sda1: UUID="fc4df3ec-f6f5-b039-081a-383fe7497a5d" UUID_SUB="dac21cf9-8f95-7879-e171-f712d65e4382" LABEL="server:0" TYPE="linux_raid_member"
/dev/sda2: UUID="9d9aafb8-8655-f893-8bc6-dd63ef318f8c" UUID_SUB="4d43bc3a-a086-0886-b82d-c54da1173d6c" LABEL="server:1" TYPE="linux_raid_member"
/dev/sda3: UUID="a1d276db-f580-f659-5f38-1e62c4827508" UUID_SUB="e107272e-102d-4a48-71f6-fcd257a26b0b" LABEL="server:2" TYPE="linux_raid_member"
/dev/sdc1: LABEL="PEN" UUID="3E2EB44E2EB3FD49" TYPE="ntfs"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
Edycja:
Po zamianie
Kod: Zaznacz cały
search --no-floppy --fs-uuid --set ded436d7-1a41-4c68-8abf-68315e796f9b
na:
Kod: Zaznacz cały
search --no-floppy --fs-uuid --set=root ded436d7-1a41-4c68-8abf-68315e796f9b
Nadal ten sam komunikat, system nie startuje.
: 10 stycznia 2013, 13:25
autor: fnmirk
Zamiast numeru UUID można podać ścieżki do urządzeń.
: 10 stycznia 2013, 13:39
autor: markg
Po zamianie UUID na ścieżki w grub.cfg nadal bez zmian:
Kod: Zaznacz cały
Loading, please wait...
Gave up waiting for root device. Common problems:
-Boot args (cat /proc/cmdline)
-Check rootdelay= (did system wait long enough?)
-Check root= (did the system wait for the right device?)
-Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/md0 does not exist. Dropping to a shell!
Edycja:
Czy powyższy błąd może mieć coś wspólnego z listą modułów w pliku /etc/initramfs-tools/module
s?
Kod: Zaznacz cały
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
# Syntax: module_name [args ...]
# You must run update-initramfs(8) to effect this change.
# Examples:
# raid1
# sd_mod
Usunąłem znak "#" z dwóch ostatnich linii, ale nie wiem jak wykonać polecenie:
na systemie, który nie chce się uruchomić.
: 10 stycznia 2013, 20:13
autor: fnmirk
: 11 stycznia 2013, 08:21
autor: markg
Mowa o programowym RAID1.
Kod: Zaznacz cały
root@PartedMagic:~# lspci -k
00:00.0 Host bridge: Intel Corporation 82875P/E7210 Memory Controller Hub (rev 02)
Subsystem: Intel Corporation 82875P/E7210 Memory Controller Hub
Kernel driver in use: agpgart-intel
00:01.0 PCI bridge: Intel Corporation 82875P Processor to AGP Controller (rev 02)
00:06.0 System peripheral: Intel Corporation 82875P/E7210 Processor to I/O Memory Interface (rev 02)
00:1d.0 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: ata_piix
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: i801_smbus
02:06.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Rage XL (rev 27)
Subsystem: Intel Corporation Device 3428
02:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 01)
Subsystem: Intel Corporation Device 3428
Kernel driver in use: e100
Kod: Zaznacz cały
root@PartedMagic:~# lspci -n
00:00.0 0600: 8086:2578 (rev 02)
00:01.0 0604: 8086:2579 (rev 02)
00:06.0 0880: 8086:257e (rev 02)
00:1d.0 0c03: 8086:24d2 (rev 02)
00:1d.1 0c03: 8086:24d4 (rev 02)
00:1d.2 0c03: 8086:24d7 (rev 02)
00:1d.3 0c03: 8086:24de (rev 02)
00:1d.7 0c03: 8086:24dd (rev 02)
00:1e.0 0604: 8086:244e (rev c2)
00:1f.0 0601: 8086:24d0 (rev 02)
00:1f.1 0101: 8086:24db (rev 02)
00:1f.2 0101: 8086:24d1 (rev 02)
00:1f.3 0c05: 8086:24d3 (rev 02)
02:06.0 0300: 1002:4752 (rev 27)
02:08.0 0200: 8086:1050 (rev 01)
: 11 stycznia 2013, 19:59
autor: fnmirk
" pisze:Mowa o programowym RAID1.
To musisz się za to zabrać trochę inaczej.
Przejrzyj sobie:
http://pl.wikipedia.org/wiki/RAID
Przedstaw z poziomu livecd wynik polecenia:
: 14 stycznia 2013, 10:12
autor: markg
Kod: Zaznacz cały
fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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
Disk identifier: 0x0001b6f0
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 19531775 9764864 fd Linux raid autodetect
/dev/sda2 19531776 20508671 488448 fd Linux raid autodetect
/dev/sda3 20508672 234440703 106966016 fd Linux raid autodetect
Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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
Disk identifier: 0x000528d0
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 19531775 9764864 fd Linux raid autodetect
/dev/sdb2 19531776 20508671 488448 fd Linux raid autodetect
/dev/sdb3 20508672 234440703 106966016 fd Linux raid autodetect
Disk /dev/md0: 9998 MB, 9998098432 bytes
2 heads, 4 sectors/track, 2440942 cylinders, total 19527536 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
Disk /dev/md1: 500 MB, 500158464 bytes
2 heads, 4 sectors/track, 122109 cylinders, total 976872 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
Disk /dev/md2: 109.5 GB, 109532078080 bytes
2 heads, 4 sectors/track, 26741230 cylinders, total 213929840 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
Urządzenia: md0, md1 i md2 zostały utworzone przez instalator Debiana.
: 15 stycznia 2013, 02:08
autor: ubik.pl
Uruchom z płyty Debiana tryb naprawczy (
ang. rescue) - tryb zaawansowany (
ang. advanced).
Złóż macierz i uruchom konsolę w:
Edytuj plik
i zamień linie:
Kod: Zaznacz cały
search --no-floppy --fs-uuid --set ded436d7-1a41-4c68-8abf-68315e796f9b
na
i linie:
Kod: Zaznacz cały
linux /boot/vmlinuz-2.6.32-5-486 root=UUID=ded436d7-1a41-4c68-8abf-68315e796f9b ro quiet
na:
Kod: Zaznacz cały
linux /boot/vmlinuz-2.6.32-5-486 root=/dev/md0 ro quiet
Zrestartuj system.
: 16 stycznia 2013, 07:08
autor: markg
Po edycji grub.cfg system nadal nie chce się uruchomić, Grub wyświetla poniższy komunikat:
Edycja: Najwidoczniej Grub2 w Debianie Squeeze 6.0.6 ma jakieś błędy. W jego miejsce zainstalowałem Wheezy i system wstaje bezproblemowo. Dziękuję za pomoc.