[MCOL-1169] Lost all columnstore tables after reboot Created: 2018-01-17 Updated: 2018-02-16 Resolved: 2018-02-06 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ProcMgr |
| Affects Version/s: | 1.1.2 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Nicola | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
2 UM and 2 PM in Vmware environment with NFS |
||
| Attachments: |
|
| Description |
|
Hi all, In the debug.log i see this query: But the table syscolumn not exist in the all databases (mysql,information_schema and infini_vtable). I've upload the support report. |
| Comments |
| Comment by David Thompson (Inactive) [ 2018-01-19 ] |
|
Hi, is there some additional information you can provide around the lead up to this. It looks like you maybe had some hardware issues on the 13th and the system failed over to pm2 but you now have recovered. The state of the system looks to be that pm2 is still the primary pm node but it can't seem to find the dbrm and extent map files. It looks like you have set internal storage so it should not have failed over because pm2 can't mount pm1's data volume. I wonder if you switch the active pm node back to pm1 and restart the system if that would work using mcsadmin switchParentOAMModule ? |
| Comment by Nicola [ 2018-01-19 ] |
|
mcsadmin> getProcessStatus MariaDB ColumnStore Process statuses Process Module Status Last Status Change Process ID ProcessMonitor pm2 ACTIVE Wed Jan 17 11:25:21 2018 27780 Switching to the Performance Module 'pm1' This command switches the Active Parent OAM Module and should only be executed on an idle system. Check for active transactions Switch Active Parent OAM Module starting... Switch Active Parent OAM to Module 'pm1', please wait...
mcsadmin> getProcessStatus MariaDB ColumnStore Process statuses Process Module Status Last Status Change Process ID ProcessMonitor pm2 ACTIVE Wed Jan 17 11:25:21 2018 27780 Switch Parent currently doesn't works. |
| Comment by Nicola [ 2018-01-19 ] |
|
[root@dwh-cstore02 ~]# tail -1000f /var/log/mariadb/columnstore/err.log |
| Comment by Nicola [ 2018-01-19 ] |
|
I've finally switch parent OAM on pm1 but the tables are but the tables are inaccessible. Jan 19 09:26:04 dwh-cstore01 ExeMgr[5605]: 04.654544 |2147483664|0|0| D 16 CAL0042: End SQL statement |
| Comment by David Hill (Inactive) [ 2018-01-19 ] |
|
So from the report that you sent, it does look like the DBRM files no longer are there... Maybe a disk wasnt mounted when this was run and its really showing what is on the local disk, cant tell. Can you run the following command from both pm1 and pm2. And make sure that the disk, especially for dbroot1 is correctly mounted.
and run from pm1
|
| Comment by David Hill (Inactive) [ 2018-01-19 ] |
|
actually I did find of fstab in the report.. 172.16.30.215:/vol/vol_cstore01 /usr/local/mariadb/columnstore/data1 nfs defaults,noatime,nodiratime,rw,hard,nointr,rsize=32768,wsize=32768,bg,nfsvers=4,tcp 0 0 NOTED : We don't recommend using NFS mounts for external storage just because the way that the data is cached and store to disk. That might be related, might not... |
| Comment by Nicola [ 2018-01-22 ] |
|
Hi David, [root@dwh-cstore01 ~]# df -h cat /etc/fstab on pm1 : PM 2 : Mount output : fstab output : |
| Comment by David Hill (Inactive) [ 2018-01-22 ] |
|
Ok, that is not good. Your set of DBRM files are gone. And these cant be restored unless you were doing maintenance backups. If you were, then you can recover your full database from backups. If you don't have any backups, then you will need to rebuild your Database from scratch. This is what the set of DBRM files should look like: ll |
| Comment by Nicola [ 2018-01-29 ] |
|
Hi David, Thanks. |
| Comment by David Hill (Inactive) [ 2018-01-29 ] |
|
For using internal storage with failover capabilities, Gluster is recommended. |
| Comment by Nicola [ 2018-02-06 ] |
|
Hi David, Thanks again. |
| Comment by David Hill (Inactive) [ 2018-02-06 ] |
|
close per users request |