diff --git a/lib/lvm/snapshot.rb b/lib/lvm/snapshot.rb index 6189e66..1deea42 100644 --- a/lib/lvm/snapshot.rb +++ b/lib/lvm/snapshot.rb @@ -108,6 +108,6 @@ def metadata_header end def metadata_device - "/dev/mapper/#{@vg}-#{@lv}-cow" + "/dev/mapper/#{@vg}-#{@lv.gsub('-', '--')}-cow" end end