[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error: disk lvmid/... not found Entering rescue mode...
From: |
Jelle de Jong |
Subject: |
Re: error: disk lvmid/... not found Entering rescue mode... |
Date: |
Mon, 20 Jul 2015 16:14:41 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 |
On 20/07/15 13:57, Andrei Borzenkov wrote:
> On Mon, Jul 20, 2015 at 1:46 PM, Jelle de Jong
> <address@hidden> wrote:
>> On 20/07/15 12:06, Andrei Borzenkov wrote:
>>> Sorry, you really need to give step by step description what you do.
>>> Copy-paste of all commands after boot would probably be the best. I
>>> really do not understand your configuration.
>>
>> I use an USB stick with debian wheezy /dev/sda to boot an system and
>> login over ssh.
>>
>> Then I add two more USB sticks to the system /dev/sdb and /dev/sdc
>>
>
> So you have 2 USB sticks with mirror between them, right? How do you
> boot then? Using only one stick? Or both of them?
>
>> update-grub
>
> It does not tell me much, unfortunately, as I do not use Ubuntu. Could
> you re-run bootinfoscript with xz/lzma installed? Thank you.
I simplified the config a bit for better debugging. It is one USB stick now.
/dev/sda is the debian system that I boot from and chroot and debootstrap.
I do this process on the ML110G7, the resulting USB stick will boot on
Z600 system but not on the sytem that I created it on the ML110G7.
I tested the same config without using mdadm and the sytem booted up
just fine, so something goes wrong with mdadm grub and/or the machine.
http://paste.debian.net/284148/
These are my steps:
dd if=/dev/zero of=/dev/sdb bs=4M oflag=direct &
/sbin/parted --script /dev/sdb \
mklabel msdos \
mkpart primary 8M 100% \
toggle 1 boot \
print
apt-get install mdadm --no-install-recommends
mdadm --create /dev/md0 --level=1 --raid-devices=2 --name=md0
--metadata=default /dev/sdb1 missing
apt-get install lvm2 --no-install-recommends
pvcreate /dev/md0
vgcreate lvm0-vol /dev/md0
lvcreate --name root --size 7G lvm0-vol
lvcreate --name swap --extents 100%FREE lvm0-vol
mkfs.ext4 -m 1 /dev/mapper/lvm0--vol-root
mkswap /dev/mapper/lvm0--vol-swap -f
apt-get install debootstrap --no-install-recommends
rmdir /mnt/debinst
mkdir /mnt/debinst
mount /dev/mapper/lvm0--vol-root /mnt/debinst
debootstrap --arch amd64 jessie /mnt/debinst/
http://ftp.uk.debian.org/debian
mount -t proc proc /mnt/debinst/proc/
mount -o bind /dev /mnt/debinst/dev/
mount -o bind /sys /mnt/debinst/sys/
mount -o bind /run /mnt/debinst/run/
mount -t devpts devpts /mnt/debinst/dev/pts
chroot /mnt/debinst /bin/bash
export LC_ALL=C
echo 'deb http://ftp.uk.debian.org/debian jessie main contrib non-free
# deb http://ftp.uk.debian.org/debian oldstable main contrib non-free
# deb http://ftp.uk.debian.org/debian testing main contrib non-free
# deb http://ftp.uk.debian.org/debian unstable main contrib non-free
# deb http://ftp.uk.debian.org/debian experimental main contrib non-free
deb http://security.debian.org/ jessie/updates main
# deb http://security.debian.org/ oldstable/updates main
# deb http://security.debian.org/ testing/updates main' | tee
/etc/apt/sources.list
cat /etc/apt/sources.list
echo 'Acquire::Pdiffs "false";' | tee --append
/etc/apt/apt.conf.d/02powercraft
echo 'APT::Install-Recommends "false";' | tee --append
/etc/apt/apt.conf.d/02powercraft
echo 'APT::Install-Suggests "false";' | tee --append
/etc/apt/apt.conf.d/02powercraft
echo 'APT::Default-Release "jessie";' | tee --append
/etc/apt/apt.conf.d/02powercraft
apt-get update
echo "do_initrd = yes" | tee /etc/kernel-img.conf
apt-get install -y vim less bzip2 pciutils bash-completion udev
openssh-server isc-dhcp-client e2fsprogs util-linux busybox
apt-get install firmware-linux-free linux-image-amd64
apt-get install lvm2
echo 'proc /proc proc defaults
0 0
/dev/lvm0-vol/root / ext4 defaults
0 1
/dev/lvm0-vol/swap none swap sw
0 0' | tee /etc/fstab
cat /etc/fstab
apt-get install mdadm
vim /etc/mdadm/mdadm.conf
ARRAY /dev/md0 metadata=1.2 UUID=432d4859:7ec18c37:348049dc:1b753300
ARRAY /dev/md0 metadata=1.2 UUID=432d4859:7ec18c37:348049dc:1b753300
apt-get install grub-pc #install grub on /dev/sdb
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="rootfstype=ext4 fsck.mode=force console=ttyS0,115200
rootdelay=6"
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no
--stop=1"
update-grub
wget --no-check-certificate
https://raw.githubusercontent.com/arvidjaar/bootinfoscript/master/bootinfoscript
apt-get install gawk lzma xz-utils
bash bootinfoscript
mv --verbose /sbin/start-stop-daemon.REAL /sbin/start-stop-daemon
rm /etc/udev/rules.d/70-persistent-net.rules
exit
umount /mnt/debinst/dev/pts
umount /mnt/debinst/{sys,run,dev,proc}
umount /mnt/debinst/
rmdir /mnt/debinst
vgchange --available n lvm0-vol
mdadm --stop -scan
poweroff
# remove /dev/sda and boot from the new created debootsrap
Attempting Boot From USB DriveKey (C:)
error: disk
`lvmid/088Bb8-dGCb-HsnT-zgE9-rTbg-g2eo-8hVLHZ/eCTNpV-NdMz-4OrA-0EZx-
03hf-gWww-jM6PII' not found.
Entering rescue mode...
grub rescue> ls
(hd0) (hd0,msdos1)
grub rescue> ls -l
error: disk
`lvmid/088Bb8-dGCb-HsnT-zgE9-rTbg-g2eo-8hVLHZ/eCTNpV-NdMz-4OrA-0EZx-
03hf-gWww-jM6PII' not found.
grub rescue>
Re: error: disk lvmid/... not found Entering rescue mode..., Jordan Uggla, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Andrei Borzenkov, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Jelle de Jong, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Andrei Borzenkov, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Jelle de Jong, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Andrei Borzenkov, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode...,
Jelle de Jong <=
- Re: error: disk lvmid/... not found Entering rescue mode..., Andrei Borzenkov, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Jelle de Jong, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Andrei Borzenkov, 2015/07/20
- Re: error: disk lvmid/... not found Entering rescue mode..., Jelle de Jong, 2015/07/23
- Re: error: disk lvmid/... not found Entering rescue mode..., Andrei Borzenkov, 2015/07/23
- Re: error: disk lvmid/... not found Entering rescue mode..., Jelle de Jong, 2015/07/23
- Re: error: disk lvmid/... not found Entering rescue mode..., Andrei Borzenkov, 2015/07/24