Commit Graph

98 Commits

Author SHA1 Message Date
Daniel Berteaud
9d26a80866 Add help for --no-offline
And exit early if --no-offline and --no-snapshot are both used
2014-06-23 11:35:39 +02:00
Daniel Berteaud
139ae9d993 Revert previous commit where we tried 30 times to take a snapshot
If it fails 10 times, it won't work
2014-06-23 11:24:50 +02:00
Daniel Berteaud
b7b5063982 Don't summarize disks if backup doesn't run 2014-06-23 11:22:27 +02:00
Daniel Berteaud
e86cff1db1 Add a --no-offline flag to fail if livebackup isn't possible 2014-06-23 10:53:01 +02:00
Daniel Berteaud
f25638e467 Spec file update 2014-06-23 10:25:07 +02:00
Daniel Berteaud
9993307d61 Fix breaking the loop while creating a snapshot 2014-06-04 12:39:26 +02:00
Daniel Berteaud
38c3328aa5 Spec file update 2014-06-03 10:06:06 +02:00
Daniel Berteaud
a4f65e3d78 Try up to 30 times to take the snapshot 2014-06-03 10:02:15 +02:00
Daniel Berteaud
abafa0a3b0 Spec file update 2014-05-02 10:49:37 +02:00
Daniel Berteaud
3a5ebf960e Fix create_snapshot if snapshoting failed even without a lock 2014-05-02 10:10:24 +02:00
Daniel Berteaud
31de73407c spec file update 2014-04-22 12:13:26 +02:00
Daniel Berteaud
d144e96880 Remove useless carriage return on debug output 2014-04-22 12:05:56 +02:00
Daniel Berteaud
c10e185207 Fix warning (readline on unopened filehandle) 2014-04-22 11:51:05 +02:00
Daniel Berteaud
6d8dd735fa Manage LVM locks
It's not possible de take 2 snapshot of the same LVM volume at the same time.
This is a problem when using a single file system (backed by a single LVM volume) to store
several VM as trying to run 2 backups at the same time will fail (at least, taking the snapshot for one will fail).

Add locking before taking a snapshot and wait up to 10 sec for the lock to be released. This should fix
concurrent backups
2014-04-22 10:22:20 +02:00
Daniel Berteaud
d715a0103e Spec file update 2014-01-30 12:56:57 +01:00
Daniel Berteaud
7554436d6d Add comments for the shutdown and shutdowntimeout variables, and other minor fixes 2014-01-30 12:04:49 +01:00
Daniel Berteaud
3135bff066 Gracefully handle LVM snapshot error with file based disk: just like with block, warn and disable the live backup, but do not fail 2014-01-30 11:51:38 +01:00
Daniel Berteaud
4de1d2c82b Spec file update 2014-01-21 12:57:13 +01:00
Daniel Berteaud
9f89903d88 Correctly detect the filesystem type and fix issue detecting the backing volume when GlusterFS is used 2013-09-19 13:12:13 +02:00
Daniel Berteaud
2f7a875742 Fix a syntax error 2013-09-18 19:22:19 +02:00
Daniel Berteaud
5e05ebeb72 Simplify create_snapshot function 2013-08-09 15:04:06 +02:00
Daniel Berteaud
89a82b0b9a Fix LVM device name for file backed disks, so snapshot can be created. Also only use the nouuid for xfs filesystems 2013-08-09 15:02:51 +02:00
Daniel Berteaud
5cd7b832ed Always define $libvirt2 2013-08-08 19:10:31 +02:00
Daniel Berteaud
bc17575780 Various comment fixes 2013-08-02 09:58:02 +02:00
Daniel Berteaud
5a12918bf2 Fix a syntax error 2013-07-30 13:21:31 +02:00
Daniel Berteaud
b58b095631 Don't fail if the second node is unavailable, just act as the local libvirt is the only one 2013-07-28 19:39:48 +02:00
Daniel Berteaud
8f674c07d1 Minor fixes 2013-07-28 19:02:31 +02:00
Daniel Berteaud
fc7380dfb3 Add the convert action: works like dump, but converts the source into qcow2 format (using qemu-img) instead off dd 2013-07-28 18:45:10 +02:00
Daniel Berteaud
a06de6ee25 Use a uniq temporary mount point for each LVM snapshot, so you can have one VM with two disk, stored on two different LVM volumes 2013-07-28 18:36:28 +02:00
Daniel Berteaud
c7273ea5c3 Call sync before taking an LVM snapshot 2013-07-28 18:33:01 +02:00
Daniel Berteaud
ef0c33ae97 Support a two nodes cluster situation, where images are files on the host, backed by an LVM volume (and also support the case where GlusterFS is between the LVM and the guest images) 2013-07-25 15:54:55 +02:00
Daniel Berteaud
f52fe007ab update spec file 2013-07-23 17:10:42 +02:00
Daniel Berteaud
7e13deaca2 update spec file 2013-03-05 23:39:58 +01:00
Daniel Berteaud
96f20cf6bd send /dev/null to lvm commands stdin, this prevent this message in EL 6.4: 'fdopen() failed: Invalid argument', with lvm snapshots failing to be created or removed 2013-03-05 23:38:31 +01:00
Daniel Berteaud
dec692ab30 update spec file 2013-03-05 23:35:27 +01:00
Daniel Berteaud
411fa045b9 Fix some spacing issue 2012-11-20 11:59:59 +01:00
Daniel Berteaud
5f4b54311b Remove inline Changelog 2012-11-20 11:48:17 +01:00
Daniel Berteaud
a252096e79 Add some sleep before restoring VM or removing snapshot 2012-11-20 11:47:36 +01:00
Daniel Berteaud
ca229b66cf Use absolute path again, or it might not work as expected when called through BackupPC 2012-11-20 08:35:12 +01:00
Daniel Berteaud
19be8595c1 Correction de l'aide pour l'option --blocksize 2012-07-06 11:56:00 +02:00
Daniel Berteaud
040d833d3c Mise àjour du ficheir spec 2012-06-28 18:45:12 +02:00
Daniel Berteaud
7ff3a6b0a0 Ne pas utiliser les chemins absolus vers lvcreate et lvremove 2012-06-28 18:44:29 +02:00
Daniel Berteaud
a024cff82f Suppression du CHANGELOG du depot 2012-06-17 21:17:51 +02:00
Daniel Berteaud
223d912fd8 Mise à jour du spec 2012-06-17 21:15:27 +02:00
Daniel Berteaud
8ce4f5e497 Creation des snapshots LVM en lecture seule 2012-06-17 21:14:11 +02:00
Daniel Berteaud
5eb192546c update changelog 2012-05-29 09:10:51 +02:00
Daniel Berteaud
db04c88767 Fix syntaxe issue with shutdown-timeout option 2012-05-29 09:10:42 +02:00
Daniel Berteaud
b810c3c7d6 Initial commit 2012-05-23 10:20:44 +02:00