Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-10-2012, 08:26 AM   #1
Randall Slack
Registered: Feb 2005
Location: Rotterdam, The Netherlands
Distribution: Debian - Ubuntu
Posts: 219

Rep: Reputation: 30
undo lvm snapshot recovery

Hi all,

have a bit of a situation after a failed backup procedure using LVM-snapshot.

normally i have a script running to make backups each night of my Logical Volume, i create a snapshot of the volume and then use rsnapshot to make a backup and then remove the snapshot again, been going well for years.

untill the backup of wednesday got jammed and the script never fully completed leaving the snapshot in place (i know its my bad, should use more sanity checks in my script)

i didn't really notice anything gone bad till saturday when all te requests to my server were timing out and after logging in i noticed it was under 100% load and did a reboot, all fine till i noticed that i was missing several days, in fact the whole machine rolled back to the state since the last complete backup.
the logs were showing io errors to the snapshot, probably being full.

not sure if all is lost or if there is a way to recover this lost data.
vgcfgrestore --list drbdvg0
does show the snapshot and seems to be able to at least restore the metadata of the snapshot itself using
vgcfgrestore -f /etc/lvm/archive/ drbdvg0
both the original volume and the snapshot seem to return in INACTIVE state, and trying mounting the snapshot i get the following error.
mount: special device /dev/drbdvg0/backup does not exist

need to wait now for doing a full backup of its current state before attempting to merge back the snapshot, IF at all possible, since i have no idea yet on what procedure to follow.

anybody here an idea on how to release me from this agony?

much obliged


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] what is a LVM snapshot? aceone Red Hat 6 05-22-2010 01:08 PM
lvm snapshot Ammad Linux - General 1 02-18-2009 08:03 AM
Recovery of full LVM snapshot drmouse Linux - Software 0 12-11-2007 09:21 AM
About LVM Snapshot geethusari Member Intro 1 12-03-2007 08:11 AM
HDD Snapshot For Recovery Actinium Linux - Software 1 11-06-2007 02:59 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:52 AM.

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