Skip to content

Instantly share code, notes, and snippets.

@jhannah
Created March 5, 2011 00:07
Show Gist options
  • Save jhannah/855947 to your computer and use it in GitHub Desktop.
Save jhannah/855947 to your computer and use it in GitHub Desktop.
mylvmbackup
sudo apt-get install lvm2
sudo apt-get install mylvmbackup
jhannah@li202-203:~/src$ sudo mylvmbackup --socket=/home/cm_satin/mysql-repl/mysql.sock
20110304 23:19:14 Info: Connecting to database...
20110304 23:19:14 Info: Running hook 'preflush' as perl module.
20110304 23:19:14 Info: Flushing tables with read lock...
20110304 23:19:14 Info: Taking position record into /tmp/mylvmbackup-backup-20110304_231914_mysql-hfUKiZ.pos...
20110304 23:19:14 Info: Running: lvcreate -s --size=5G --name=data_snapshot /dev/mysql/data
File descriptor 4 (socket:[113294]) leaked on lvcreate invocation. Parent PID 1669: /usr/bin/perl
Volume group "mysql" not found
20110304 23:19:14 Error: FAILED: taking LVM snapshot (exit status 5)
20110304 23:19:14 Info: Running hook 'logerr' as perl module.
20110304 23:19:14 Info: Unlocking tables...
20110304 23:19:14 Info: Disconnecting from database...
20110304 23:19:14 Info: Cleaning up...
@noomii
Copy link

noomii commented Aug 5, 2011

Were you able to resolve this?

@jhannah
Copy link
Author

jhannah commented Aug 5, 2011

No, I think I gave up on using lvmbackup and fell back to scp (stupid, but worked).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment