[MDEV-10487] Galera SST using rsync does not filter out lost+found Created: 2016-08-03  Updated: 2023-05-24  Resolved: 2016-08-04

Status: Closed
Project: MariaDB Server
Component/s: Galera SST
Affects Version/s: 10.1.14
Fix Version/s: 10.1.17, 5.5.51-galera, 10.0.27-galera

Type: Bug Priority: Major
Reporter: Nathan Madpsy Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Ubuntu Xenial


Issue Links:
Duplicate
duplicates MDEV-10303 rsync_sst_rsync: ignore lost+found du... Closed
Relates
relates to MDEV-31332 Galera SST rsync wants to replicate s... Closed
relates to MDEV-21951 mariabackup SST fail if data-director... Closed

 Description   

If the data directory is mounted from a partition which contains the 'lost+found' directory, Galera SST using rsync fails to filter the directory out and will exit with 'permission denied' (given lost+found is root rw only).

This was also reported here:

https://bugs.launchpad.net/codership-mysql/+bug/1299394

Aug  3 08:13:14 ams-c1-db03 mysqld: rsync: change_dir "/var/lib/mysql//./lost+found" failed: Permission denied (13)
Aug  3 08:13:14 ams-c1-db03 mysqld: rsync: change_dir#1 "/lost+found" (in rsync_sst) failed: Permission denied (13)
Aug  3 08:13:14 ams-c1-db03 mysqld: rsync error: errors selecting input/output files, dirs (code 3) at main.c(631) [Receiver=3.1.1]


Generated at Thu Feb 08 07:42:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.