Requirement: Create two trusty containers each on its own disk so I could setup a 2-node mongodb replica set. My idea was to create two LVM volume groups so that each container owns its own volume group (and disks associated).
sgireddy@sbox02:/var/lib$ lxc config show
config:
images.remote_cache_expiry: "10"
storage.lvm_thinpool_name: thinpool1
storage.lvm_vg_name: vgpool1
Then I was able to create a container on this new volume group.
Now I wan to switch over to my second volume group, but lxc is not letting me to do do that.
sgireddy@sbox02:/var/lib$ lxc config set storage.lvm_vg_name vgpool2
error: Can not change LVM config. Images or containers are still using LVs: [db01 ***]
Can somebody please suggest a solution or workaround?