{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/2375","repository_url":"https://api.github.com/repos/lxc/lxc","labels_url":"https://api.github.com/repos/lxc/lxc/issues/2375/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/2375/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/2375/events","html_url":"https://github.com/lxc/lxc/issues/2375","id":329069998,"node_id":"MDU6SXNzdWUzMjkwNjk5OTg=","number":2375,"title":"error while cloning container with ext4 file-system on lvm backingstore and snapshot mode","user":{"login":"aston-r","id":22587476,"node_id":"MDQ6VXNlcjIyNTg3NDc2","avatar_url":"https://avatars0.githubusercontent.com/u/22587476?v=4","gravatar_id":"","url":"https://api.github.com/users/aston-r","html_url":"https://github.com/aston-r","followers_url":"https://api.github.com/users/aston-r/followers","following_url":"https://api.github.com/users/aston-r/following{/other_user}","gists_url":"https://api.github.com/users/aston-r/gists{/gist_id}","starred_url":"https://api.github.com/users/aston-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aston-r/subscriptions","organizations_url":"https://api.github.com/users/aston-r/orgs","repos_url":"https://api.github.com/users/aston-r/repos","events_url":"https://api.github.com/users/aston-r/events{/privacy}","received_events_url":"https://api.github.com/users/aston-r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-04T14:04:29Z","updated_at":"2019-04-18T17:52:57Z","closed_at":null,"author_association":"NONE","body":"Dear Developers,\r\n\r\nThe issue reported here https://github.com/lxc/lxc/issues/2241 is still reproducible\r\n\r\n[$]> lxc-copy --version\r\n3.0.1\r\n\r\nSTR:\r\n-create a container with lvm backingstore\r\n-clone the container with snapshot mode\r\n```\r\nlxc-copy --logpriority=DEBUG \\\r\n         --name=\"1_masterdb\" \\\r\n         --newname=\"2_masterdb\" \\\r\n         --keepname \\\r\n         --snapshot \\\r\n         -- \\\r\n         --hook-path=\"${hook_path}\" \\\r\n         -- \\\r\n            ${hook_options}\r\n```\r\n\r\nActual Result:\r\n-lvm snapshot is created but lxc-copy fails:\r\n\r\n```\r\nlxc-copy: 1_masterdb: storage/lvm.c: lvm_snapshot: 404 Failed to create new uuid for volume \"/dev/mapper/2_masterdb\": lxc-copy: 1_masterdb: utils.c: run_command: 2280 failed to exec command                                                \r\nlxc-copy: 1_masterdb: storage/lvm.c: lvm_create_snapshot: 583 Failed to create lvm \"lvm:/dev/mapper/2_masterdb\" snapshot of \"/dev/mapper/lxdata-1_masterdb\"                                                                                  \r\nlxc-copy: 1_masterdb: lxccontainer.c: copy_storage: 3449 Error copying storage.  \r\n\r\n  --- Logical volume ---\r\n  LV Path                /dev/lxdata/2_masterdb\r\n  LV Name                2_masterdb\r\n  VG Name                lxdata\r\n  LV UUID                e3gbrc-bblI-Flwr-XYkV-SDwb-MKPH-DfIO9P\r\n  LV Write Access        read/write\r\n  LV Creation host, time lxbase, 2018-06-04 16:51:09 +0300\r\n  LV Pool name           lxpool\r\n  LV Thin origin name    1_masterdb\r\n  LV Status              available\r\n  # open                 0\r\n  LV Size                15,00 GiB\r\n  Mapped size            41,12%\r\n  Current LE             3840\r\n  Segments               1\r\n  Allocation             inherit\r\n  Read ahead sectors     auto\r\n  - currently set to     8192\r\n  Block device           253:7\r\n```\r\n\r\nPlease check. TIA.\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxc/issues/comments/484613900","html_url":"https://github.com/lxc/lxc/issues/2375#issuecomment-484613900","issue_url":"https://api.github.com/repos/lxc/lxc/issues/2375","id":484613900,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NDYxMzkwMA==","user":{"login":"krbvroc1","id":1335118,"node_id":"MDQ6VXNlcjEzMzUxMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1335118?v=4","gravatar_id":"","url":"https://api.github.com/users/krbvroc1","html_url":"https://github.com/krbvroc1","followers_url":"https://api.github.com/users/krbvroc1/followers","following_url":"https://api.github.com/users/krbvroc1/following{/other_user}","gists_url":"https://api.github.com/users/krbvroc1/gists{/gist_id}","starred_url":"https://api.github.com/users/krbvroc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krbvroc1/subscriptions","organizations_url":"https://api.github.com/users/krbvroc1/orgs","repos_url":"https://api.github.com/users/krbvroc1/repos","events_url":"https://api.github.com/users/krbvroc1/events{/privacy}","received_events_url":"https://api.github.com/users/krbvroc1/received_events","type":"User","site_admin":false},"created_at":"2019-04-18T17:52:57Z","updated_at":"2019-04-18T17:52:57Z","author_association":"NONE","body":"@brauner @stgraber\r\n\r\nI am new to LXC and this fails for me too. I saw https://github.com/lxc/lxc/issues/2241 was closed and it looks like the fix is only in 3.1. I do not see a 3.1 being available anyhwere. So I installed a PPA of the development branch/3.1 master. After upgrading, it still doesn't work!\r\n\r\nI figured I would try xfs and that fails too with a different message:\r\n```\r\nlxc-create --name=alpine-edge --fstype=xfs --fssize=100M --bdev=lvm --thinpool=data_tpool --template=alpine -- --release=edge\r\nlxc-create: alpine-edge: storage/storage_utils.c: mount_unknown_fs: 322 Failed to determine FSType for \"/dev/data_vg/alpine-edge\"\r\nlxc-create: alpine-edge: lxccontainer.c: create_run_template: 1421 Failed to mount rootfs\r\nlxc-create: alpine-edge: lxccontainer.c: create_run_template: 1633 Failed to create container from template\r\nlxc-create: alpine-edge: tools/lxc_create.c: main: 331 Failed to create container alpine-edge\r\n```\r\n\r\nMy intro to LXC has been a disaster. Should i be using lxc2? I didn't see that available for Ubuntu 18 LTS which I chose thinking it was 'stable'."}}
{"actor":{"display_login":"krbvroc1"}}