Hello after a lvm snapshot creation and a reboot are all logical volumes are missing, only swap is present. lvcreate -L 5000M -s -n centos_h1-root_snap /dev/mapper/centos_h1-root lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert centos_h1-root_snap centos_h1 swi-a-s--- 4,88g root 0,00 home centos_h1 -wi-ao---- 15,00g root centos_h1 owi-aos--- 20,00g swap centos_h1 -wi-ao---- 7,62g var centos_h1 -wi-ao---- 1000,00g after reboot no complete start, dracut console is running: dracut:# ls /dev/centos_h1/ swap dmsetup info shows swap only, too I can reproduce this on 2 different Servers and a Virtual Machine have same behavior. What do i wrong? Greetings Axel
On 12/02/2015 11:09 AM, Axel Glienke wrote:> after a lvm snapshot creation and a reboot are all logical volumes are > missing, only swap is present.What release is that? And what does /proc/cmdline contain when the system boots to the dracut shell?
sorry: centos7 "fresh" minimal with a actual update cat proc/cmdline: BOOT_IMAGE=/vmlinuz-3.10.0-229.20.1.el7.x86_64 root=/dev/mapper/centos_root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb quiet LANG=de_DE.UTF-8 systemd.debug ls /dev/mapper: centos-swap control Zitat von Gordon Messmer <gordon.messmer at gmail.com>:> On 12/02/2015 11:09 AM, Axel Glienke wrote: >> after a lvm snapshot creation and a reboot are all logical volumes >> are missing, only swap is present. > > What release is that? And what does /proc/cmdline contain when the > system boots to the dracut shell? > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosGr??e Axel
LVM is terribly flawed and most imprudent piece of any filesystem that you can have for snapshot'ing! The only snapshot-friendly filesystem or volume manager is ZFS. Whether create a single snapshot or few hundred thousand. It is instant and no data is lost. On Thu, Dec 3, 2015 at 12:09 AM, Axel Glienke <axel at glienke.cc> wrote:> > Hello > > after a lvm snapshot creation and a reboot are all logical volumes are > missing, only swap is present. > > > lvcreate -L 5000M -s -n centos_h1-root_snap /dev/mapper/centos_h1-root > > lvs > LV VG Attr LSize Pool Origin Data% > Meta% Move Log Cpy%Sync Convert > centos_h1-root_snap centos_h1 swi-a-s--- 4,88g root 0,00 > home centos_h1 -wi-ao---- 15,00g > root centos_h1 owi-aos--- 20,00g > swap centos_h1 -wi-ao---- 7,62g > var centos_h1 -wi-ao---- 1000,00g > > > after reboot no complete start, dracut console is running: > > dracut:# > ls /dev/centos_h1/ > swap > > dmsetup info shows swap only, too > > I can reproduce this on 2 different Servers and a Virtual Machine have > same behavior. > > What do i wrong? > > > > Greetings > > Axel > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
https://bugzilla.redhat.com/show_bug.cgi?id=1287940 I'm not sure what I saw that made me think the entire drivers/md tree was included. I deleted the first VM that I used to investigate the problem, so I can't look at the shell history to figure that one out. In any case, that's not what dracut does. I filed a bug suggesting that dm-snapshot should always be included for systems on LVM.