LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2009, 02:29 PM   #1
MinskyBA
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
solid explanation of snapshot


I've been using linux for a few years, but I still feel very much like a newbie. I've searched google/linux, forums, and picked some brains here at work, but I just can't get a solid explanation.

Can someone explain exactly what snapshot is for, what it does, how it works, and what happens when it breaks?

Here at work I'm told that whenever someone deletes a file from the NAS it goes to the snapshot, like the recycling bin in windows. If the snapshot fills, then it'll start eating space from the rest of the drive, and it could even break the machine. 4 times a day our snapshot cycles to a new one, but each snapshot is nearly the same - why are files 'backed up' or 'deleted to' the snapshot in multiple locations?
My research on-line tells me it's more of a backup [ghost] image, but that only raises further questions.

I can't make sense of the pieces and/or fit them together!
 
Old 06-02-2009, 02:48 PM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by MinskyBA View Post
Can someone explain exactly what snapshot is for, what it does, how it works, and what happens when it breaks?
A snapshot is like a snapshot, hence the name. That is, it is a record of what is in the filesystem at one point in time.

Now, the implications of this depend somewhat on the technology. Conventionally, you would think that if you took 5 snapshots (over a period of time) of a 100G filesystem (100G +/- a small amount for changes) that would need another 500G of storage space and would cause a lot of traffic as that data gets copied around.

However, if you use the CoW mechanism (copy on write) to provide the snapshot you don't save extra copies of the data, you have a base data set and (effectively) a set of deltas, and you can still reconstruct the data set at any of the snapshot instants. And, perhaps as important, because you aren't physically copying data around, you aren't causing the extra traffic.

Filesystems like ZFS and the forthcoming BTRFS use CoW and are thus able to do snapshotting particularly efficiently. My guess is that you probably don't have one of those, and are probably doing snapshotting the 'brute force and ignorance' way.
 
  


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
A solid foundation HalifaxJ Linux - Newbie 2 04-14-2009 12:15 AM
Which is more rock solid? phantom_cyph Linux - Distributions 6 03-01-2007 09:24 PM
Solid-State HDD? player_2 Linux - Hardware 12 04-29-2006 02:16 PM
PC freezing up Solid sudhashen Linux - General 2 11-24-2003 08:37 AM
Solid newb kibitzer99 Linux - Newbie 3 09-24-2002 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:46 AM.

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