User Tools

Site Tools


docs:tips_n_tricks:lvm.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
docs:tips_n_tricks:lvm.html [11.09.2017 18:41 CEST] – [Get rid of detatched PVs] peterdocs:tips_n_tricks:lvm.html [31.07.2018 10:59 CEST] peter
Line 40: Line 40:
  
 Tracking this down on Mint 18.2 lead me to the file ''/usr/share/initramfs-tools/scripts/local-block/lvm2'', where ''lvm lvchange'' is only called for devices matching the pattern ''/dev/*/*'' Tracking this down on Mint 18.2 lead me to the file ''/usr/share/initramfs-tools/scripts/local-block/lvm2'', where ''lvm lvchange'' is only called for devices matching the pattern ''/dev/*/*''
 +
 +//enigmaticPhysicist// on //Ask Ubuntu// regarding [[https://askubuntu.com/questions/551446/cant-find-lvm-root-dropped-back-to-initramfs|Can't find LVM root dropped back to initramfs]] had a solution to this by adding an initrd script:
 +
 +<code bash /etc/initramfs-tools/scripts/local-top/forcelvm>
 +#!/bin/sh
 +PREREQ=""
 +prereqs()
 +{
 +   echo "$PREREQ"
 +}
 +case $1 in
 +prereqs)
 +   prereqs
 +   exit 0
 +   ;;
 +esac
 +. /scripts/functions
 +# Begin real processing below this line
 +
 +# This was necessary because ubuntu's LVM autodetect is completely broken. This
 +# is the only line they needed in their script. It makes no sense.
 +# How was this so hard for you to do, Ubuntu?!?!?
 +lvm vgchange -ay
 +</code>
  
 {{entry>booting}} {{entry>booting}}
docs/tips_n_tricks/lvm.html.txt · Last modified: 31.07.2018 11:12 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki