[CentOS] Boot fails with lvm snapshot

Thu Aug 20 07:22:57 UTC 2020
Patrick Bégou <Patrick.Begou at legi.grenoble-inp.fr>


I check this morning, dm-snapshot.ko was yet included in initrd as show
by lsinitrd.

$ lsinitrd /boot/initramfs-3.10.0-1127.18.2.el7.x86_64.img | grep
-rw-r--r--   1 root     root        20372 Jul 26 17:38

I've rebuilt the image this morning (dracut -fv) with the snapshot "on"
and I'll try a reboot next week (I work remotely these next days).

An important thing is that during the kernel update (and initrd build
for the new kernel), the snapshot was also available.

  LV       VG      Attr       LSize   Pool Origin   Data%  Meta%  Move
Log Cpy%Sync Convert
  data1lv1 data1vg owi-aos--- 
  snapdata data1vg swi-aos---  <2,93t      data1lv1
  homevol  osvg    -wi-ao----  
  optvol   osvg    -wi-ao----
  rootvol  osvg    -wi-ao----
  swapvol  osvg    -wi-ao----  
  tmpvol   osvg    -wi-ao---- 
  varvol   osvg    -wi-ao----  <9,77g  


Le 19/08/2020 à 18:18, Patrick Bégou a écrit :
> Hi Gordon,
> my dracut package is the latest available for Centos7 (this occur just
> after my "yum update" and reboot). It is dracut-033-568.el7.x86_64 in
> CentOS Linux release 7.8.2003 (Core)
> I'm going to rebuild my initrd as suggested with the snapshot setup.
> Thanks for the links.
> Patrick
> Le 19/08/2020 à 17:31, Gordon Messmer a écrit :
>> On 8/19/20 1:02 AM, Patrick Bégou wrote:
>>> However, if this snapshot exists, reboot of the server
>>> freeze at boot time and I must manually remove this snapshot. Why ?
>> It's a bug.  Update dracut.
>> https://bugzilla.redhat.com/show_bug.cgi?id=1287940
>> https://bugzilla.redhat.com/show_bug.cgi?id=1546577
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> https://lists.centos.org/mailman/listinfo/centos
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos