Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upVM frequently doesn't go beyond yellow (=transient) state when private storage contains many files. #2583
Comments
andrewdavidwong
added
bug
C: core
labels
Jan 15, 2017
andrewdavidwong
added this to the Release 3.2 updates milestone
Jan 15, 2017
marmarek
self-assigned this
Feb 27, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Feb 27, 2017
Member
The bug is that fsck -f is called at each startup. So even if the filesystem is clean, check is forced...
|
The bug is that |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mycase
Feb 27, 2017
The non-deterministic aspect that I mentioned is exemplified by the following output of sudo journalctl | grep 'resize2fs' on an AppVM (presumably localhost below), with underlying template desktempl24:
Feb 10 01:15:22 desktempl24 mount-dirs.sh[308]: Private device size management: resize2fs /dev/xvdb failed:
Feb 10 01:15:22 desktempl24 mount-dirs.sh[308]: resize2fs 1.42.13 (17-May-2015)
Feb 10 01:15:22 desktempl24 mount-dirs.sh[308]: Private device size management: resize2fs of /dev/xvdb succeeded
Feb 19 22:25:11 localhost mount-dirs.sh[311]: Private device size management: resize2fs of /dev/xvdb succeeded
Feb 23 16:38:51 desktempl24 mount-dirs.sh[288]: Private device size management: resize2fs /dev/xvdb failed:
Feb 23 16:38:51 desktempl24 mount-dirs.sh[288]: resize2fs 1.42.13 (17-May-2015)
Feb 23 16:38:51 desktempl24 mount-dirs.sh[288]: Private device size management: resize2fs of /dev/xvdb succeeded
Feb 23 18:06:20 localhost mount-dirs.sh[329]: Private device size management: resize2fs /dev/xvdb failed:
Feb 23 18:06:20 localhost mount-dirs.sh[329]: resize2fs 1.42.13 (17-May-2015)
Feb 23 18:06:22 localhost mount-dirs.sh[329]: Private device size management: resize2fs of /dev/xvdb succeeded
Sometimes resize2fs immediately succeeds, like at Feb 19 22:25:11, sometimes it fails first, like at Feb 10 01:15:22 . I don't know if these entries were all generated at VM startup. (either AppVM or TemplVM).
mycase
commented
Feb 27, 2017
•
|
The non-deterministic aspect that I mentioned is exemplified by the following output of
Sometimes resize2fs immediately succeeds, like at Feb 19 22:25:11, sometimes it fails first, like at Feb 10 01:15:22 . I don't know if these entries were all generated at VM startup. (either AppVM or TemplVM). |
mycase commentedJan 15, 2017
•
edited
Edited 1 time
-
mycase
edited Jan 15, 2017 (most recent)
Qubes OS version:
R3.2
Affected TemplateVMs:
fedora-24, probably also fedora-23
Expected behavior:
Actual behavior:
-- small size: green
-- large size: yellow
fsck.ext4performed on the private storage:running
sudo journalctl -b | grep dirsproduces, for a small-sized private storage VM:In case of a VM with large private storage, note the timestamps:
The attempt at marking the private storage clean (which runs
fsck.ext4) takes almost 5 minutes in this specific case: more than the 60 seconds timeout inqvm-start, which leaves the VM State symbol dangling in a yellow state. If however one waits for thefsckto complete, the VM is usable. The irritating thing is that at the next startup, it will often runfsckagain. It would seem therefore that the shutdown procedure frequently leaves the device in a state that resize2fs considers dirty.Steps to reproduce the behavior:
General notes:
sys-firewall and sys-net (running fedora-23) also frequently run
fsckon /rw at startup.The yellow-State-for-large-storage phenomenon only showed up on my computer today, although:
The e2fsck phenomenon seems to have been present for some time already. It may or may not be a feature.
I recently added a large number of files (200000+) which presumably made the
fsckslower.I did a
dnf updaterecently, which may or may not have madefsckslower.Related issues: