mpalmer / lvmsync

Synchronise LVM LVs across a network by sending only snapshotted changes
http://theshed.hezmatt.org/lvmsync
GNU General Public License v3.0
380 stars 60 forks source link

undefined method `value' for nil:NilClass (NoMethodError) #30

Closed dipohl closed 9 years ago

dipohl commented 9 years ago

cat /etc/issue

Red Hat Enterprise Linux Server release 6.5 (Santiago) Kernel \r on an \m

yum repolist

repo id repo name status epel Extra Packages for Enterprise Linux 6 - x86_64 11,135 rhel-6-server-optional-rpms Red Hat Enterprise Linux 6 Server - Optional (RPMs) 7,157+62 rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 12,808+33 rhel-server-dts-6-rpms Red Hat Developer Toolset RPMs for Red Hat Enterprise Linux 6 Server 80+4 rhel-server-dts2-6-rpms Red Hat Developer Toolset 2 RPMs for Red Hat Enterprise Linux 6 Server 407+4 repolist: 31,587

rpm -qa ruby*

ruby-1.8.7.352-13.el6.x86_64 ruby-libs-1.8.7.352-13.el6.x86_64 ruby-rdoc-1.8.7.352-13.el6.x86_64 ruby-irb-1.8.7.352-13.el6.x86_64 ruby-devel-1.8.7.352-13.el6.x86_64 rubygems-1.3.7-5.el6.noarch

gem list

* LOCAL GEMS * git-version-bump (0.9.1) lvmsync (1.0.2) polyglot (0.3.5) treetop (1.5.3)

lvmsync /dev/vg_kvm2/ap4-lvmsync srv-kon-kvm1.ikon:/dev/vg_kvm1/lv_ap4

/usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/lib/lvm/vg_config.rb:66:in vgcfgbackup_output': undefined methodvalue' for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/open3.rb:86:in popen3' from /usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/lib/lvm/vg_config.rb:62:invgcfgbackup_output' from /usr/lib/ruby/1.8/tempfile.rb:188:in open' from /usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/lib/lvm/vg_config.rb:56:invgcfgbackup_output' from /usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/lib/lvm/vg_config.rb:20:in initialize' from /usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/bin/lvmsync:154:innew' from /usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/bin/lvmsync:154:in run_client' from /usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/bin/lvmsync:93:inmain' from /usr/lib/ruby/gems/1.8/gems/lvmsync-1.0.2/bin/lvmsync:256 from /usr/bin/lvmsync:19:in `load' from /usr/bin/lvmsync:19

mpalmer commented 9 years ago

I've tried to work around Ruby 1.8's out-of-date Open3 implementation in bf42ee8, but I can't guarantee that I'll be able to maintain compatibility with Ruby 1.8 indefinitely. It might be time to use lvmsync to migrate your VMs onto a shiny new RHEL7 machine. <grin>

dipohl commented 9 years ago

Thanks a lot Matt for solving this issue! With the new version I get no errors during sync. But unfortunately the result is not a synced machine, like written in #23. Changes I made after creating the snapshot are not existent on the new machine after transfer with lvmsync.

mpalmer commented 9 years ago

I'll add some info to #23 about what I've come up with on that front.