23.3 Sentinel 7.1.1 之前版本的必要條件

Sentinel 7.1.1 和更新版本包括 MongoDB 版本 2.4.1。MongoDB 2.4 必須移除資料庫中重複的使用者名稱。若您要升級 7.1.1 之前的 Sentinel 版本,請驗證是否有任何重複使用者,接著移除重複使用者。

請執行下列步驟以辨識重複的使用者:

  1. 以 novell 使用者身分登入 Sentinel 7.1 或舊版伺服器。

  2. 變更至以下目錄︰

    cd opt/novell/sentinel/3rdparty/mongodb/bin
    
  3. 執行下列指令以驗證重複的使用者:

    ./mongo --port 27017 --host "localhost"
    
    use analytics
    
    db.system.users.find().count()
    

    若 count 大於 1,就代表有重複的使用者。

請執行下列步驟以移除重複的使用者:

  1. 執行下列指令以列出使用者:

    db.system.users.find().pretty()
    

    指令會一同列出使用者與重複的項目。清單中的第一位使用者是原始使用者。請保留第一位使用者,並刪除清單中其他人。

  2. 執行下列指令以移除重複的使用者:

    db.system.users.remove({ _id : ObjectId("object_ID") })
    
  3. 執行下列指令以驗證是否已移除重複的使用者:

    db.system.users.find().pretty()
    
  4. 切換至資料庫管理員使用者:

    use admin
    
  5. 重複步驟 1至步驟 3以驗證並移除管理員資料庫中重複的 dbausers。