I create centos7 container lxc launch images:centos/7 test
, and create drbd device, I want to pass the block device to the container,
so lxc config device add test drbd2 unix-block source=/dev/drbd2
, it will be auto add to the /dev in the container. And it shows in /dev, but why doesn’t it show in lsblk? how to config to make the device could show in the lsblk
lsblk
looks at /sys which isn’t container aware, so I don’t know of a way to make that show up properly.
thanks~