2016-11-11 67 views
0

我使用nuodb-CE 2.4OS崩潰後如何重新啓動nuodb管理數據庫

我創建了一個空的管理數據庫中使用自動化控制檯(模板Single Host)(稱爲testdb),然而,當操作系統崩潰(或重啓)數據庫消失。

我檢查ls /var/opt/nuodb/production-archives/testdb/

1.atm 12.cat 16.atm 19.atm 22.atm 25.atm 29.atm 32.atm 35.atm 4.atm 43.atm 46.cat 5.atm 52.cat 56.atm 59.atm 61.atm 65.atm 7.atm  fingerprints.dat 
10.atm 13.atm 16.cat 2.atm 22.cat 26.atm 3.atm 32.cat 36.atm 40.atm 44.atm 47.atm 50.atm 53.atm 56.cat 6.atm 62.atm 66.atm 8.atm  journal 
10.cat 14.atm 17.atm 20.atm 23.atm 27.atm 30.atm 33.atm 37.atm 41.atm 44.cat 48.atm 50.cat 54.atm 57.atm 6.cat 62.cat 66.cat 8.cat  state.dat 
11.atm 14.cat 18.atm 20.cat 24.atm 28.atm 30.cat 34.atm 38.atm 42.atm 45.atm 48.cat 51.atm 54.cat 58.atm 60.atm 63.atm 67.atm 9.atm 
12.atm 15.atm 18.cat 21.atm 24.cat 28.cat 31.atm 34.cat 39.atm 42.cat 46.atm 49.atm 52.atm 55.atm 58.cat 60.cat 64.atm 68.atm cloud_time.dat 

nuodb [domain] > show domain summary

Hosts: 
[broker] * ce2384664ad0/localhost:48004 (DEFAULT_REGION) CONNECTED 

而且同樣沒有Web控制檯上

enter image description here

nuodb [domain] > start database testdb

Timeout (ms/s/m/h/d/w) (optional): 
unknown database [testdb] 

bin/nuochk /var/opt/nuodb/production-archives/testdb/

Validating Schema SYSTEM ID 4 
Archive verification found no issues. 

我如何崩潰後恢復?


PS如果我嘗試重新SM我有以下錯誤

Failed to introduce local node: Starting process [Node SM db=[testdb] pid=498 id=-1 req=null (local)] would exceed Community Edition license restrictions. Contact [email protected] or visit http://doc.nuodb.com/display/doc/NuoDB+Editions to upgrade... 

更新

一些測試中,我看到了Raft文件夾重新啓動過程中沒有堅持後。在持久化之後,數據庫在Web控制檯上不存在但未啓動。

然而,當我嘗試啓動它,我有一個400錯誤數據庫已啓動而是設置你是什麼平臺什麼都沒法(SMTE)存在

回答

0

我不能告訴使用或你的意思是由操作系統崩潰。標識託管數據庫的域狀態位於/ var/opt/nuodb/Raft目錄中。從你在這裏提到的看來,重啓後該目錄不存在。

您可以恢復您管理的數據庫:

nuodbmgr --command 「恢復數據庫數據庫名稱TESTDB變量的HOST localhost'的」