Re: lvm commands hanging when run from inside a kubernetes pod

Demi Marie Obenour <[email protected]>
Newsgroups gmane.linux.lvm.general
Message-ID <Yp2mZGmhFD23XQcL@itl-email>
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@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:
> https://pastebin.com/raw/VFyXLNaC

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.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmKdpmQACgkQsoi1X/+c
IsGMHxAAiGiFoCQ1dQWdttQCR/SryrAsEYc3hw9TsKVyVS0QIN63iysUEj+MkoSw
qAJ5cY5IW9CPQn0YmeJWEfM7ocwm2cVfAdQ8mMm4EOG9d8BgBjlIs/PDZnH41iso
lrsEOjeF6fo4woW2z3yNU1mvemgZcUb18XC6CH5XtmdbWkmhQXMffYRJBGPM56vH
nXlvNJ6X91yQOSTowketq3egycb8E1QrnUaPpgEBwVbsXmDE965GQ5EuDprpd0PV
Xl71VeppxWWyN9ehm72JPAR0027guh6nhs4ZIIwF+j+dYt1pYgkqpV94h1nkSdbH
kLS+ztS3/5L5z44eop08hLiTiwnZ3uuhYPL6dGTyDNJ2SwoaFJDcCLVOL6OnMgXB
LZEGIu34ZTL+81F0v57h0b316/bdiQ8mWYa/OdPkOp1Nyo5OOYl6VJKFaU5573F0
PCdHku8jsDHTKcsJKLh6hxA/zzc8Izi8rnnW9dgy1RnwV8Lx5VCdLOt1NlmnKouw
Oah6/YboZhkdPooEEgjr8MldFCl3nIFmP8NoSoboGGt1kiejdf6pJiJ9prFfID8I
NhhTB122zBQzwzeswkn+67qhVhd7BN9/TG4TQsH/JIPKyP9C3qHaiYIBGHpWUyl2
mjcY8gl2bu2fLGSXpqU9w3NoQ7/CUjQoQw0u9RfTr4o+PSE4QYg=
=7Hj7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.