LVM on top of DRBD
vzdump was unable to remove one of the two snapshots that were created when backing up a single VM.
Backup log:
Kernel messages related to lvremove:
vzdump was unable to remove one of the two snapshots that were created when backing up a single VM.
Backup log:
Code:
Apr 16 20:15:06 INFO: Starting Backup of VM 101 (qemu)
Apr 16 20:15:06 INFO: status = running
Apr 16 20:15:07 INFO: backup mode: snapshot
Apr 16 20:15:07 INFO: ionice priority: 7
Apr 16 20:15:07 INFO: suspend vm to make snapshot
Apr 16 20:15:07 INFO: Logical volume "vzsnap-vm6-0" created
Apr 16 20:15:08 INFO: Logical volume "vzsnap-vm6-1" created
Apr 16 20:15:08 INFO: resume vm
Apr 16 20:15:08 INFO: vm is online again after 1 seconds
Apr 16 20:15:08 INFO: creating archive '/backup/dump/vzdump-qemu-101-2012_04_16-20_15_06.tar.lzo'
Apr 16 20:15:08 INFO: adding '/backup/dump/vzdump-qemu-101-2012_04_16-20_15_06.tmp/qemu-server.conf' to archive ('qemu-server.conf')
Apr 16 20:15:08 INFO: adding '/dev/drbd1-vm6-vm5/vzsnap-vm6-0' to archive ('vm-disk-virtio1.raw')
Apr 16 21:11:16 INFO: adding '/dev/drbd1-vm6-vm5/vzsnap-vm6-1' to archive ('vm-disk-virtio0.raw')
Apr 16 21:17:05 INFO: Total bytes written: 356482288640 (91.46 MiB/s)
Apr 16 21:17:05 INFO: archive file size: 127.36GB
[B]Apr 16 21:20:14 INFO: lvremove failed - trying again in 8 seconds
Apr 16 21:21:22 INFO: lvremove failed - trying again in 16 seconds
Apr 16 21:22:39 INFO: lvremove failed - trying again in 32 seconds
Apr 16 21:24:11 ERROR: command 'lvremove -f /dev/drbd1-vm6-vm5/vzsnap-vm6-1' failed: got lock timeout - aborting command[/B]
Apr 16 21:24:11 INFO: Finished Backup of VM 101 (01:09:05)
Kernel messages related to lvremove:
Code:
Apr 16 21:19:31 vm6 kernel: lvremove D ffff88063787b480 0 396621 393033 0 0x00000000
Apr 16 21:19:31 vm6 kernel: ffff88025ea3fb18 0000000000000082 ffff88025ea3fad8 ffffffff8140c1bc
Apr 16 21:19:31 vm6 kernel: 0000000000000008 0000000000001000 0000000000000000 000000000000000c
Apr 16 21:19:31 vm6 kernel: ffff88025ea3fb08 ffff88063787ba20 ffff88025ea3ffd8 ffff88025ea3ffd8
Apr 16 21:19:31 vm6 kernel: Call Trace:
Apr 16 21:19:31 vm6 kernel: [<ffffffff8140c1bc>] ? dm_table_unplug_all+0x5c/0x100
Apr 16 21:19:31 vm6 kernel: [<ffffffff81512663>] io_schedule+0x73/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811cc42e>] __blockdev_direct_IO_newtrunc+0x6ee/0xb80
Apr 16 21:19:31 vm6 kernel: [<ffffffff811cc91e>] __blockdev_direct_IO+0x5e/0xd0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811ca047>] blkdev_direct_IO+0x57/0x60
Apr 16 21:19:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff81123084>] generic_file_aio_read+0x744/0x7d0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811cab21>] ? blkdev_open+0x71/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118c173>] ? __dentry_open+0x113/0x330
Apr 16 21:19:31 vm6 kernel: [<ffffffff8122d2e8>] ? devcgroup_inode_permission+0x48/0x50
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118ea5a>] do_sync_read+0xfa/0x140
Apr 16 21:19:31 vm6 kernel: [<ffffffff8119fcc4>] ? user_path_at+0x64/0xa0
Apr 16 21:19:31 vm6 kernel: [<ffffffff810944b0>] ? autoremove_wake_function+0x0/0x40
Apr 16 21:19:31 vm6 kernel: [<ffffffff811c962c>] ? block_ioctl+0x3c/0x40
Apr 16 21:19:31 vm6 kernel: [<ffffffff811a22d2>] ? vfs_ioctl+0x22/0xa0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811a247a>] ? do_vfs_ioctl+0x8a/0x5d0
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118f435>] vfs_read+0xb5/0x1a0
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118f571>] sys_read+0x51/0x90
Apr 16 21:19:31 vm6 kernel: [<ffffffff8100b182>] system_call_fastpath+0x16/0x1b
Apr 16 21:19:31 vm6 kernel: vgs D ffff880637bdc400 0 396625 4040 0 0x00000000
Apr 16 21:19:31 vm6 kernel: ffff88051973bb18 0000000000000082 ffff88051973bad8 ffffffff8140c1bc
Apr 16 21:19:31 vm6 kernel: 0000000000000008 0000000000001000 0000000000000000 000000000000000c
Apr 16 21:19:31 vm6 kernel: ffff88051973bb08 ffff880637bdc9a0 ffff88051973bfd8 ffff88051973bfd8
Apr 16 21:19:31 vm6 kernel: Call Trace:
Apr 16 21:19:31 vm6 kernel: [<ffffffff8140c1bc>] ? dm_table_unplug_all+0x5c/0x100
Apr 16 21:19:31 vm6 kernel: [<ffffffff81512663>] io_schedule+0x73/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811cc42e>] __blockdev_direct_IO_newtrunc+0x6ee/0xb80
Apr 16 21:19:31 vm6 kernel: [<ffffffff811cc91e>] __blockdev_direct_IO+0x5e/0xd0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811ca047>] blkdev_direct_IO+0x57/0x60
Apr 16 21:19:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff81123084>] generic_file_aio_read+0x744/0x7d0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811cab21>] ? blkdev_open+0x71/0xc0
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118c173>] ? __dentry_open+0x113/0x330
Apr 16 21:19:31 vm6 kernel: [<ffffffff8122d2e8>] ? devcgroup_inode_permission+0x48/0x50
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118ea5a>] do_sync_read+0xfa/0x140
Apr 16 21:19:31 vm6 kernel: [<ffffffff8119fcc4>] ? user_path_at+0x64/0xa0
Apr 16 21:19:31 vm6 kernel: [<ffffffff810944b0>] ? autoremove_wake_function+0x0/0x40
Apr 16 21:19:31 vm6 kernel: [<ffffffff811c962c>] ? block_ioctl+0x3c/0x40
Apr 16 21:19:31 vm6 kernel: [<ffffffff811a22d2>] ? vfs_ioctl+0x22/0xa0
Apr 16 21:19:31 vm6 kernel: [<ffffffff811a247a>] ? do_vfs_ioctl+0x8a/0x5d0
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118f435>] vfs_read+0xb5/0x1a0
Apr 16 21:19:31 vm6 kernel: [<ffffffff8118f571>] sys_read+0x51/0x90
Apr 16 21:19:31 vm6 kernel: [<ffffffff8100b182>] system_call_fastpath+0x16/0x1b
Apr 16 21:21:31 vm6 kernel: lvremove D ffff88063787b480 0 396621 393033 0 0x00000000
Apr 16 21:21:31 vm6 kernel: ffff88025ea3fb18 0000000000000082 ffff88025ea3fad8 ffffffff8140c1bc
Apr 16 21:21:31 vm6 kernel: 0000000000000008 0000000000001000 0000000000000000 000000000000000c
Apr 16 21:21:31 vm6 kernel: ffff88025ea3fb08 ffff88063787ba20 ffff88025ea3ffd8 ffff88025ea3ffd8
Apr 16 21:21:31 vm6 kernel: Call Trace:
Apr 16 21:21:31 vm6 kernel: [<ffffffff8140c1bc>] ? dm_table_unplug_all+0x5c/0x100
Apr 16 21:21:31 vm6 kernel: [<ffffffff81512663>] io_schedule+0x73/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811cc42e>] __blockdev_direct_IO_newtrunc+0x6ee/0xb80
Apr 16 21:21:31 vm6 kernel: [<ffffffff811cc91e>] __blockdev_direct_IO+0x5e/0xd0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811ca047>] blkdev_direct_IO+0x57/0x60
Apr 16 21:21:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff81123084>] generic_file_aio_read+0x744/0x7d0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811cab21>] ? blkdev_open+0x71/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118c173>] ? __dentry_open+0x113/0x330
Apr 16 21:21:31 vm6 kernel: [<ffffffff8122d2e8>] ? devcgroup_inode_permission+0x48/0x50
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118ea5a>] do_sync_read+0xfa/0x140
Apr 16 21:21:31 vm6 kernel: [<ffffffff8119fcc4>] ? user_path_at+0x64/0xa0
Apr 16 21:21:31 vm6 kernel: [<ffffffff810944b0>] ? autoremove_wake_function+0x0/0x40
Apr 16 21:21:31 vm6 kernel: [<ffffffff811c962c>] ? block_ioctl+0x3c/0x40
Apr 16 21:21:31 vm6 kernel: [<ffffffff811a22d2>] ? vfs_ioctl+0x22/0xa0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811a247a>] ? do_vfs_ioctl+0x8a/0x5d0
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118f435>] vfs_read+0xb5/0x1a0
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118f571>] sys_read+0x51/0x90
Apr 16 21:21:31 vm6 kernel: [<ffffffff8100b182>] system_call_fastpath+0x16/0x1b
Apr 16 21:21:31 vm6 kernel: vgs D ffff880637bdc400 0 396625 4040 0 0x00000000
Apr 16 21:21:31 vm6 kernel: ffff88051973bb18 0000000000000082 ffff88051973bad8 ffffffff8140c1bc
Apr 16 21:21:31 vm6 kernel: 0000000000000008 0000000000001000 0000000000000000 000000000000000c
Apr 16 21:21:31 vm6 kernel: ffff88051973bb08 ffff880637bdc9a0 ffff88051973bfd8 ffff88051973bfd8
Apr 16 21:21:31 vm6 kernel: Call Trace:
Apr 16 21:21:31 vm6 kernel: [<ffffffff8140c1bc>] ? dm_table_unplug_all+0x5c/0x100
Apr 16 21:21:31 vm6 kernel: [<ffffffff81512663>] io_schedule+0x73/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811cc42e>] __blockdev_direct_IO_newtrunc+0x6ee/0xb80
Apr 16 21:21:31 vm6 kernel: [<ffffffff811cc91e>] __blockdev_direct_IO+0x5e/0xd0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811ca047>] blkdev_direct_IO+0x57/0x60
Apr 16 21:21:31 vm6 kernel: [<ffffffff811c91f0>] ? blkdev_get_blocks+0x0/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff81123084>] generic_file_aio_read+0x744/0x7d0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811cab21>] ? blkdev_open+0x71/0xc0
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118c173>] ? __dentry_open+0x113/0x330
Apr 16 21:21:31 vm6 kernel: [<ffffffff8122d2e8>] ? devcgroup_inode_permission+0x48/0x50
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118ea5a>] do_sync_read+0xfa/0x140
Apr 16 21:21:31 vm6 kernel: [<ffffffff8119fcc4>] ? user_path_at+0x64/0xa0
Apr 16 21:21:31 vm6 kernel: [<ffffffff810944b0>] ? autoremove_wake_function+0x0/0x40
Apr 16 21:21:31 vm6 kernel: [<ffffffff811c962c>] ? block_ioctl+0x3c/0x40
Apr 16 21:21:31 vm6 kernel: [<ffffffff811a22d2>] ? vfs_ioctl+0x22/0xa0
Apr 16 21:21:31 vm6 kernel: [<ffffffff811a247a>] ? do_vfs_ioctl+0x8a/0x5d0
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118f435>] vfs_read+0xb5/0x1a0
Apr 16 21:21:31 vm6 kernel: [<ffffffff8118f571>] sys_read+0x51/0x90
Apr 16 21:21:31 vm6 kernel: [<ffffffff8100b182>] system_call_fastpath+0x16/0x1b