Bug ID 1099899
Summary btrfs maintenance makes OS unresponsive
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.0
Hardware Other
OS Other
Status NEW
Severity Critical
Priority P5 - None
Component Basesystem
Assignee bnc-team-screening@forge.provo.novell.com
Reporter nettezzaumanaa@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Hello,

reporting for leap this reported also as this one #1063638

on fast ssd it takes 6+ minutes, system is mostly unresponsive

# journalctl -b 0 -u btrfs\*
-- Logs begin at Mon 2018-07-02 20:55:02 CEST, end at Mon 2018-07-02 21:11:01
CEST. --
Jul 02 20:55:16 linux-1b6m systemd[1]: Started Scrub btrfs filesystem, verify
block checksums.
Jul 02 20:55:16 linux-1b6m systemd[1]: Started Watch
/etc/sysconfig/btrfsmaintenance.
Jul 02 20:55:16 linux-1b6m systemd[1]: Started Balance block groups on a btrfs
filesystem.
Jul 02 20:55:16 linux-1b6m systemd[1]: Starting Update cron periods from
/etc/sysconfig/btrfsmaintenance...
Jul 02 20:55:16 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
script btrfs-scrub.sh for uninstall
Jul 02 20:55:16 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
script btrfs-defrag.sh for uninstall
Jul 02 20:55:16 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
script btrfs-balance.sh for uninstall
Jul 02 20:55:16 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
script btrfs-trim.sh for uninstall
Jul 02 20:55:16 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
timer btrfs-scrub for monthly
Jul 02 20:55:16 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
timer btrfs-defrag for none
Jul 02 20:55:17 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
timer btrfs-balance for weekly
Jul 02 20:55:17 linux-1b6m systemd[1]: Started Balance block groups on a btrfs
filesystem.
Jul 02 20:55:17 linux-1b6m btrfsmaintenance-refresh-cron.sh[1678]: Refresh
timer btrfs-trim for none
Jul 02 20:55:17 linux-1b6m btrfs-balance.sh[1888]: Before balance of /
Jul 02 20:55:17 linux-1b6m btrfs-balance.sh[1888]: Data, single:
total=15.01GiB, used=12.50GiB
Jul 02 20:55:17 linux-1b6m btrfs-balance.sh[1888]: System, single:
total=32.00MiB, used=16.00KiB
Jul 02 20:55:17 linux-1b6m btrfs-balance.sh[1888]: Metadata, single:
total=1.01GiB, used=745.58MiB
Jul 02 20:55:17 linux-1b6m btrfs-balance.sh[1888]: GlobalReserve, single:
total=44.00MiB, used=0.00B
Jul 02 20:55:17 linux-1b6m btrfs-balance.sh[1888]: Filesystem              Size
 Used Avail Use% Mounted on
Jul 02 20:55:17 linux-1b6m btrfs-balance.sh[1888]: /dev/mapper/rpool-root   33G
  15G   18G  45% /
Jul 02 20:55:17 linux-1b6m systemd[1]: Started Update cron periods from
/etc/sysconfig/btrfsmaintenance.
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 0 out
of 22 chunks
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x1,
state 0x0, force is off
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]:   DATA (flags 0x2):
balancing, usage=1
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 0 out
of 22 chunks
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x1,
state 0x0, force is off
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]:   DATA (flags 0x2):
balancing, usage=5
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 0 out
of 22 chunks
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x1,
state 0x0, force is off
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]:   DATA (flags 0x2):
balancing, usage=10
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 0 out
of 22 chunks
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x1,
state 0x0, force is off
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]:   DATA (flags 0x2):
balancing, usage=20
Jul 02 20:55:19 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 0 out
of 22 chunks
Jul 02 20:56:47 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x1,
state 0x0, force is off
Jul 02 20:56:47 linux-1b6m btrfs-balance.sh[1888]:   DATA (flags 0x2):
balancing, usage=30
Jul 02 20:56:47 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 1 out
of 22 chunks
Jul 02 20:57:29 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x1,
state 0x0, force is off
Jul 02 20:57:29 linux-1b6m btrfs-balance.sh[1888]:   DATA (flags 0x2):
balancing, usage=40
Jul 02 20:57:29 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 1 out
of 22 chunks
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x1,
state 0x0, force is off
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]:   DATA (flags 0x2):
balancing, usage=50
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 1 out
of 22 chunks
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 0 out
of 22 chunks
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x6,
state 0x0, force is off
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]:   METADATA (flags 0x2):
balancing, usage=1
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]:   SYSTEM (flags 0x2):
balancing, usage=1
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 1 out
of 22 chunks
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x6,
state 0x0, force is off
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]:   METADATA (flags 0x2):
balancing, usage=5
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]:   SYSTEM (flags 0x2):
balancing, usage=5
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 1 out
of 22 chunks
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x6,
state 0x0, force is off
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]:   METADATA (flags 0x2):
balancing, usage=10
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]:   SYSTEM (flags 0x2):
balancing, usage=10
Jul 02 20:58:10 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 1 out
of 22 chunks
Jul 02 20:58:11 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x6,
state 0x0, force is off
Jul 02 20:58:11 linux-1b6m btrfs-balance.sh[1888]:   METADATA (flags 0x2):
balancing, usage=20
Jul 02 20:58:11 linux-1b6m btrfs-balance.sh[1888]:   SYSTEM (flags 0x2):
balancing, usage=20
Jul 02 20:58:11 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 1 out
of 22 chunks
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: Dumping filters: flags 0x6,
state 0x0, force is off
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]:   METADATA (flags 0x2):
balancing, usage=30
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]:   SYSTEM (flags 0x2):
balancing, usage=30
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: Done, had to relocate 2 out
of 22 chunks
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: After balance of /
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: Data, single:
total=15.01GiB, used=12.50GiB
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: System, single:
total=32.00MiB, used=16.00KiB
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: Metadata, single:
total=1.01GiB, used=746.77MiB
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: GlobalReserve, single:
total=44.50MiB, used=0.00B
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: Filesystem              Size
 Used Avail Use% Mounted on
Jul 02 21:02:26 linux-1b6m btrfs-balance.sh[1888]: /dev/mapper/rpool-root   33G
  15G   18G  45% /




also if you change the timer settings in

/etc/systemd/system/btrfs-balance.d/schedule.conf the interval to something
else (eg you comment out OnCalendar=weekly) it enigmatically restores this
setting on reboot ..

btrfs maintenance is simply production killer .. needs to be removed .. in
10/10 times here it causes on server with mechanical disk to switchover HAed
application from active to standby node

regards, daniel


You are receiving this mail because: