LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2006, 02:37 AM   #1
sjtushi
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
LVM Snapshot question


I don't know what happen when I have made a snapshot of a filesystem. What is in the snapshot LV? When I remove some files from my filesystem which has been taken a snapshot, these files still can be gotten from my snapshot LV. Are these files removed to the snapshot LV?
What are saved in the snapshot logic volume?


Thanks!
 
Old 03-12-2006, 01:26 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Whenever a file is modified in a logical volume that has a snapshot running, a copy of the original, unmodified file is retained in the snapshot.

The snapshot allows you to “freeze” the filesystem at an arbitrary point in time while allowing the original logical volume to remain in use.

Although the word “snapshot” seems to infer that it is a full duplicate of the original logical volume, it is not. The snapshot only contains the originals of files that have changed since it was created.

The snapshot is especially useful when backing up a filesystem that is actively being used. When a logical volume snapshot is mounted and its contents copied to tape, to another drive, etc., what you get is an exact duplicate of the entire original logical volume at the moment the snapshot was created.
 
Old 03-12-2006, 02:20 AM   #3
sjtushi
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your message!

I have another question : A file is divided into many blocks and storaged in the filesystem.When a file has been changed, is the entire file is moved to the snapshot LV? or only the original blocks which are changed in the filesystem are moved to the snapshot LV?
 
Old 03-12-2006, 09:41 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Just the blocks that have changed are copied (or at least that’s what the documentation says).

See: http://www.ibiblio.org/pub/Linux/doc...#snapshotintro
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snapshot while installing Suse, question raxxal SUSE / openSUSE 1 02-07-2006 02:31 AM
LVM snapshot creation error haertig Linux - Software 1 01-30-2006 09:14 PM
Hardware Raid Setup Question - LVM? funbags Linux - Hardware 0 11-13-2005 11:39 AM
lvm question babag Mandriva 4 09-11-2005 02:13 AM
snapshot cheeyee Linux - Software 0 10-01-2002 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration