Outils pour utilisateurs

Outils du site


tech:boot_ko_-_dracut_-_lvm

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:boot_ko_-_dracut_-_lvm [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:boot_ko_-_dracut_-_lvm [2026/05/30 21:28] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Boot LVM}}
 +
 +# Boot KO - Dracut - LVM
 +
 +
 +If the lvm lvs doesn't show any vol group then run as,
 +~~~bash
 +# 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
 +~~~bash
 +vgchange -a y
 +~~~
 +
 +Nous constatons des absents :
 +~~~
 +# ls -1 /dev/mapper/
 +control
 +vg00-rootlv
 +vg00-swaplv
 +~~~
 +
 +Pour monter /usr (Est-ce nécessaire ?)
 +~~~bash
 +mknod /dev/mapper/vg00-usrlv block 253 6
 +mount /dev/mapper/vg00-usrlv /usr
 +~~~
 +
 +Pour générer de nouveau l’initramfs :
 +~~~bash
 +dracut -f -v
 +~~~
 +
 +Puis 
 +~~~bash
 +touch /.autorelabel
 +/sbin/reboot -f
 +~~~
 +
 +
 +
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki