Tom*_*art 5 boot mdadm initramfs gpt
我有一个 Debian Jessie ( 3.16.7-ckt20-1+deb8u3
) 系统,在 2x 3TB 硬盘上带有 RAID1。Grub 无法安装到大于 2TB 的驱动器上的 MBR,因此我有一个带有 1MB bios 分区的 GPT:
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 1953128447 1953124352 931.3G Linux RAID
/dev/sda3 1953128448 5860532223 3907403776 1.8T Linux RAID
Run Code Online (Sandbox Code Playgroud)
重新启动后(内核升级deb8u2
-> deb8u3
)系统最终进入initramfs
救援:
Loading, please wait...
mdadm: No device listed in conf file were found.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-uuid/5887d2e0-bae1-4ce8-ac6f-168fb183d7b0 does not exist.
Dropping to a shell!
modprobe: module ehci-orion not found in modules.dep
BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
(initramfs)
Run Code Online (Sandbox Code Playgroud)
从控制台我可以检查 RAID 阵列是否正常:
cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda3[0] sdb3[1]
1953570816 blocks super 1.2 [2/2] [UU]
bitmap: 0/15 pages [0KB], 65536KB chunk
md1 : active raid1 sda2[0] sdb2[1]
976431104 blocks super 1.2 [2/2] [UU]
bitmap: 0/8 pages [0KB], 65536KB chunk
unused devices: <none>
Run Code Online (Sandbox Code Playgroud)
丢失的磁盘是根分区中md1
不存在的设备/dev/md/
。配置文件也/etc/mdadm/mdadm.conf
显示与以下内容相同的内容mdadm --examine --scan
:
$ mdadm --examine --scan
ARRAY /dev/md/1 metadata=1.2 UUID=c366b4e9:e33d2b69:3c738749:07b022c6 name=w02:1
ARRAY /dev/md/2 metadata=1.2 UUID=c32939b8:bc01f4ff:b85f00c6:b50aa29e name=w02:2
Run Code Online (Sandbox Code Playgroud)
使用mdadm --examine /dev/sda2
我已检查所有 RAID 分区是否处于干净状态 ( AA
)。还有什么我可以做的吗?
我可以尝试继续手动启动吗?怎么做?rootdelay=
下次重新启动时我将如何增加?(系统等待正确的设备,这不是第二个建议的问题)。
如果您只是exit
从救援 shell 中,系统将尝试继续引导。如果需要增加,rootdelay
可以将其添加到内核选项中/etc/grub/default
并运行update-grub
。
归档时间: |
|
查看次数: |
6868 次 |
最近记录: |