LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-01-2006, 12:58 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
LVM snapshots that run out of space, results?


I was just wondering, what happens when an LVM snapshot runs out of space? Documentation clearly warns against letting this happen, and I've never even come close, but what would the end result be? Do you just end up with a "filesystem full" scenerio? Can you recover the data that was modified up until the time the snapshot filled? Do you risk filesystem corruption?

I run automated backups in the middle of the night that create snapshots, run backups, then remove the snapshots. I've always feared the "lvremove --force ..." might somehow fail and leave a snapshot active. For now I just make really big snapshots (bigger than the filesystem itself), since I have the disk space to allow this.

Another question for you LVM users - do you snapshot before backing up, or just backup a live filesystem? Generally I use rsync or tar on snapshots. If I want to do a dd I boot Knoppix first. Has anybody tried unionfs for snapshotting non-LVM filesystems? Am I the only one so obsessed about not backing up from a live filesystem???!!!
 
Old 03-02-2006, 07:24 AM   #2
david.dales
Member
 
Registered: Aug 2005
Location: Hamburg, Germany
Posts: 39

Rep: Reputation: 15
Backing up a live fileystem is Ok. Naturally you won't get open files and such but that's normal. All the same, you won't necessarily get everything with a snapshot either but the chances are better that you will.

When a snapshot runs out of space, it just fills the disks. Not really that big a deal except that your backup will not work right and it could knock the system offline making it only available by console.

Naturally, you can only recover data, if necessary, from your last good backup. Also, I've not personally seen any filesystem corruption when the system does fill up. This has happened to me on occasion. You just kill your snapshot process, whack the full partitions and start over.

If you have the time available that the whole process requires, take a snapshot just before you start your backup so that you have the most current data. In my case this is not always possible because the backup takes longer than 24 hours sometimes and the next cron starts. This causes havoc but only temporarily.

Hope that helps.
 
Old 03-02-2006, 02:26 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Original Poster
Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Thanks for the reply. What I understand you saying is that if your snapshot fills, it's trashed, you delete it, and you then end up with the underlying filesystem reverted back to the point in time when the snapshot was created? While it's never desireable to lose data, this scenerio is what I'd expect to happen, and it's not the end of the world.

If the underlying filesystem gets trashed along with the snapshot when the snapshot fills then that would be a serious problem. This is what I hope WOULD NOT happen! Lose a little data ... OK given the circumstances, trash a filesystem ... not acceptable under any circumstance!
 
  


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
Disk space reporting inconsistencies, lvm/df rarr Linux - Software 2 01-18-2006 11:26 AM
my harddisk is run out space ,what should i do . ztdep Linux - Software 7 08-05-2005 03:16 AM
Run out of space at root devinWhalen Mandriva 2 06-15-2004 11:23 AM
I've run out of space and don't know what to do. BongFish Linux - General 13 10-21-2003 11:40 AM
run out of space, how to configure new disk u492698 Linux - Newbie 3 10-13-2003 07:04 PM

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

All times are GMT -5. The time now is 12:49 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