[linux-lvm] lvm commands hanging when run from inside a kubernetes pod
Demi Marie Obenour
demi at invisiblethingslab.com
Mon Jun 6 07:01:51 UTC 2022
On Mon, Jun 06, 2022 at 11:19:47AM +0530, Abhishek Agarwal wrote:
> 1. Yes, use_lvmetad is 0, and its systemd units for it are stopped/disabled.
> 2. Yes, everything on the host machine i.e(/proc, /sys etc) are getting
> mounted on the pod.
> *ubuntu at ip-172-31-89-47*:*~*$ kubectl exec -it openebs-lvm-node-v6jrb -c
> openebs-lvm-plugin -n kube-system -- sh
> # ls
> bin boot dev etc home host lib lib32 lib64 libx32 media mnt opt
> plugin proc root run sbin srv sys tmp usr var
> # cd /host
> # ls
> bin boot dev etc home lib lib32 lib64 libx32 lost+found media mnt
> opt proc root run sbin snap srv sys tmp usr var
> 3. The detail output of `strace -f -ttt` command:
I suggest bind-mounting the host’s D-Bus socket into the container and
using systemd’s D-Bus API to run the LVM commands on the host. This
will avoid the problems you are having.
Demi Marie Obenour (she/her/hers)
Invisible Things Lab
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the linux-lvm