[MDEV-24365] datadir cannot be changed even when specified via CLI Created: 2020-12-08  Updated: 2022-10-11

Status: Stalled
Project: MariaDB Server
Component/s: mariabackup
Affects Version/s: 10.5.8
Fix Version/s: 10.5

Type: Bug Priority: Major
Reporter: Dyson Assignee: Julius Goryavsky
Resolution: Unresolved Votes: 0
Labels: None
Environment:

server version 10.1.35-MariaDB-1~bionic


Issue Links:
PartOf
is part of MDEV-27524 Incorrect binlogs after Galera SST us... Closed

 Description   

cat /etc/my.cnf

[mariabackup]
datadir=/opt/galera/data
user=xx
password=xx
host=172.30.8.10

mariabackup  --datadir=/opt/galera/data   --backup  -u xx -pxx  --history --compress  --parallel=4 --compress-threads=4  --no-version-check   --target-dir=/data/backups/2020-12-05 
[00] 2020-12-08 09:31:10 Connecting to MySQL server host: 172.30.8.10, user: xx , password: set, port: not set, socket: not set
[00] 2020-12-08 09:31:10 Using server version 10.1.35-MariaDB-1~bionic
[00] 2020-12-08 09:31:10 Warning: MySQL variable 'datadir' points to nonexistent directory '/var/lib/mysql/'
[00] 2020-12-08 09:31:10 Warning: option 'datadir' has different values:
  '/opt/galera/data' in defaults file
  '/var/lib/mysql/' in SHOW VARIABLES
mariabackup based on MariaDB server 10.5.8-MariaDB Linux (x86_64)
[00] 2020-12-08 09:31:10 uses posix_fadvise().
mariabackup: Can't change dir to '/var/lib/mysql/' (errno: 2 "No such file or directory")
[00] 2020-12-08 09:31:10 my_setwd() failed , /var/lib/mysql/



 Comments   
Comment by Julius Goryavsky [ 2021-07-06 ]

julien.fritsch Most likely this is an internal problem of mariabackup, in this case it was launched without SST - however, since this error can lead to problems when running through SST, I will figure out what is happening here.

Comment by Julius Goryavsky [ 2022-02-19 ]

Fixed by MDEV-27524 but new tests added here:
https://github.com/MariaDB/server/commit/6c000b587409ceb99b5e95174e109d358220a017

Comment by Jan Lindström (Inactive) [ 2022-10-11 ]

For Galera point of view this looks good and is ok to push. Please get review to mysql-test-run Perl changes.

Generated at Thu Feb 08 09:29:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.