[MDEV-14618] "reorganize partition" ignores "data directory" Created: 2017-12-11 Updated: 2021-01-14 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Partitioning |
| Affects Version/s: | 10.2.11 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Dmitry Savolainen | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 5 |
| Labels: | None | ||
| Environment: |
centos7 |
||
| Issue Links: |
|
||||||||||||
| Description |
|
HI. I try to move (rotate) old partiotions to another local directory (another hard drive). Unfortunately, "data directory" is ignored by "alter table...reorganize partition" statement without any error/warning. For example: 1. "create table" with "data directory" is OK
"p2" parition file is in the right directory:
2. try to move "p1" to "p2" directory also
"p1" parition file is NOT in the right directory:
PS |
| Comments |
| Comment by Alice Sherepa [ 2017-12-12 ] |
|
reproduced the problem on 10.2.12-MariaDB-debug, 10.3.3 |
| Comment by Gert van Dijk [ 2019-06-24 ] |
|
Any work-around or progress on this? E.g. could I use symbolic links to physically move the InnoDB partitioned data files to other volumes? (I guess for that it requires a full server restart, opposed to the ALTER TABLE.) |
| Comment by Dmitry Savolainen [ 2019-06-27 ] |
|
Any work-around or progress on this? |
| Comment by Janis Jakobsons [ 2019-12-10 ] |
|
Any timeline when this bug could be fixed? |
| Comment by Roland Ziegler [ 2020-03-05 ] |
|
I ran into the same problem. I first thought I did something wrong: Searching for the problem I found this open issue here. So, my question, will this be fixed? |
| Comment by sireesha [ 2021-01-14 ] |
|
We ran into the same problem and creating symbolic links as an alternative corrupting the database. Is this fixed in latest versions ? We are currently using 10.3. What is the workaround for this to move the partition to a different data directory . |
| Comment by Janis Jakobsons [ 2021-01-14 ] |
|
Also for me this is a headache. hope this will be fixed one day |
| Comment by Alice Sherepa [ 2021-01-14 ] |
|
I am afraid it is a documented behavior (https://mariadb.com/kb/en/create-table/#data-directoryindex-directory), |