Closed localguru closed 9 years ago
So /dev/mapper/test01-vg-source--lvmsync-cow
doesn't exist -- is the correct path /dev/mapper/test01--vg-source--lvmsync-cow
by any chance?
Hi,
root@test01:~# ls -al /dev/mapper/test01--vg-source--lvmsync-cow lrwxrwxrwx 1 root root 7 Aug 26 20:59 /dev/mapper/test01--vg-source--lvmsync-cow -> ../dm-6
root@test01:/home/testuser# ls -al /dev/mapper/test01--vg-source lrwxrwxrwx 1 root root 7 Aug 26 20:59 /dev/mapper/test01--vg-source -> ../dm-2
root@test01:/home/testuser#
lvmsync /dev/mapper/test01--vg-source /dev/mapper/test01--vg-dest
/var/lib/gems/1.9.1/gems/lvmsync-1.0.2/lib/lvm/vg_config.rb:70:in block in vgcfgbackup_output': Failed to run vgcfgbackup: (RuntimeError) Volume group "test01--vg" not found from /usr/lib/ruby/1.9.1/tempfile.rb:316:in
open'
from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/lib/lvm/vg_config.rb:56:in
vgcfgbackup_output' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/lib/lvm/vg_config.rb:20:in
initialize'
from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:154:in new' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:154:in
run_client'
from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:93:in main' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:256:in
<top
(required)>'
from /usr/local/bin/lvmsync:19:in load' from /usr/local/bin/lvmsync:19:in
Ciao Marcus
This was a straightforward forgetting-to-escape in the VG name. Should be fixed by 7bfa3c9.
root@test01:~# gem install lvmsync Fetching: git-version-bump-0.9.1.gem (100%) Fetching: polyglot-0.3.5.gem (100%) Fetching: treetop-1.5.3.gem (100%) Fetching: lvmsync-1.0.2.gem (100%) Successfully installed git-version-bump-0.9.1 Successfully installed polyglot-0.3.5 Successfully installed treetop-1.5.3 Successfully installed lvmsync-1.0.2 4 gems installed Installing ri documentation for git-version-bump-0.9.1... Installing ri documentation for polyglot-0.3.5... Installing ri documentation for treetop-1.5.3... Installing ri documentation for lvmsync-1.0.2... Installing RDoc documentation for git-version-bump-0.9.1... Installing RDoc documentation for polyglot-0.3.5... Installing RDoc documentation for treetop-1.5.3... Installing RDoc documentation for lvmsync-1.0.2...
root@test01:~# lvcreate --snapshot -L10GB -n source-lvmsync /dev/test01-vg/source Logical volume "source-lvmsync" created root@test01:~# dd if=/dev/test01-vg/source-lvmsync of=/dev/test01-vg/dest 204800+0 Datensätze ein 204800+0 Datensätze aus 104857600 Bytes (105 MB) kopiert, 15,4465 s, 6,8 MB/s root@test01:~# md5sum /dev/test01-vg/dest 74d94f808054425e16a7ee41865b62f1 /dev/test01-vg/dest root@test01:~# md5sum /dev/test01-vg/source-lvmsync 74d94f808054425e16a7ee41865b62f1 /dev/test01-vg/source-lvmsync root@test01:~# mount /dev/test01-vg/source /mnt/ root@test01:~# echo test > /mnt/test.txt root@test01:~# umount /mnt/ root@test01:~# lvmsync /dev/test01-vg/source-lvmsync /dev/test01-vg/dest /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/lib/lvm/snapshot.rb:24:in'
initialize': No such file or directory - /dev/mapper/test01-vg-source--lvmsync-cow (Errno::ENOENT) from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/lib/lvm/snapshot.rb:24:in
open' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/lib/lvm/snapshot.rb:24:indifferences' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:204:in
block in run_client' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:203:inopen' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:203:in
run_client' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:93:inmain' from /var/lib/gems/1.9.1/gems/lvmsync-1.0.2/bin/lvmsync:256:in
<top (required)>' from /usr/local/bin/lvmsync:19:inload' from /usr/local/bin/lvmsync:19:in
Running ruby1.9.1 on Ubuntu 12.04 LTS.
Cheers and Thanks Marcus