tech:boot_ko_-_dracut_-_lvm

Boot KO - Dracut - LVM

If the lvm lvs doesn't show any vol group then run as,

# List volume groups
lvm lvs
 
# Activate the volume groups
lvm vgchange -ay
 
# Continue to boot
exit
 
# If this also does not work then run
mv /etc/lvm/lvm.conf /tmp/
cat /proc/partitions
cat /proc/scsi/scsi
cat /proc/cmdline
ls /sys/module/

Pb mode single KO, fichier /dev/mapper manquant

Erratum A la place de passer init=/bin/bash au kernel il faut lui passer 1 ou single

Un défaut empêche le boot en mode single nécessaire pour certaines opérations de maintenance En dehors du LV racine et la LV du swap aucun LV n’est monté. Les block devices sont absents dans /dev/

Voici comment y remédier

# lvs
  LV           VG      Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  temlv        toolsvg -wi-------   2.00g
  toolsadminlv toolsvg -wi-------   1.00g
  homelv       vg00    -wi------- 512.00m
  optlv        vg00    -wi------- 128.00m
  rootlv       vg00    -wi-ao----   2.00g
  swaplv       vg00    -wi-ao----   2.00g
  tmplv        vg00    -wi-------   1.00g
  usrlv        vg00    -wi-------   3.00g
  varlv        vg00    -wi-------   3.00g

Pour activer tous les LV

vgchange -a y

Nous constatons des absents :

# ls -1 /dev/mapper/
control
vg00-rootlv
vg00-swaplv

Pour monter /usr (Est-ce nécessaire ?)

mknod /dev/mapper/vg00-usrlv block 253 6
mount /dev/mapper/vg00-usrlv /usr

Pour générer de nouveau l’initramfs :

dracut -f -v

Puis

touch /.autorelabel
/sbin/reboot -f
tech/boot_ko_-_dracut_-_lvm.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki