[an error occurred while processing this directive] >>> Back to post index <<<

2014/03/20 Btrfs Tips: ACPI S3 Sleep aka Suspend And Btrfs Scrub
π 2014-03-20 01:01 in Btrfs, Linux

Btrfs and S3 Sleep (Suspend)

As of kernel 3.14, btrfs doesn't do the right things to freeze and allow a laptop or machine to go to ACPI sleep.

This is discussed in more details in this thread: http://comments.gmane.org/gmane.comp.file-systems.btrfs/33106

For now, I am using this crude workaround. I added this in /etc/acpi/sleep.sh:
awk '/btrfs/ { print $1 }' /proc/mounts | sort -u | while read fs; do btrfs scrub cancel $fs; done

This could easily be improved by running scrub status, pausing scrubs that are running instead of cancelling them, and resuming them after coming back from sleep.

[an error occurred while processing this directive] >>> Back to post index <<<

Contact Email