[lxc-users] mount 2nd LV in a LVM container
Serge Hallyn
serge.hallyn at ubuntu.com
Thu Feb 6 17:21:03 UTC 2014
Quoting Flo (florian.engelmann at gmail.com):
> Hi Serge,
>
> any update on this? Are you able to mount 2nd LVM volumes in a container?
Just tried. I had an old lvm-based container around, so created and
formatted a new lv:
sudo lvcreate -L 20G -n c-saucy-disk2 vg0
sudo mkfs.ext4 /dev/vg0/c-saucy-disk2
and added the following to /var/lib/lxc/c-saucy/fstab:
/dev/vg0/c-saucy-disk2 mnt ext4 defaults 0 0
Start just fine, disk was mounted, i was able to create a file
there, shut down the container, and mount /dev/vg0/c-saucy-disk2
to confirm the new file was there.
-serge
More information about the lxc-users
mailing list