LNA Web Application Server

Guides -LENA 운영자 가이드

Patch CLI (Command Line Interface)

CLI기반의 명령은 패치파일을 업로드 후 압축이 해제되어 있는 것을 가정하고 기술한다.

Patch

Node Patch

  1. ./patch.sh를 실행하여 Node를 패치한다.
  • <패치파일압축해제경로>/bin/patch.sh lena-node
[bin]$ ./patch.sh lena-node
*************************
* LENA Server Patch ! *
*************************
2016-05-04 17:36:11:381 [INFO] Patch started to lena-node
...
2016-05-04 17:36:12:104 [INFO] Patch completed to lena-node
========================= Execution Result ========================
MESSAGE : Patch succeeded
RESULT : Success
PATCH_HISTORY_ID : patch-20160504173611328
PATCH_TARGET : lena-node
PATCH_VERSION : 1.2.1
===================================================================

patch is completed.!!

Manager Patch

  1. ./patch.sh를 실행하여 Manager를 패치한다.
  • <패치파일압축해제경로>/bin/patch.sh lena-manager
[bin]$ ./patch.sh lena-manager
*************************
* LENA Server Patch ! *
*************************
2016-05-04 17:37:01:974 [INFO] Patch started to manager
...
2016-05-04 17:37:02:658 [INFO] Patch completed to manager
========================= Execution Result ========================
MESSAGE : Patch succeeded
RESULT : Success
PATCH_HISTORY_ID : patch-20160504173701965
PATCH_TARGET : lena-manager
PATCH_VERSION : 1.2.1
===================================================================

patch is completed.!!

Server Patch

  1. ./patch.sh를 실행하여 개별적인 서버를 패치한다.
  • lena-manager 패치: <패치파일압축해제경로>/bin/patch.sh lena-manager
  • lena-se 패치: <패치파일압축해제경로>/bin/patch.sh lena-se
  • lena-ee 패치: <패치파일압축해제경로>/bin/patch.sh lena-ee
  • lena-session 패치: <패치파일압축해제경로>/bin/patch.sh lena-session
[bin]$ ./patch.sh lena-se
*************************
* LENA Server Patch ! *
*************************
2016-05-04 17:37:42:654 [INFO] Patch started to lena-se
Input SERVER_ID for installation. (q:quit)
se_8100
...
2016-05-04 17:37:50:410 [INFO] Patch completed to lena-se
========================= Execution Result ========================
MESSAGE : Patch succeeded
RESULT : Success
PATCH_HISTORY_ID : patch-20160504173742638
PATCH_TARGET : lena-se
PATCH_VERSION : 1.2.1
===================================================================

patch is completed.!!
  1. 설치 항목
  • 패치를 적용할 서버의 ID를 입력한다, 단 lena-manager의 경우 추가입력 없이 실행된다.
항목설명비고
PATCH_TARGET패치 타겟.lena-node
lena-manager
lena-se
lena-ee
lena-session
SERVER_ID패치 타겟에 해당하는 서버 IDlena-node, lena-manager는 제외

History

  1. ./history.sh를 실행하여 패치 이력을 확인한다. 기본이력은 원복된 이력은 제외하고 보여주며, 전체이력은 모든 이력을 보여준다.
  • 기본이력: <패치파일압축해제경로>/bin/history.sh
  • 전체이력: <패치파일압축해제경로>/bin/history.sh all
[bin]$ ./history.sh
*************************
* LENA Server Patch ! *
*************************
LENA Patch History
1 lena-node / patch-20160504173611328
 - action : PATCH
 - id : patch-20160504173611328
 - target : lena-node
 - serverId : lena-node
 - oldVersion : 1.2.0
 - patchVersion : 1.2.1
 - backupRoot: /engn001/lena/1.2/etc/backup/lena-patcher/backup-20160504173611326
 - timestamp : 20160504173611328
 - restored : false
 - handwork-status : NO_WORK
2 lena-manager / patch-20160504173701965
 - action : PATCH
 - id : patch-20160504173701965
 - target : lena-manager
 - serverId : lena-manager
 - oldVersion : 1.2.0
 - patchVersion : 1.2.1
 - backupRoot: /engn001/lena/1.2/etc/backup/lena-patcher/backup-20160504173701963
 - timestamp : 20160504173701965
 - restored : false
 - handwork-status : NO_WORK
3 lena-se / patch-20160504173742638
 - action : PATCH
 - id : patch-20160504173742638
 - target : lena-se
 - serverId : se_8100
 - oldVersion : 1.2.0
 - patchVersion : 1.2.1
 - backupRoot: /engn001/lena/1.2/etc/backup/lena-patcher/backup-20160504173742636
 - timestamp : 20160504173742638
 - restored : false
 - handwork-status : NO_WORK

history is completed.!!

Restore

  1. ./restore.sh를 실행하여 적용한 패치에 대한 원복을 진행한다. (패치 적용 문제 발생 시)

Restore를 실행하면 패치 시점에 변경된 파일을 변경이전 상태로 복원한다.

  • <패치파일압축해제경로>/bin/restore.sh <PATCH_ID>
[bin]$ ./restore.sh
*************************
* LENA Server Patch ! *
*************************
2016-05-04 17:39:10:727 [INFO] Restore started to lena-se
...
2016-05-04 17:39:10:851 [INFO] Restore completed to lena-se
========================= Execution Result ========================
MESSAGE : Restore succeeded
RESULT : Success
===================================================================

restore is completed.!!

Version

  1. ./version.sh를 실행하여 현재 설치된 서버에 대한 패치상태를 확인할 수 있다.
  • <패치파일압축해제경로>/bin/version.sh
[bin]$ ./version.sh
*************************
* LENA Server Patch ! *
*************************
LENA Patch Information
1. Base Information
 - Version : 1.2.0 (Patch available to 1.2.1)
 - LENA_HOME : /engn001/lena/1.2
2. lena-manager
 2.1 - id : lena-manager / version : 1.2.0 (Patch available to 1.2.1)
3. lena-se
 3.1 - id : se_8100 / version : 1.2.0 (Patch available to 1.2.1)
 3.2 - id : se_8200 / version : 1.2.0 (Patch available to 1.2.1)
 4. lena-ee
 4.1 - id : ee_8300 / version : 1.2.0 (Patch available to 1.2.1)
 4.2 - id : ee_8400 / version : 1.2.0 (Patch available to 1.2.1)
5. lena-session
 5.1 - id : session_5000 / version : 1.2.0 (Patch available to 1.2.1)
 5.2 - id : session_5001 / version : 1.2.0 (Patch available to 1.2.1)
 version is completed.!!