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 upSystem does not cleanly shut down when system drive is an external USB HDD #2245
Comments
andrewdavidwong
added
bug
C: other
labels
Aug 13, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Aug 19, 2016
Member
Update:
On 2016-08-19 06:18, johnyjukya@[...].org wrote:
This problem persists in 3.2rc2.
(And I get 0 errors on the same USB drive under Tails. When I can find
the SATA power connector around here somewhere, I'll try moving the
drive
direct onto the SATA bus.)I think the problem may be that systemd has a default 90 second timeout
on jobs, including unmounting root.On an external USB drive, due to slower transfer times, the shutdown
process of all the VM's, killing processes, flushing buffers, etc.,
happens to take long enough that a clean unmount of the drive doesn't get
a chance to occur, leaned to a corrupted filesystem.I am very new to systemd, but I believe the cause of my corruption is that
there may be a typo bug in one of the directives for systemd's
umount.target."systemctl show umount.target" reveals:
JobTimeoutUSec=0
"man systemd.directives" and "man system.unit" do not show any such
directive; however, they do show "JobTimeoutSec" which I believe was
likely the intended directive, and which would set no limit on waiting for
that shutdown filesystem unmount, and I believe would prevent the
corruption I was seeing.A zgrep of all the man pages shows no indication of JobTimeoutUSec being a
legit property.Cheers.
JJ
|
Update: On 2016-08-19 06:18, johnyjukya@[...].org wrote:
|
andrewdavidwong commentedAug 13, 2016
On 2016-08-12 15:31, johnyjukya@[...].org wrote: