xfs
[Top] [All Lists]

Re: LVM snapshot and log record CRC mismatch

To: Gionatan Danti <g.danti@xxxxxxxxxx>
Subject: Re: LVM snapshot and log record CRC mismatch
From: Emmanuel Florac <eflorac@xxxxxxxxxxxxxx>
Date: Thu, 26 May 2016 12:23:15 +0200
Cc: Dave Chinner <david@xxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <57455645.5040608@xxxxxxxxxx>
Organization: Intellique
References: <ab81e19cd6fce41f9d63cdd3695c80f7@xxxxxxxxxx> <20160524221205.GM21200@dastard> <57455645.5040608@xxxxxxxxxx>
Le Wed, 25 May 2016 09:37:41 +0200
Gionatan Danti <g.danti@xxxxxxxxxx> Ãcrivait:

> The snapshot is accomplished using the following commands:
> 
> lvcreate -s hypervisor/KVM_Storage --name Backup_SNAP
> lvchange -ay -K hypervisor/Backup_SNAP
> mount -o nouuid /dev/hypervisor/Backup_SNAP /mnt/lvm/
> 

You need to use xfs_freeze to make the filesystem coherent before
snapshot:

xfs_freeze /dev/hypervisor/KVM_Storage
lvcreate -s hypervisor/KVM_Storage --name Backup_SNAP
xfs_freeze -u /dev/hypervisor/KVM_Storage
lvchange -ay -K hypervisor/Backup_SNAP

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |   <eflorac@xxxxxxxxxxxxxx>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>