"umount -a" breaks snap cgroup's

Kernels & Hardware, configuring network, installing services

"umount -a" breaks snap cgroup's

Postby bester69 » 2020-03-19 15:59

Hi,
When I apply "umount -a" and next "mount -a", I lose all cgroup mounts, and snap's stop working :o


here, its the difference between before and after applying umount/mount -a.:

mount|grep sys > before
umount -a && mount -a
mount|grep sys > after

kompare after before
Image

snap list
Name Version Rev Tracking Publisher Notes
bitwarden 23 stable bitwarden✓ broken
chromium 1043 candidate/… canonical✓ broken
chromium-ffmpeg 15 stable canonical✓ broken
core 16-2.43.3 8689 stable canonical✓ core
core18 1668 stable canonical✓ broken
drive 22 stable fireeye broken
gnome-3-28-1804 116 stable canonical✓ broken
gtk-common-themes 1440 stable canonical✓ broken
hello-world 29 stable canonical✓ devmode,broken
john-the-ripper 297 stable claudioandre-br broken
kde-frameworks-5-core18 32 stable kde✓ broken
kde-frameworks-5-qt-5-14-core18 3 stable kde✓ broken
okular 90 stable kde✓ broken
opera 67 stable opera-software✓ broken
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1555
Joined: 2015-04-02 13:15

Re: "umount -a" breaks snap cgroup's

Postby Head_on_a_Stick » 2020-03-19 16:21

This behaviour is expected, the two commands act differently:
umount(8) wrote: -a, --all
All of the filesystems described in /proc/self/mountinfo (or in deprecated /etc/mtab) are unmounted, except the proc, devfs, devpts, sysfs, rpc_pipefs and nfsd filesystems.

mount(8) wrote: -a, --all
Mount all filesystems (of the given types) mentioned in fstab (except for those whose line contains the noauto keyword).

Why are you using mount(8) & umount(8) like that? What are you trying to achieve by running those commands?
User avatar
Head_on_a_Stick
 
Posts: 11581
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: "umount -a" breaks snap cgroup's

Postby bester69 » 2020-03-19 16:44

Head_on_a_Stick wrote:This behaviour is expected, the two commands act differently:
umount(8) wrote: -a, --all
All of the filesystems described in /proc/self/mountinfo (or in deprecated /etc/mtab) are unmounted, except the proc, devfs, devpts, sysfs, rpc_pipefs and nfsd filesystems.

mount(8) wrote: -a, --all
Mount all filesystems (of the given types) mentioned in fstab (except for those whose line contains the noauto keyword).

Why are you using mount(8) & umount(8) like that? What are you trying to achieve by running those commands?


I get use to use umount -a to quickly dismount all and mount -a to mount back all.. (didnt know they were differents :shock: )
So how can I get back to mount all cgroups: "Cgroup v1 mount" without having to reboot, is it possible? ..
>> Ive seen these are mounts systemd make in boot

seeking on internet, Ive seen this kind of solution, buut I dont know how to procced.
https://unix.stackexchange.com/question ... the-system

For lxc in Debian Wheezy I use in /etc/fstab:

cgroup /sys/fs/cgroup cgroup defaults,blkio,net_cls,freezer,devices,cpuacct,cpu,cpuset,memory,clone_children 0 0
In /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory,namespace"
(& don't forget to run update-grub)



Thanks
Last edited by bester69 on 2020-03-19 16:48, edited 1 time in total.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1555
Joined: 2015-04-02 13:15

Re: "umount -a" breaks snap cgroup's

Postby Head_on_a_Stick » 2020-03-19 16:48

bester69 wrote:I get use to use umount -a to quickly dismount all and mount -a to mount back all

I wrote:Why are you using mount(8) & umount(8) like that? What are you trying to achieve by running those commands?

This sounds like an XY problem to me.
User avatar
Head_on_a_Stick
 
Posts: 11581
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: "umount -a" breaks snap cgroup's

Postby bester69 » 2020-03-19 17:11

Head_on_a_Stick wrote:
bester69 wrote:I get use to use umount -a to quickly dismount all and mount -a to mount back all

I wrote:Why are you using mount(8) & umount(8) like that? What are you trying to achieve by running those commands?

This sounds like an XY problem to me.


Yep!, that looks like an Organic Portal answer to me (its not the first time)..

Its just very curious because non OP have the ability to feel energy's people from other side of the screens since minit two of conversation.. for example, pylkko since the beggining felt very nice and friendly, Steve've always felt very kind and polite..
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1555
Joined: 2015-04-02 13:15


Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable