[MDEV-28772] Mariabackup locks database for minutes since 10.8.3 Created: 2022-06-08 Updated: 2023-06-30 Resolved: 2022-10-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | mariabackup |
| Affects Version/s: | 10.8.3 |
| Fix Version/s: | 10.8.6, 10.9.4, 10.10.2, 10.11.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vicente Rossello Jaume | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | regression | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
We just upgraded mariadb from 10.7.3 to 10.8.3 and now backup locks the whole database for minutes, before the change the lock was only 3 or 4 seconds (no hardware change, beefy server). This is the command we use for backup:
With 10.8.3 the lock block (executed at the end) is much slower now:
With 10.7.3 the whole lock block was just 3 seconds. Log sample is:
We tried purging all binary logs at the beginning with no luck. Where can we look at? |
| Comments |
| Comment by Marko Mäkelä [ 2022-06-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The frequent log scanned up to messages were output due to the bug Note that there is no easy way to downgrade from 10.8 due to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-06-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
10.8.3 completes in about 4 minutes (this is just the lock phase), it was 4 seconds before. Log size is not a problem. The test with log-copy-interval is to reduce the logs, right? I mean, it will not have any impact on the lock speed, will it? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-06-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
We can see that the problem is caused by the binary logs, that are now much bigger than before (I don't have the numbers here). Lock duration with mariadb 10.8.3 look like these:
With 10.7.3:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Stefan May [ 2022-06-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I believe this might be the same bug as described in MDEV 28758. Some of the most up-to-date versions of mariabackup include binary logs into the backup directory, resulting in bloated backups and (depending on binlog size) massively increased lock durations. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Same happening to me. My database is being locked for 30 minutes every day, causing a huge downtime. I raised The difference is that I don't have binary logs enabled, so I don't think that's the cause for me. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
cocorossello and nunop, did you try specifying a shorter --log-copy-interval like I suggested? If an attempt to copy recently written logs is made less frequently, the backup may take a much longer time. The size of the backed up ib_logfile0 depends on how many persistent changes were made between the latest log checkpoint (at the start of the backup) and the end of the backup. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks marko I can try, but I wonder if that will just reduce the downtime from 30 minutes to a lower time, but still not "fix" the problem. I didn't have this problem with 10.5. Do you know if this is a bug, or something that we can't go around anymore? – I see there's an option "--no-backup-locks" that I wonder if I could use, even if temporarily: https://mariadb.com/kb/en/mariabackup-options/#-no-backup-locks But it says: "This option may eventually be removed. See MDEV-19753 for more information." Thank you! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ian Gilfillan [ 2022-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
You can view the archive at https://web.archive.org/web/20200809201840/https://jira.mariadb.org/browse/MDEV-19753 - this appears to refer only to a Percona Server feature, so it doesn't seem likely to help | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, it is unclear where the time is being consumed, and I am not convinced that the problem is the time needed for acquiring the locks. Since you are not using binlog, you can’t be affected by | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks marko
I'll have to postpone this test to tomorrow morning, as now would be too late to make this test (and unnecessarily cause a downtime if it happens again)
In my raised issue -
If it helps, I can provide my full logs to you, but I'd prefer if I could send it through some Private Message or email address, rather than fully public here. I can understand how "--log-copy-interval=1" would at least reduce the amount of time taken by "log scanned up to", though. But again I say, on 10.5 I can see that "log scanned up to" was once per second, yet the database wasn't locking as is now on 10.8. There were, however, a lot less "log scanned up to" from what I can see, though (not sure why there are so many now on 10.8), Thank you very much! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I will try --log-copy-interval=1 tonight as suggested. I just thoght that this interval affected only to that frequent "scanned up to..." log | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi marko I tried now running: /usr/bin/mariabackup --backup --parallel=4 --log-copy-interval=1 --target-dir=/backup/mysql/ LOADS of log scanned up to entries appearing really fast, and the backup took 1:30 minutes to run. I understand how --log-copy-interval=1 made it faster, but I don't understand how that would resolve the database locks??? And is there any cons in keeping --log-copy-interval=1 ? (why is it not the default?) Thank you very much. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I also tried that without much luck. First I tried with log-copy-interval=1, but after 70 minutes I aborted the backup because it didn't finish. Then I run with log-copy-interval=100 and the results were not good, almost 1 minute of locks. log-copy-interval=100
[00] 2022-06-27 22:16:29 Connecting to MariaDB server host: production.travelc.internal, user: onlyscripts, password: set, port: 3306, socket: /var/run/mysqld/mysqld.sock [00] 2022-06-28 01:30:36 Acquiring BACKUP LOCKS... [00] 2022-06-28 01:31:34 >> log scanned up to (3665226113706) Full backup duration: 3 hours 16 minutes no log copy interval:
[00] 2022-06-26 22:11:40 Connecting to MariaDB server host: production.travelc.internal, user: onlyscripts, password: set, port: 3306, socket: /var/run/mysqld/mysqld.sock [00] 2022-06-26 22:43:46 Acquiring BACKUP LOCKS... [00] 2022-06-26 22:43:58 Executing BACKUP STAGE END Full backup duration: 32 minutes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The purpose of the backup locks is to prevent any changes to non-InnoDB tables. mariadb-backup is only treating the InnoDB log specially; the Aria storage engine would rely on backup locks. As far as I understand, the problem here is that the steps executed while holding the backup lock are taking longer than expected or acceptable. InnoDB performs some writes also internally (for example when purging the history of committed transactions), so even when the strictest backup lock is being held, some InnoDB writes are possible. That is why we must keep copying the ib_logfile0 in the final phase. nunop, I see that your question was answered by cocorossello: Too frequent polling of the log file may be a bad idea. One size does not fit all. cocorossello, if you are enabling the binary log, to work around Alternatively, you can use the mariadb-backup executable from the 10.8.2 distribution, for executing the --backup step. Reverting mariadb-backup to 10.8.2 would also revert --log-copy-interval to its buggy meaning (counting microseconds, not milliseconds). For the --prepare step, I think that it is better to use the 10.8.3 version, because several recovery bugs were fixed since 10.8.2. I have one more possible explanation or solution. In 10.8.3, In MariaDB 10.8.3, to disable the use of O_DIRECT for the redo log, you must set innodb_flush_method to something else than O_DIRECT, O_DIRECT_NO_FSYNC, or O_DSYNC. Before I suggest that you try innodb_flush_method=fsync on both mariadbd and mariadb-backup to check if enabling the file system cache on the ib_logfile0 fixes the performance regression. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi marko Thank you for your reply. For many many years, I've been using O_DIRECT, and I never had this database lock problem up to v10.5. Only now that I moved to 10.8.3, this problem started happening. To me, everything indicates that something with 10.8 isn't behaving well, which on 10.5 was working perfectly. > It could be a good idea to execute SET GLOBAL innodb_log_file_buffering=OFF; before starting a backup and SET GLOBAL innodb_log_file_buffering=ON; after it. I suppose I can try this, when 10.8.4 is released. (although I hope --log-copy-interval=1 alleviates the issue in the meantime. Thank you. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, before | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
marko - thank you for your reply. I'm not sure what do you mean with that (sorry). Are you saying that O_DIRECT was not doing anything before 10.8 (meaning that even though I had this option enabled, it was not taking effect), or that I need to do something now to be able to accommodate this problem on 10.8.3? Sorry for the confusion. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, I mean that before | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
marko Thanks. That's clear now! In O_DIRECT should not be used when innodb_flush_log_at_trx_commit = 2 is set. I actually always had both of these enabled (O_DIRECT and "innodb_flush_log_at_trx_commit = 2"), for many years. (what is the reason that O_DIRECT should not be used when innodb_flush_log_at_trx_commit = 2 is set, btw?) I actually also just raised Thank you very much. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, that opening statement in Can you please try to test if disabling O_DIRECT on the redo log (in 10.8.3, you’d have to use innodb_flush_method=fsync) would fix the problem for you? That is, would that work as an alternative to shortening the --log-copy-interval? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-06-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I just tried using mariabackup 10.8.2 and the results were not good full docker command : echo "apt update; apt install pigz; mariabackup --backup --host="somehost.internal" --parallel=4 --stream=xbstream --target-dir /backup/dump --user ... --password ... --use-memory=12288M | pigz -p 4 > /backup/dump/mariadbbackup-2022-06-29.gz" | docker run --name mariabackup -v /services/mysql/data/mysql:/var/lib/mysql -v /opt/backups/mariadb/dump/:/backup/dump -v /services/mysql/conf:/etc/mysql/conf.d:ro --rm -i --entrypoint sh mariadb:10.8.2 [00] 2022-06-29 07:20:55 Connecting to MariaDB server host: production.travelc.internal, user: onlyscripts, password: set, port: 3306, socket: /var/run/mysqld/mysqld.sock [00] 2022-06-29 07:32:54 Acquiring BACKUP LOCKS... [00] 2022-06-29 07:33:18 Executing BACKUP STAGE END so backup full time is much better at 13 minutes (half) but lock time is 24 seconds, double than 10.8.3. Maybe I should specify log-copy-interval=1000000 to get the same log copy interval behaviour as with 10.8.3? I cannot test changing innodb_log_file_buffering as I would have to restart production server and I can't do it unplanned. Another fact is that lock backup times are more or less 2 seconds in the dev environment (just like with 10.7.3), I only get degraded lock time performance in the live server. (I disabled binary logs in the production server when this started to happen, with binary logs lock time is more than 1 minute, I haven't tested with binary logs since then) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hey I was waiting for this morning to be able to change to innodb_flush_method = fsync as that requires a restart. Then I ran /usr/bin/mariabackup --backup --parallel=4 --target-dir=/backup/mysql/ and it went fine - took just 1 minute to run everything and database wasn't locked during that period, but I suspect that because this was right after a restart, the checkpoint has already been made. I don't see the usual table renames, and not so many log scanned up to. I'll try again tomorrow and let you know, marko. Thank you | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you both. Currently it seems like the fix would be SET GLOBAL innodb_log_file_buffering=OFF during the last phase of backup. It could be done automatically by mariadb-backup itself. Let’s see how it turns out for nunop tomorrow. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
cocorossello, yes, you should try to specify --log-copy-interval=1000000 to the 10.8.2 backup, to get the 1-second copying interval that was intended. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-06-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks Marko, with 10.8.2 and --log-copy-interval=1000000 I get a 3 second lock, more or less same lock as with 10.7.3. I will try innodb_log_file_buffering patch when available. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello marko No luck... it seemed to be going very well for a while, but after 1 or 2 minutes, everything started to get locked, with: Waiting for backup lock As a reminder, I have:
I ran: It was doing those "loops" of "DDL tracking" and "log scanned up to" for a while, until it started locking all the INSERT/UPDATE queries, so I killed the process right away. Then I added --log-copy-interval=1, – Then tried to run it again, with --log-copy-interval=1 EDIT - sorry - the last time I ran was still with --log-copy-interval=1. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, thank you. Your issue does not seem to be the O_DIRECT then. It might be that thanks to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-06-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you marko. So, what do you think could be the solution for me? Continue to use --log-copy-interval=1, or eventually try SET GLOBAL innodb_log_file_buffering=OFF ? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-07-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, I think that --log-copy-interval=1 could be the right thing for you. It looks like we have to keep this ticket open until 10.8.4 is available and further experiments with SET GLOBAL innodb_log_file_buffering can be performed. mleich just told me that he is running into something similar when testing on a PMEM device (but not on "fake PMEM", that is, using mmap on a log file in /dev/shm). At the default 1-second interval, the backup could not keep up with the server. It is worth noting that back when we tested I think that the proper fix to all this trouble would be to let the server process be responsible for duplicating its log (something that is a part of MDEV-14992). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-07-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you very much for explaining, marko Yeah, I'm also interested on that MDEV-14992 (I'm watching it). Great job. Hopefully cocorossello can also find a way to resolve the situation. For now, I think I'm good, and I guess Thank you! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-07-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
We are fine at the moment. The suggested workaround of using mariabackup 10.8.2 and log-copy-interval=1000000 is enough for us at this moment | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-08-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I expect 10.8.4 and other quarterly MariaDB server releases to be out within a week or so. While I remember, I’m requesting feedback if this works in 10.8.4 when using suitable settings. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-08-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you very much marko. I have a number of changes to try, pending the 10.8.4 release. And then I'll give feedback. The only other problem I keep having for now, is the swap usage - Thanks again! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-08-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
marko
Then the idea is to experiment MariaBackup with these, and see if all is good. I can try to experiment also removing the --log-copy-interval=1, with innodb_log_file_buffering = ON | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-08-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Backup ran OK with the configurations above, with --log-copy-interval=1 Tomorrow I'm going to run it manually, without --log-copy-interval=1 as planned. I see also that | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-08-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi marko Ran: /usr/bin/mariabackup --backup --parallel=4 --target-dir=/backup/mysql/ And eventually started getting many queries locked with Waiting for backup lock, so I killed it. Then I ran: SET GLOBAL innodb_log_file_buffering=OFF and confirmed the variable value changed. Tried again: /usr/bin/mariabackup --backup --parallel=4 --target-dir=/backup/mysql/ And eventually started getting many queries locked with Waiting for backup lock, again, so I killed it. So, unfortunately, innodb_log_file_buffering=OFF doesn't seem to do it. Or do you mean I need to leave innodb_log_file_buffering=OFF for 1 day after a successful backup, to be able to do the test properly? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-08-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi marko One full day of innodb_log_file_buffering=OFF since last successful backup. I ran the backup again with the default --log-copy-interval, and got Waiting for backup lock. MariaBackup runs fine for a while, always, until it reaches a log line that says: Waiting for log copy thread to read lsn 10609231931267 Until then, it wasn't locking. I notice the same behavior always. Once that log line appears, the locks start happening. If I use --log-copy-interval=1, I only notice the Waiting for backup lock at the very end of the backup, but it's so fast that it doesn't affect anyone on the website. – Anyway – I'll go ahead and keep --log-copy-interval=1, and the default value for innodb_log_file_buffering. Thank you. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, thank you. Your findings are in line with what I wrote on 2022-06-28. Because of the "One size does not fit all" observation, I do not think that we should change any default parameters. Because of recovery regressions ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-09-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you marko, and no problem. I understand. And great to know that 10.8.5 is coming this week! I guess the only problem outstanding that I have is the swap issue described in Thanks very much! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-09-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MariaDB 10.8.5 doesn't solve this; I've saw this ticket after, so I've created | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-09-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
acs-ferreira - have you tried to add --log-copy-interval=1 to the command? It resolved the issue for me, and sped up the backup time as well. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-09-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ive tried it. It blocks here :
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-09-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For me too, but it's for just 1 second or so. No queries timeout and users don't notice. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-09-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I've stopped the process after ~20sec of locking. We're talking about a nvme disk + 256Gb RAM on a 8Gb dataset (this is a test server). This has to be a bug/major regression somewhere as the same dataset on a 10.4 server has no such behavior. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-09-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ah ok, that's very strange then! Yeah, I was on 10.5 before, also in an NVMe with 128GB RAM and never had a problem. I also started getting these locks (and the website down for several minutes due to everything locking), but adding --log-copy-interval=1 resolved it for me. One thing I know is that MariaDB says that:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-09-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Have you tried using mariabackup from 10.8.2 and --log-copy-interval=1000000 ? For me this worked. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
acs-ferreira, in the recently released 10.8.5, would SET GLOBAL innodb_log_file_buffering=OFF work for you? (Note: I recommend avoiding 10.8.4; see cocorossello, thank you for the idea to try the 10.8.2 mariadb-backup for the --backup part. Does it work for you even when the server runs with SET GLOBAL innodb_log_file_buffering=ON? On Linux or Windows, a later version of mariadb-backup would likely attempt to read the server’s log file in O_DIRECT mode. Because the backup operation is basically polling the log file for updates, it could make sense to open that file in buffered mode, so that if nothing was changed, the unchanged data would be returned from the file system cache. Currently, there is no way to specify innodb_log_file_buffering=OFF for the backup process. An even better solution might be to invoke the Linux system call ppoll(2) or poll(2) in the polling loop, to only read from the file when it has been changed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-10-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
So setting both
and
works fine on 10.8.5. Missing either option results in long blocking. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
acs-ferreira, thank you, this like I expected. I did not debug mariadb-backup yet, so I do not know for sure if it would read the server’s ib_logfile0 via O_DIRECT in this case, but I assume that it would. I think that the 1-millisecond polling interval that worked for you can cause trouble for others who have different type of storage. Could you please also test the 10.8.5 server with the default innodb_log_buffering=OFF and a copy of mariadb-backup from MariaDB Server 10.8.2, for executing the --backup part, like cocorossello suggested? In that version, the log copying interval was incorrectly specified in microseconds instead of milliseconds ( I’d appreciate it if all of you (acs-ferreira, nunop, cocorossello) could conduct this experiment. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Marko, where can I find mariadb-backup from MariaDB Server 10.8.2 binary for aarch64? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
acs-ferreira, I did not get any response from the maintainers of the package repositories yet. I see that the web UI only offers the latest version in each series. Which package or GNU/Linux distribution are you using? It should be possible to get the package straight from a repository mirror. I successfully did that to get some older .deb or .rpm for analyzing some core dumps or checking the addresses in some stack traces. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
You should find packages of all types in https://archive.mariadb.org/mariadb-10.8.2/. For example for Debian, the .deb files for all CPU architectures and supported Debian releases are in https://archive.mariadb.org/mariadb-10.8.2/repo/debian/pool/main/m/mariadb-10.8/. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ubuntu 22.04 Jammy. Can't find the binary at https://archive.mariadb.org/mariadb-10.8.2/repo/ubuntu/pool/main/m/mariadb-10.8/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
One of these packages, maybe? mariadb-backup_10.8.2+maria~bionic_amd64.deb 6.3 MiB 2022-Feb-12 03:42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
None of them are for Jammy. I can find such packages on the 10.8.3+ branch, maybe before Jammy packages where not available? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Gebhardt [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Correct, Ubuntu 22.04 GA was after MariaDB Community Server 10.8.2 was released | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by acsfer [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks Ralf. So i'm sorry but I can't test your case Marko. My only staging machine runs on Jammy+ARM64. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I could provide a custom build once I get to implement this. I would first like to hear from nunop and cocorossello and anyone else if disabling O_DIRECT in mariadb-backup --backup (but enabling it in the server) would be the right fix. That is the purpose of the 10.8.2 experiment. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I'm testing this now. If I understand you want me to test with 10.8.5 in the server and 10.8.2 in the backup. Something like:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
cocorossello, yes, thank you. I am not familiar with Docker or containers, but as far as I understand your command, it should work. My old-school approach would have been to extract the mariadb-backup executable and any needed libraries from the 10.8.2 package to a custom directory and invoke it from there. I would think that also the environment variable LD_LIBRARY_PATH would have to be set to point to the libraries extracted from the package. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I'll try to test whenever I can, if not today, I'll try tomorrow. So is it two experiments? 1) disable O_DIRECT in mariadb-backup --backup on 10.8.5 2) run 10.8.2's mariadb-backup --backup --log-copy-interval=1000000, with innodb_log_buffering=OFF Is my understanding correct? How do I disable O_DIRECT just for maria-backup, but keep on the server? – Seems this is the one I need (for AlmaLinux 8): | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-10-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Didn't see much difference with innodb_log_buffering: 10.8.3 server with 10.8.2 backup (base): 4 seconds lock [00] 2022-10-05 11:58:11 Acquiring BACKUP LOCKS... 10.8.5 server, innodb_log_file_buffering=OFF (default) and 10.8.2 backup: 2 seconds lock [00] 2022-10-05 12:27:33 Acquiring BACKUP LOCKS... 10.8.5 server, innodb_log_file_buffering=ON and 10.8.2 backup: 4 seconds lock [00] 2022-10-05 12:44:43 Acquiring BACKUP LOCKS... 10.9.3 server, innodb_log_file_buffering=OFF (default) and 10.8.2 backup: 2 seconds lock [00] 2022-10-05 13:08:54 Acquiring BACKUP LOCKS... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
As far as I understood (I did not debug it), there is no way to disable the O_DIRECT for reading the server’s ib_logfile0 in the 10.8.5 mariadb-backup. The purpose of the experiment with the 10.8.2 mariadb-backup is to copy the log without involving O_DIRECT. nunop, I’d like to see 2 experiments, both with 10.8.2's mariadb-backup --backup --log-copy-interval=1000000 and the 10.8.5 server. The difference would only be on the server:
I am hoping that the performance will be acceptable when using the default innodb_log_file_buffering=OFF on the server. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, cocorossello, acs-ferreira and any others, please test this fix. I checked in a debugger that mariadb-backup --backup will skip the O_DIRECT logic, in os_file_create_func(). What I did not test is whether the buffering is disabled on Microsoft Windows. Maybe wlad could test this and suggest an improvement if needed? Installation packages for this build will be available for some time here as soon as they have been created, within a few hours. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-10-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
marko - Many apologies, this week was a really busy one and I didn't get a chance to do the other test. Thanks for this, I'll see if I can test tomorrow morning or lunch time, this mariadb-backup build. Cheers! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-10-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hey marko My current innodb_log_file_buffering is ON.
All going well until this bit:
Then the Waiting for backup lock started to appear a lot. Just like it was happening with the other version I tried before (and on the same spot), before changing the interval to 1ms. (I think 10.8.3) Please let me know if you still want me to test the experiment with innodb_log_file_buffering=OFF, Thank you. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, thank you for the update. Apparently, you will need --log-copy-interval=1 (1 millisecond) in any case. Possibly the log writing speed of the server was changed due to A test of 10.8.2 would have been an alternative to testing with this custom build of mariadb-backup. I see that on 2022-06-28, you reported that the 1-millisecond log copying interval worked for you, apparently even with the unbuffered (O_DIRECT) log file I/O. On the same day, cocorossello reported the following:
On 2022-10-05, cocorossello reported the following:
I wonder which log-copying-interval cocorossello specified to the 10.8.2 backup. Due to Based on what has been reported so far, I assume that the problem would be solved by disabling O_DIRECT in mariadb-backup --backup, and I would think that a 2-second lock is OK. That lock is needed due to other storage engines than InnoDB. To confirm this, nunop, can you please repeat your experiment with innodb_log_file_buffering=OFF on the server, and similar concurrent workload while executing the backup? Possibly, the default value of --log-copying-interval should be lowered. Would 100 work reasonably well? Attempting to re-read the last log file block 1,000 times per second (the minimum polling interval of 1 millisecond) would feel too steep to me. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-10-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks marko
Locked everything again, from here:
– Then I tried with 100ms:
But the locks still happened and was affecting the website again (because it takes longer).
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, thank you. It appears that the only thing that works for you is to enable the file system cache for the redo log also in the server while the backup is running. How much log must be copied during backup depends on the type of the workload and also on how long time ago the latest log checkpoint was written. I will apply a simple fix for now, introducing the parameter --innodb-log-file-buffering to mariadb-backup and setting it ON by default.
This problem would also be solved by MDEV-14992. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Marko sorry but I don't really know how to put this mariabackup executable in a Docker container | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
cocorossello You could put the mariadb-backup file somewhere on your host server, and then mount it as a volume in your docker container (using the "-v" parameter if you use "docker run", or add to the "volumes:" section if you use "docker-compose.yml"). This will require you to restart the container, for it to get the new volume (not sure if it can be done without restarting the container) Then enter the terminal/shell of your docker container and run something like:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Where can I find the executable? sorry, i'm rather a newbie with deb files and that stuff | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nuno [ 2022-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Files here: https://hasky.askmonty.org/archive/bb-10.8-release/build-50973/ would it be the "kvm-deb-focal-amd64" one maybe? Then extract the files of the ".deb" file with 7-zip, and go up to the folder "\mariadb-backup_10.8.6+maria_ubu2004_amd64.deb\data.tar\.\usr\bin\" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks, I was trying to decompress the wrong deb file | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nunop, thank you for helping out. Yes, it is exactly that build number 50973. Alternatively, you can find the final version at http://hasky.askmonty.org/archive/10.8/build-51011/ or using a later build number. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicente Rossello Jaume [ 2022-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
2 second lock with that version of mariadb-backup, innodb_log_file_buffering=OFF on the server and default log-copy-interval. It worked fine for us |