|
From: Eric A. <eri...@ho...> - 2014-02-08 14:12:44
|
Hi,
I'm getting an error that the removal of the snapshot volume cannot be accomplished.
root@poemas51:/etc/cron.daily# safekeep --server --cleanup poem11_1
warn: lvremove called for non-existent device: /dev/mapper/poem11-vg--root_snap_safekeep--10595--MEO0Ec--rbind
When I do a list of the client I see:
era@poem11:~$ ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 236 Feb 6 20:32 control
lrwxrwxrwx 1 root root 7 Feb 7 22:52 poem11--vg-root -> ../dm-0
lrwxrwxrwx 1 root root 7 Feb 6 20:32 poem11--vg-swap_1 -> ../dm-1
Note the extra '-' between the machine name and the 'vg' designator.
These volumes were set up with default LVM install in Ubuntu 12.04.3.
After making a small change to line 884 of /usr/bin/safekeep (latest
release)
from:
lvmdev = '/dev/mapper/%s-%s' % (group, volume.replace('-', '--'))
to:
lvmdev = '/dev/mapper/%s-%s' % (group.replace('-', '--'), volume.replace('-', '--'))
it works.
Hope this helps someone. I don't think my configuration is that mixed up so perhaps this change should be integrated into the release? I'll let experts decide.
Best regards,
Eric
|