[CentOS] lvm snapshot

Tru Huynh tru at centos.org
Wed Dec 2 20:00:48 UTC 2015


On Wed, Dec 02, 2015 at 08:53:39PM +0100, Axel Glienke wrote:
> Creating snapshot:
> 
> [root at 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 at lvmtest ~]# lvs
>   LV        VG     Attr       LSize Pool Origin Data%  Meta%  Move
> Log Cpy%Sync Convert
>   root      centos owi-aos--- 2,93g
>   root_snap centos swi-a-s--- 2,94g      root   0,00
>   swap      centos -wi-ao---- 1,00g
> 
> --- reboot ---
> 
> dracut shell (missing /dev/centos/root)
> 
> 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

shouldn't you have a new grub entry with:
root=/dev/mapper/root_snap rd.lvm.lv=centos/root_snap 

Tru

-- 
Tru Huynh 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20151202/844808f0/attachment.sig>


More information about the CentOS mailing list