{"action":"created","issue":{"url":"https://api.github.com/repos/rsnapshot/rsnapshot/issues/146","repository_url":"https://api.github.com/repos/rsnapshot/rsnapshot","labels_url":"https://api.github.com/repos/rsnapshot/rsnapshot/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/rsnapshot/rsnapshot/issues/146/comments","events_url":"https://api.github.com/repos/rsnapshot/rsnapshot/issues/146/events","html_url":"https://github.com/rsnapshot/rsnapshot/issues/146","id":171887866,"number":146,"title":"Paths to LVM snapshots are broken","user":{"login":"andymwood","id":7825213,"avatar_url":"https://avatars.githubusercontent.com/u/7825213?v=3","gravatar_id":"","url":"https://api.github.com/users/andymwood","html_url":"https://github.com/andymwood","followers_url":"https://api.github.com/users/andymwood/followers","following_url":"https://api.github.com/users/andymwood/following{/other_user}","gists_url":"https://api.github.com/users/andymwood/gists{/gist_id}","starred_url":"https://api.github.com/users/andymwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymwood/subscriptions","organizations_url":"https://api.github.com/users/andymwood/orgs","repos_url":"https://api.github.com/users/andymwood/repos","events_url":"https://api.github.com/users/andymwood/events{/privacy}","received_events_url":"https://api.github.com/users/andymwood/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-18T12:20:34Z","updated_at":"2016-08-18T14:27:27Z","closed_at":"2016-08-18T14:27:26Z","body":"I'm running rsnapshot under OpenSUSE 13.2\r\n\r\nrsnapshot.conf has the following lines:\r\n\r\n```\r\nlinux_lvm_cmd_lvcreate  /sbin/lvcreate\r\nlinux_lvm_cmd_lvremove  /sbin/lvremove\r\nlinux_lvm_cmd_mount /usr/bin/mount\r\nlinux_lvm_cmd_umount    /usr/bin/umount\r\nlinux_lvm_snapshotsize  2G\r\nlinux_lvm_snapshotname  rsnapshot\r\nlinux_lvm_vgpath    /dev\r\nlinux_lvm_mountpath /mnt/lvm-rsnapshot\r\nbackup  lvm://mapper/system-home/source  target\r\n```\r\n\r\nI get the following error message when I run rsnapshot:\r\n\r\n> ERROR: Mount LVM snapshot failed: 8192\r\n>   Volume group \"rsnapshot\" not found\r\n>   Skipping volume group rsnapshot\r\n> ERROR: Removal of LVM snapshot failed: 1280\r\n\r\nIf I run rsnapshot with the '-t' option, I get:\r\n\r\n> /sbin/lvcreate --snapshot --size 2G --name rsnapshot \\\r\n>     /dev/mapper/system-home \r\n> /usr/bin/mount /dev/mapper/rsnapshot /mnt/lvm-rsnapshot \r\n> ...\r\n> /usr/bin/umount /mnt/lvm-rsnapshot \r\n> /sbin/lvremove --force /dev/mapper/rsnapshot\r\n\r\nSo, it looks like rsnapshot is expecting '/dev/mapper/rsnapshot', but no such LVM volume exists. Instead I get '/dev/mapper/system-rsnapshot'.\r\n\r\nI've also tried replacing\r\n```\r\nlinux_lvm_vgpath    /dev\r\nbackup  lvm://mapper/system-home/source  target\r\n```\r\nwith\r\n```\r\nlinux_lvm_vgpath    /dev/mapper\r\nbackup  lvm://system/home/source  target\r\n```\r\nbut that doesn't work either."},"comment":{"url":"https://api.github.com/repos/rsnapshot/rsnapshot/issues/comments/240740020","html_url":"https://github.com/rsnapshot/rsnapshot/issues/146#issuecomment-240740020","issue_url":"https://api.github.com/repos/rsnapshot/rsnapshot/issues/146","id":240740020,"user":{"login":"andymwood","id":7825213,"avatar_url":"https://avatars.githubusercontent.com/u/7825213?v=3","gravatar_id":"","url":"https://api.github.com/users/andymwood","html_url":"https://github.com/andymwood","followers_url":"https://api.github.com/users/andymwood/followers","following_url":"https://api.github.com/users/andymwood/following{/other_user}","gists_url":"https://api.github.com/users/andymwood/gists{/gist_id}","starred_url":"https://api.github.com/users/andymwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymwood/subscriptions","organizations_url":"https://api.github.com/users/andymwood/orgs","repos_url":"https://api.github.com/users/andymwood/repos","events_url":"https://api.github.com/users/andymwood/events{/privacy}","received_events_url":"https://api.github.com/users/andymwood/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T14:27:26Z","updated_at":"2016-08-18T14:27:26Z","body":"> So just to clarify, if you were to run /sbin/lvcreate --snapshot --size 2G --name rsnapshot /dev/mapper/system-home in isolation on your system you get a volume called \"/dev/mapper/system-rsnapshot\"?? That's weird.\r\n\r\nYes, that's exactly what's happening:\r\n```\r\n> ls /dev/mapper\r\nsystem-home  system-root  system-swap\r\n>  /sbin/lvcreate --snapshot --size 2G --name rsnapshot /dev/mapper/system-home\r\n> ls /dev/mapper\r\nsystem-home  system-home-real  system-root  system-rsnapshot  system-rsnapshot-cow  system-swap\r\n```\r\n\r\n```\r\n> lvdisplay | grep -i snapshot\r\n  LV snapshot status     source of\r\n                         rsnapshot [active]\r\n  LV Path                /dev/system/rsnapshot\r\n  LV Name                rsnapshot\r\n  LV snapshot status     active destination for home\r\n  Allocated to snapshot  0.27%\r\n  Snapshot chunk size    4.00 KiB\r\n```\r\n\r\nAha! That's the solution: replace `lvm://mapper/system-home/source` with `lvm://system/home/source`. Those multiple symbolic links to all the entries in /dev is confusing.\r\n\r\nMany thanks.\r\n"}}
{"actor":{"display_login":"andymwood"}}