Re: [CentOS] lvm snapshot

2015-12-02 Thread Gordon Messmer
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 drac

Re: [CentOS] lvm snapshot

2015-12-02 Thread Axel Glienke
a manually dracut -f --add-drivers "dm-snapshot" solve the problem Zitat von Gordon Messmer : On 12/02/2015 02:48 PM, Gordon Messmer wrote: I'll try to recreate the problem on a new VM, but that doesn't make much sense. Including the required module isn't dependent on creating the snapshot

Re: [CentOS] lvm snapshot

2015-12-02 Thread Gordon Messmer
On 12/02/2015 02:48 PM, Gordon Messmer wrote: I'll try to recreate the problem on a new VM, but that doesn't make much sense. Including the required module isn't dependent on creating the snapshot as far as I can tell. Crazy pants. I can reproduce the problem now. I don't know what the hel

Re: [CentOS] lvm snapshot

2015-12-02 Thread Micky
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

Re: [CentOS] lvm snapshot

2015-12-02 Thread Gordon Messmer
On 12/02/2015 02:02 PM, Axel Glienke wrote: ok, thank you very much Gordon. but you know what the difference? if i do 1. centos7 installation 2. yum upgrade 3. lvcreate -s ... 4. reboot then i got the error. I'll try to recreate the problem on a new VM, but that doesn't make much sense. I

Re: [CentOS] lvm snapshot

2015-12-02 Thread Axel Glienke
ok, thank you very much Gordon. but you know what the difference? if i do 1. centos7 installation 2. yum upgrade 3. lvcreate -s ... 4. reboot then i got the error. if i do your way 1. centos7 installtion 2. snapshot & reboot 3. yum upgrade 4. reboot then the system start. Zitat von Gordon

Re: [CentOS] lvm snapshot

2015-12-02 Thread Gordon Messmer
On 12/02/2015 12:05 PM, Axel Glienke wrote: in journalctl i found: modprobe: FATAL: Module dm-snapshot not found ... Can't process LV root_snap: snapshot target support missing from kernel I installed a very simple CentOS 7 system with an LVM root FS. Created a snapshot and rebooted, no probl

Re: [CentOS] lvm snapshot

2015-12-02 Thread Axel Glienke
Ok, kernel needs the module dm-snapshot for snapshot support, but the modules is storage on a snapshoted-lv ... you can't make a root_snapshot with centos? Zitat von Axel Glienke : in journalctl i found: modprobe: FATAL: Module dm-snapshot not found ... Can't process LV root_snap: snapshot

Re: [CentOS] lvm snapshot

2015-12-02 Thread Axel Glienke
in journalctl i found: modprobe: FATAL: Module dm-snapshot not found ... Can't process LV root_snap: snapshot target support missing from kernel Zitat von Tru Huynh : On Wed, Dec 02, 2015 at 08:53:39PM +0100, Axel Glienke wrote: Creating snapshot: [root@lvmtest ~]# lvcreate -L5G -s -n root_s

Re: [CentOS] lvm snapshot

2015-12-02 Thread Tru Huynh
On Wed, Dec 02, 2015 at 08:53:39PM +0100, Axel Glienke wrote: > Creating snapshot: > > [root@lvmtest ~]# lvcreate -L5G -s -n root_snap /dev/centos/root > Reducing COW size 5,00 GiB down to maximum usable size 2,94 GiB. > Logical volume "root_snap" created. > [root@lvmtest ~]# lvs > LV

Re: [CentOS] lvm snapshot

2015-12-02 Thread Axel Glienke
Creating snapshot: [root@lvmtest ~]# lvcreate -L5G -s -n root_snap /dev/centos/root Reducing COW size 5,00 GiB down to maximum usable size 2,94 GiB. Logical volume "root_snap" created. [root@lvmtest ~]# lvs LVVG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Conv

Re: [CentOS] lvm snapshot

2015-12-02 Thread Axel Glienke
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

Re: [CentOS] lvm snapshot

2015-12-02 Thread Gordon Messmer
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] lvm snapshot

2015-12-02 Thread Axel Glienke
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 VGAttr LSizePool Origin Data% Meta% Move Log Cpy%Sy

[CentOS] Lvm snapshot problem

2015-01-12 Thread Cristian Del Carlo
Hi list, i have an error when i do an lvm snapshot. The error is like this when i use the command "/sbin/lvcreate -L20G -s -n /dev/vgraid/vm" : *semid 5013504: semop failed for cookie 0xd4d23a8: incorrect semaphore state* * Failed to set a proper state for notification semaphore identified by