[Top][All Lists]

[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.

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 \

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/

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 jessie main contrib non-free
# deb oldstable main contrib non-free
# deb testing main contrib non-free
# deb unstable main contrib non-free
# deb experimental main contrib non-free
deb jessie/updates main
# deb oldstable/updates main
# deb testing/updates main' | tee

cat /etc/apt/sources.list

echo 'Acquire::Pdiffs "false";' | tee --append
echo 'APT::Install-Recommends "false";' | tee --append
echo 'APT::Install-Suggests "false";' | tee --append
echo 'APT::Default-Release "jessie";' | tee --append

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="rootfstype=ext4 fsck.mode=force console=ttyS0,115200

GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no


wget --no-check-certificate
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

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

# remove /dev/sda and boot from the new created debootsrap

Attempting Boot From USB DriveKey (C:)
error: disk
03hf-gWww-jM6PII' not found.
Entering rescue mode...
grub rescue> ls
(hd0) (hd0,msdos1)
grub rescue> ls -l
error: disk
03hf-gWww-jM6PII' not found.
grub rescue>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]