[linux-lvm] Understand the snapshot process
David Johnston
david at littlebald.com
Fri Jan 2 10:40:02 UTC 2004
On Fri, 2004-01-02 at 02:15, Jean Marie Ariès wrote:
> Great !
>
> Your explanation is perfect :o)
>
> So, I understand better the use of a snapshot.
>
> The /data contains files sharing with Samba. So, I think I can do one
> snapshot per day at midnight, and remove it immediatly. If I have to restore
> data for the snapshot, its's alway possible to mount the /dev/OVG/snap_admin
> ?
Jean Marie,
I'm not sure I understand what you accomplish this way. Do you mean to
say that you would remove yesterday's snapshot and create a new one at
midnight each night? This protects you from accidents ("rm -f /data")
but not from someone who needs last Friday's version of a file.
If you need the data in the snapshot, you need to put it somewhere safe.
To summarize:
1. Unmount /data
2. Make the snapshot
3. Remount /data
4. Mount the snapshot
5. Back up the snapshot (copy the data to tape, cd, whatever)
6. Unmount the snapshot
7. Remove the snapshot
-David
--
David Johnston <david at littlebald.com>
Little Bald Consulting, LLC
More information about the linux-lvm
mailing list