Hello.
CPU load goes up to 60% if I forget to unmount the shared folder.
Qubes OS 4.2.1
I’m using two cubes:
- samba-qube (Shared folder on this cube).
- mount-qube (I mount a shared folder to this cube).
Since there is no network connection on these cubes, I use qubes.ConnectTCP (Opening a single TCP port to other network-isolated qube):
I’m running samba-qube.
I’m running mount-qube.
When you enable mount-qube, it mounts:
[user@mount-qube #]$ qvm-connect-tcp ::445
[user@mount-qube #]$ qvm-connect-tcp ::139
[user@mount-qube #]$ sudo mount -t cifs -o username=user,password=password //127.0.0.1/shared /home/user/samba/shared
Everything works great. But sometimes I forget to unmount the shared folder:
[user@mount-qube #]$ sudo umount /home/user/samba/shared
And I turn off samba-qube, it starts again automatically, as a result, the samba-qube CPU is loaded to 60% and in the mount-qube console I see a thousand lines:
2024/05/03 03:58:05 socat[640] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:05 socat[670] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[687] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[701] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[717] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[753] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[780] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[823] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[845] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:58:06 socat[890] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:33 socat[19981] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:33 socat[19994] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:33 socat[20007] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:33 socat[20020] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:33 socat[20033] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:34 socat[20046] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:34 socat[20059] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:34 socat[20072] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:34 socat[20085] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
2024/05/03 03:59:34 socat[20098] E connect(5, AF=2 127.0.0.1:445, 16): Connection refused
All this happens for about 2-3 minutes, after which the directory is mounted and everything becomes fine.
My question: How to automatically unmount a shared folder in mount-qube when samba-qube is shut down?
P.S. I would be happy to hear other options for resolving this issue. Thank you.