File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ function ovn_db_pre_start() {
118
118
119
119
local db_file=" /etc/ovn/ovn${1} _db.db"
120
120
[ ! -e " $db_file " ] && return
121
- ovsdb_tool check-cluster " $db_file " && return
121
+ ! ovsdb-tool db-is-clustered " $db_file " && return
122
+ ovsdb-tool check-cluster " $db_file " && return
122
123
123
124
echo " detected database corruption for file $db_file , rebuild it."
124
125
local sid=$( ovsdb-tool db-sid " $db_file " )
@@ -142,7 +143,7 @@ function ovn_db_pre_start() {
142
143
143
144
local db_new=" $db_file .init-$( random_str) "
144
145
echo " generating new database file $db_new "
145
- ovsdb_tool --sid $sid join-cluster " $db_new " $db $local_addr ${remote_addr[*]} || return 1
146
+ ovsdb-tool --sid $sid join-cluster " $db_new " $db $local_addr ${remote_addr[*]} || return 1
146
147
147
148
local db_bak=" $db_file .backup-$( random_str) "
148
149
echo " backup $db_file to $db_bak "
You can’t perform that action at this time.
0 commit comments