Okay, loading the SQL dump failed the first time - so, to eliminate BTRFS as a confounding factor, I formatted the drive to XFS and attempted to load the SQL dump again into 10.7.3; it ran for several hours before hanging in an NON KILLABLE state (did not respond to repeated kill -9 calls), while emiting the following kernel error:
INFO: task mysql:12211 blocked for more than 1208 seconds.
Not tainted 5.16.0-5-cloud-amd64 #1 Debian 5.16.14-1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:mysql state
stack: 0 pid:12211 ppid: 5267 flags:0x0000400
Call Trace:
<TASK>
__schedule+0x30a/0x9f0
? preempt_count_add+0x68/0xa0
schedule+0x4e/0xc0
io_schedule+0x47/0x70
blk_mq_get_tag+0x11a/0x2b0
? do_wait_intr_irq+0xa0/0xa0
__blk_mq_alloc_requests+0x175/0x2d0
blk_mq_submit_bio+0x1c9/0x710
submit_bio_noacct+0x257/0x2a0
btrfs_map_bio+0x18a/0x4a0 [btrfs]
btrfs_submit_data_bio+0x104/0x1e0 [btrfs]
submit_one_bio+0x44/0x70 [btrfs]
extent_readahead+0x3c4/0x3f0 [btrfs]
? __mod_memcg_lruvec_state+0x6e/0xc0
? mod_lruvec_state+0x17/0x30
? workingset_refault+0x152/0x2c0
read_pages+0x84/0x240
page_cache_ra_unbounded+0x1ab/0x260
filemap_get_pages+0xec/0x760
filemap_read+0xbd/0x350
new_sync_read+0x118/0x1a0
vfs_read+0xf1/0x190
ksys_read+0x5f/0xe0
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fe06441410e
RSP: 002b:00007ffe50654118 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007fe06441410e
RDX: 0000000000fff000 RSI: 00007fe06193b29f RDI: 0000000000000004
RBP: 00007ffe50654170 R08: 0000000000fff000 R09: 00007fe062bba700
R10: 0000000000ffeef1 R11: 0000000000000246 R12: 0000000000fff000
R13: 00007fe063af56a8 R14: 0000000000000000 R15: 00007fe06193b028
</TASK>
Please note that while /var/lib/mysql was formatted as XFS, the volume which housed the SQL dump (which I imported via source /path/to/dump.sql) was btrfs, so this apparently happened while reading the dump, not while saving it to the DB data directory.
So I formatted the drive to XFS again, reinstalled the DB, and re-imported the dump, this time with the following settings enabled:
innodb_change_buffering=none
innodb_flush_method=fsync
innodb_use_native_aio=OFF
This permitted the dump to import successfully; as far as I can tell, the data loaded correctly, although I still need to run CHECK TABLE on the database, but as there are nearly 700 tables that will take some time.
Okay, loading the SQL dump failed the first time - so, to eliminate BTRFS as a confounding factor, I formatted the drive to XFS and attempted to load the SQL dump again into 10.7.3; it ran for several hours before hanging in an NON KILLABLE state (did not respond to repeated kill -9 calls), while emiting the following kernel error:
INFO: task mysql:12211 blocked for more than 1208 seconds.
stack: 0 pid:12211 ppid: 5267 flags:0x0000400
Not tainted 5.16.0-5-cloud-amd64 #1 Debian 5.16.14-1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:mysql state
Call Trace:
<TASK>
__schedule+0x30a/0x9f0
? preempt_count_add+0x68/0xa0
schedule+0x4e/0xc0
io_schedule+0x47/0x70
blk_mq_get_tag+0x11a/0x2b0
? do_wait_intr_irq+0xa0/0xa0
__blk_mq_alloc_requests+0x175/0x2d0
blk_mq_submit_bio+0x1c9/0x710
submit_bio_noacct+0x257/0x2a0
btrfs_map_bio+0x18a/0x4a0 [btrfs]
btrfs_submit_data_bio+0x104/0x1e0 [btrfs]
submit_one_bio+0x44/0x70 [btrfs]
extent_readahead+0x3c4/0x3f0 [btrfs]
? __mod_memcg_lruvec_state+0x6e/0xc0
? mod_lruvec_state+0x17/0x30
? workingset_refault+0x152/0x2c0
read_pages+0x84/0x240
page_cache_ra_unbounded+0x1ab/0x260
filemap_get_pages+0xec/0x760
filemap_read+0xbd/0x350
new_sync_read+0x118/0x1a0
vfs_read+0xf1/0x190
ksys_read+0x5f/0xe0
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fe06441410e
RSP: 002b:00007ffe50654118 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007fe06441410e
RDX: 0000000000fff000 RSI: 00007fe06193b29f RDI: 0000000000000004
RBP: 00007ffe50654170 R08: 0000000000fff000 R09: 00007fe062bba700
R10: 0000000000ffeef1 R11: 0000000000000246 R12: 0000000000fff000
R13: 00007fe063af56a8 R14: 0000000000000000 R15: 00007fe06193b028
</TASK>
Please note that while /var/lib/mysql was formatted as XFS, the volume which housed the SQL dump (which I imported via source /path/to/dump.sql) was btrfs, so this apparently happened while reading the dump, not while saving it to the DB data directory.
So I formatted the drive to XFS again, reinstalled the DB, and re-imported the dump, this time with the following settings enabled:
innodb_change_buffering=none
innodb_flush_method=fsync
innodb_use_native_aio=OFF
This permitted the dump to import successfully; as far as I can tell, the data loaded correctly, although I still need to run CHECK TABLE on the database, but as there are nearly 700 tables that will take some time.