I'm trying to pass through an existing LV to a container. I believe this means I need to use an image based, storage backed mountpoint as described here, which mentions a special syntax for creating a new LV, but there is no mention of the option to mount an existing LV.
I have created a new 10gb LV, formatted with ext4, for testing this configuration called
When I try to mount this using pct the output is:
If I rescan the volumes attached to vm 104:
The size is updated to 0T
When i run the container:
The output of
Is it possible to pass an existing LV through to a container like this? If so, how?
I have created a new 10gb LV, formatted with ext4, for testing this configuration called
lvol1
, which exists on the thinDataLV
thinpool, on the bigData
VG. When I try to mount this using pct the output is:
Code:
pct set 104 -mp1 bigData-thinpool:lvol1,mp=/mnt/test
Could not rescan volume size - unable to parse lvm volume name 'lvol1'
If I rescan the volumes attached to vm 104:
Code:
pct rescan --vmid 104
rescan volumes...
CT 104: updated volume size of 'bigData-thinpool:lvol1' in config.
Code:
mp1: bigData-thinpool:lvol1,mp=/mnt/test,size=0T
When i run the container:
Code:
lxc-start -n 104 -F
lxc-start: 104: ../src/lxc/conf.c: run_buffer: 322 Script exited with status 9
lxc-start: 104: ../src/lxc/start.c: lxc_init: 844 Failed to run lxc.hook.pre-start for container "104"
lxc-start: 104: ../src/lxc/start.c: __lxc_start: 2027 Failed to initialize container "104"
lxc-start: 104: ../src/lxc/tools/lxc_start.c: main: 306 The container failed to start
The output of
lvs
is
Code:
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvol1 bigData Vwi-a-tz-- 10.00g thinDataLV 0.73
thinDataLV bigData twi-aotz-- 3.61t 6.67 0.91
Is it possible to pass an existing LV through to a container like this? If so, how?