[MCOL-3433] columnstoreBackup - Error when soft-link is setup for mysql/db on an install Created: 2019-08-15 Updated: 2023-10-26 Resolved: 2023-03-06 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.5 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | David Hill (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Environment: |
test system - Amazon AMI non-root install 2um 2pm |
||
| Epic Link: | Consolidate & Redevelop All Columnstore Tools (SDK, Adapters, Backup, Restore, mcsimport) |
| Description |
|
Customer reported an issue of the backup/restore not working on their system that had soft-links setup for their mysql/db directory and for the DBROOT directory. This error was reported: /dump/mariadb/catcsut01/um1/db" failed: No such file or directory This is what their backup directory looked like: cd /dump/mariadb/catcsut01 So for some reason, the backup tool is creating a soft-link for um1 and um2 from the system it backed up where there was a softlink. Customer softlink was on UM1 ln -s /data/mariadb/columnstore/mysql/db /usr/local/mariadb/columnstore/mysql/db -------------------------------------------------------- I did softlinks for UMs ln -s /home/mysql/db /home/mysql/mariadb/columnstore/mysql/db Then ran: ./columnstoreBackup --user=mysql --install-dir=/home/mysql/mariadb/columnstore 172.31.33.80 columnstoreBackupData Here are the results from the run in the columnstoreBackupData directory ll So in my test when running on a UM. now both UM1 AND UM2 backup directories is pointing |
| Comments |
| Comment by David Hill (Inactive) [ 2019-08-20 ] |
|
With some input and succession from CS Product Manager, I tried a work-around that worked. When the 'rsync' script runs, it needs to have the option '-L' to create the directory and contents instead of creating the soft-links. In my testing, I changed this line in the script, line 259 rsyncOptions="-a " -> rsyncOptions="-a -L " |
| Comment by Todd Stoffel (Inactive) [ 2023-03-06 ] |
|
This ticket was created prior to convergence with the server and may be obsolete. If you find this issue still exists in a modern version, please open a new ticket. |