mylvmbackup intermittantly fails to mount backup snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
Incomplete
|
Medium
|
Lenz Grimmer |
Bug Description
mylvmbackup will occasionally fail to mount the snapshot it earlier created. Here's the log output:
root@db16a:
20091118 12:56:45 Info: Connecting to database...
20091118 12:56:46 Info: Running hook 'preflush' as perl module.
20091118 12:56:46 Info: Flushing tables (initial)...
20091118 12:56:46 Info: Flushing tables with read lock...
20091118 12:56:46 Info: Taking position record into /tmp/mylvmbacku
20091118 12:56:46 Info: Running: /sbin/lvcreate -s --size=5G --name=
File descriptor 5 left open
Logical volume "MySQLLV_snapshot" created
20091118 12:56:46 Info: DONE: taking LVM snapshot
20091118 12:56:46 Info: Unlocking tables...
20091118 12:56:46 Info: Disconnecting from database...
20091118 12:56:46 Info: Mounting snapshot...
20091118 12:56:46 Info: Running: /bin/mount -o rw /dev/PrimaryVG/
mount: you must specify the filesystem type
20091118 12:56:46 Error: FAILED: mount snapshot (exit status 32)
20091118 12:56:46 Info: Running hook 'logerr' as perl module.
20091118 12:56:46 Info: Copying /tmp/mylvmbacku
20091118 12:56:46 Info: Cleaning up...
20091118 12:56:46 Info: LVM Usage stats:
20091118 12:56:46 Info: LV VG Attr LSize Origin Snap% Move Log Copy%
20091118 12:56:46 Info: MySQLLV_snapshot PrimaryVG swi-a- 5.00G MySQLLV 0.00
20091118 12:56:46 Info: Running: /sbin/lvremove -f /dev/PrimaryVG/
Logical volume "MySQLLV_snapshot" successfully removed
20091118 12:56:46 Info: DONE: Removing snapshot
root@db16a:
20091118 12:56:57 Info: Connecting to database...
20091118 12:56:57 Info: Running hook 'preflush' as perl module.
20091118 12:56:57 Info: Flushing tables (initial)...
20091118 12:56:57 Info: Flushing tables with read lock...
20091118 12:56:57 Info: Taking position record into /tmp/mylvmbacku
20091118 12:56:57 Info: Running: /sbin/lvcreate -s --size=5G --name=
File descriptor 5 left open
Logical volume "MySQLLV_snapshot" created
20091118 12:56:57 Info: DONE: taking LVM snapshot
20091118 12:56:57 Info: Unlocking tables...
20091118 12:56:57 Info: Disconnecting from database...
20091118 12:56:57 Info: Mounting snapshot...
20091118 12:56:57 Info: Running: /bin/mount -o rw /dev/PrimaryVG/
20091118 12:56:57 Info: DONE: mount snapshot
20091118 12:56:57 Info: Copying /tmp/mylvmbacku
20091118 12:56:57 Info: Copying /etc/mysql/my.cnf to /var/cache/
20091118 12:56:57 Info: Taking actual backup...
20091118 12:56:57 Info: Creating tar archive /var/cache/
20091118 12:56:57 Info: Running: cd '/var/cache/
File system type on this server is ext3.
Here's the conf file:
#
# mylvmbackup configuration file
#
# Every line beginning with a pound sign (#) will be treated as a comment.
#
# Please refer to the mylvmbackup(1) manual page for more information
#
# These values define how mylvmbackup should connect to the local MySQL server
#
[mysql]
user=root
password=secret
host=localhost
port=3306
socket=
mycnf=/
#
# LVM-specific options
#
[lvm]
vgname=PrimaryVG
lvname=MySQLLV
backuplv=
lvsize=5G
#
# File system specific options
#
[fs]
xfs=0
mountdir=
backupdir=
relpath=
#
# Full path names of required external utilities
#
[tools]
lvcreate=
lvremove=
mount=/bin/mount
tar=/bin/tar
rsync=/
umount=/bin/umount
#
# Other configuration options
#
[misc]
backuptype=tar
prefix=backup
tararg=cvzf
tarsuffixarg=
rsyncarg=-avWP
datefmt=%Y%m%d
innodb_recover=0
pidfile=
skip_flush_tables=0
extra_flush_
#
# Logging options. The Sys::Syslog module is required for syslog option
#
[logging]
# 'console' (STDOUT, STDERR) or 'syslog' or 'both'.
log_method=both
# 'native', 'tcp', 'udp'. Default is 'native'
syslog_
syslog_facility=
# If using remote syslog, don't forget to specify the socket type to tcp or udp.
syslog_remotehost=
Sorry for the late reply. This happened to me during my testing once so far - it's pretty hard to reproduce it. What operating system is this? Which Kernel version? I wonder if there's a bug in the LVM code that triggers this...