[Lenovo] LXCA How to upgrade v1.x to v2.x

要升級 v1.x 到 v2.x 需求

a.升級到v2.1需升到v2.0
b. v1.x先升級到 v1.4.1 update package (LXCA migrationtool)
c. v2.0 升到 v2.1 需要費時 40分鐘 ~ 一小時

升級流程:
v.1x > 1.4.1 > 2.0.0 > 2.1.0

事前準備工作:
a.下載 XClarity Administrator v1.4.1 (For migration only)

Upgrade procedure :

step01. login LXCA https://lxca-ip/ui/login.html

step02. confirm current " data, settings, and device managemet" list

step03. Administration > Update Management Server > Import > Select Files "
一次選四個 ( lnvgy_sw_lxca_41-1.4.1_anyos_noarch.tgz & lnvgy_sw_lxca_41-1.4.1_anyos_noarch.xml ) > Import

step04. choice import file > Perform Update > Restart

The update request has been submitted to the management server.
Please wait…this update could take several minutes…
Refresh the browser window to check if the management server has completed the update. // 更新過程網頁無畫面時可以按下 refresh重整畫面。

step04. Motoring > Jobs

step05. check job item “Import management-server update packages" state “complete"

step06. Administration > Shut down Management Server > Reboot // Apply upgrade v1.x to v1.4.1

step07.login LXCA ,
show you message
Lenovo XClarity Administrator version 1.4.1 is intended only for migrating data and settings to another Lenovo XClarity Administrator version 2.0.0 virtual appliance. Avoid performing any other operations."

step08.登入多了一項初始化未完成Item “Configure Service And Support Settings"

step09.
*Usage Data*
We’d like to ask a favor. In order to improve the product, and make your experience better, would you allow us to collect information on how you use this product? > 當然say No就不是頭殼壞去 , then Apply

*Call Home Configuration*
> Skip Step

*Lenovo Upload Facility*
> Skip Step

*Warranty*
>Apply

*Initial Setup*
> Return to Initial Setup

step10.
Item “Work with managed systems" // 準備轉移資料/設定/管理機器清單囉 ! 要想清楚唷…點下去就無法回頭 ><

step11.按下關鍵性一刻.進入LXCA管理介面右下角就會跳出一個訊息
“This version is for Migration use Only (1.x.x to 2.0.0).

To migrate data and settings to Lenovo XClarity Administrator version 2.0.0, go to Administration > Update Management Server > Export Data and Settings. Avoid performing any other operations."

step12. Administration > Update Management Server > Export Data and Settings.  // 照作咩 ; 建議重新登出再登入才會看到

step13.
Actions > Create data packageLXCA-export-data-and-settings.png

**若有需要連OS image 及 firmware需移轉就勾選;若不需要就輸入二次 Passphrase (最少九位數唷) > confirm

LXCA-export-data-and-settings2.png

step14. 完成後有二種方式轉移
method#1. Download data (offline) 匯出檔案 > 關掉舊LXCA or disconnect LXCA NICs > 佈署新LXCA > 登入新LXCA v2.0.0 > 初始化畫面即會看到"Restore from Backup"  > Upload package > Upload > 詢問該package Passphrase > Import

LXCA_import_success.jpg

LXCA_2.jpg

LXCA_3.jpg
匯入時間需視備份檔大小而定 (e.g. 18MB 也差不多需要 15分鐘)

<Caution> 不能偷懶用 LXCA v2.1.0來匯入 v1.4.1 export data 唷..v2.1.0僅接受匯 v2.0.0版本 export data !!

<PS: New LXCA 2.0.0> 改善了新安裝LXCA若無法取得DHCP若要設定IP都需編輯eth0_config包入.iso檔名讓LXCA掛載來設定;現在在開機時會出現150秒等待設定IP畫面。LXCA210-screen.png

method#2. Push data (online) 線上移轉到新一台LXCA

step15. 登入 LXCA v2.0.0 會發現多了可以備份功能 “Back Up and Restore Data" & “可自訂notification信件內容"
LXCA_4.jpg

LXCA_8.jpg

**信件主旨為下圖**
LXCA_9.jpg

step16. 繼續給它升級下去唄..走..下一個v2.1.0
download “Lenovo XClarity Administrator Virtual Appliance Update 2.1.0″ .tgz

step17. Administration > Update Management Server > Import > Select Files "
一次選四個 ( lnvgy_sw_lxca_41-1.4.1_anyos_noarch.tgz & lnvgy_sw_lxca_41-1.4.1_anyos_noarch.xml ) > Import

step18. choice import file > Perform Update > Restart

step19. Reboot , and login LXCA verify version is v2.1.0
check version method#1 > 點選 Administration > Update management server
check version method#2 > 點擊右上角帳號 > About

Done.


Reference :
1. Lenovo XClarity Administrator Upgrading Guide from v1.x to v2.x
2. Before installing Lenovo XClarity Administrator2.1 please read
3. Lenovo XClarity older versions of XClarity Administrator Repository Pack
4. Migrating to Lenovo XClarity Administrator v2.0.0
5. Lenovo XClarity All version download

[Lenovo] LXCA after deploy cannot get DHCP IP ,manual config IP

step01. 產生一個檔名叫"eth0_config"

step02. 內容編修如下
————————————
IPV4_ADDR=192.168.1.1
IPV4_NETMASK=255.255.255.0
IPV4_GATEWAY=192.168.1.100
IPV6_ADDR=1001:1002:1003:1004::2
IPV6_GATEWAY=1001:1002:1003:1004::1
————————————

step03. 將該文字檔作成一個ISO檔 ,e.g. boot-conf-ip.iso


Reference : Lenovo Xclarity Administrator – Step 6. Setup and configure the Lenovo XClarity Administrator virtual appliance > (Optional) Using a configuration file to set the IP settings

[Lenovo] LXCA忘記本機帳號密碼 ?

客戶反應當時設定預設帳號 ‘ admin ‘忘記了密碼,因Lenovo XClarity Administrator後台Linux是沒有預設帳密所以無法由後台來重置密碼 .

Solution :
(sample account > admin )
在重置密碼前要確認原這帳號是否有歸屬lxc-recoverylxc-supervisor 角色群組。
** 建議在安裝後LXCA立即將該帳號歸屬lxc-recovery & lxc-supervisor group **

step01. Graceful shutdown LXCA VM

step02. 編輯個文檔檔名叫 " passwordreset.properties "
#vi /tmp/passwordreset.properties
——————-內容——————-
user=admin
password=PASSW0RD
——————-內容——————-

step03. 將該檔案’passwordreset.properties’作成ISO檔。
~Windows
可用像UltraISO或Imgburn製作

~Linux
# mkisofs -V passreset -J -o /tmp/passreset.iso /tmp/passwordreset.properties

step04. 上傳到ESXi datastore 或 Hyper-V Library

step05. 掛載passreset.iso

step06. 開機LXCA過程它會讀取這個檔案即可重置 admin這帳號密碼變為我們所設定"PASSW0RD"

step07. http://lxca-ip-address/ui/index.html 若登入沒問題即立即變更密碼唄!

step08. 退出passreset.iso

Done


Reference :

Lenovo XClarity Administrator > Troubleshooting > Security issues > Password for a local recovery or supervisor user is forgotten