Hibernate and file systems issue

Hello,

If I initiate hibernate either from the menu or by running

systemctl hibernate

after the Tumbleweed wakes ups it does not have all the file systems mounted. I found it because I started having issues with apache2 which started reporting that /srv/www/htdocs cannot be found.

After a fresh start:


Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G  9.9M  3.9G   1% /run
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda2       236G  8.9G  227G   4% /
tmpfs           3.9G  8.0K  3.9G   1% /tmp
/dev/sda2       236G  8.9G  227G   4% /boot/grub2/i386-pc
/dev/sda2       236G  8.9G  227G   4% /boot/grub2/x86_64-efi
/dev/sda2       236G  8.9G  227G   4% /opt
/dev/sda2       236G  8.9G  227G   4% /home
/dev/sda2       236G  8.9G  227G   4% /srv
/dev/sda2       236G  8.9G  227G   4% /root
/dev/sda2       236G  8.9G  227G   4% /var
/dev/sda2       236G  8.9G  227G   4% /.snapshots
/dev/sda2       236G  8.9G  227G   4% /usr/local
/dev/sda1       511M   74M  438M  15% /boot/efi
tmpfs           785M   16K  785M   1% /run/user/1000

After hibernate:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G   18M  3.9G   1% /run
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda2       236G  8.9G  227G   4% /
tmpfs           3.9G  8.0K  3.9G   1% /tmp
/dev/sda2       236G  8.9G  227G   4% /var
/dev/sda2       236G  8.9G  227G   4% /home
tmpfs           785M   16K  785M   1% /run/user/1000

Certainly, running

sudo mount -a

fixes the problem however I would like the OS to take care of it. I do not think the issue is related to the hardware configuration.

This behavior is on my physical machine. In a VirtualBox the Tumbleweed either crashes when entering my password after waking up or it starts like a fresh boot.

The OS’s on both machines are with latest updates applied.

While the Tumbleweed in the VM may not be so important to me I would like to have a guaranteed and correct state after hibernate on my hardware machine.

Any ideas how to fix it?

Thank you and have a good day.

When the system wakes up from hibernation, everything should be mounted. That’s because hibernation makes a memory record of the system state, and wake up should recover that state.

There was a bug, a while back, where systemd mount units would unmount some file systems or “btrfs” subvolumes. I’m guessing that might be happening to you.

Personally, I don’t use “btrfs”. So I don’t have any experience that might help.

This was a recurring problem around February-March, I described it here: https://forums.opensuse.org/showthread.php/539125-TW-after-update-to-20200211-My-user-hard-drive-partitions-do-not-get-mounted-at-boot-any-longer?p=2928735#post2928735

Except, I don’t recall seeing the issue after resuming from hibernation, but from cold start, every once in a while.

Things to do:

Mind you this workaround might help but might be a different issue. I guess the journal can give you clues.

Thank you very much for your replies and help.

It looks like the problem is related to btrfs. I’ve never used it before and decided to give it a try. I will switch to ext4 which I am more familiar with.

It is very clear it has something to do with Btrfs. All the Btrfs subvolumes are missing and all others are there.