ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • IBM AIX 패치 실패 시 reject or commit 작업
    System of Infra/Unix System 2020. 9. 18. 22:48
    반응형

    AIX로고이미지

     

    IBM AIX 패치 실패 시 reject or commit 작업

     

    [root@test_svr1:/tmp/patch_file]# oslevel -s

    7100-04-06-1806

    -> 현재 AIX레벨은 7100-04-06으로 7100-05-04로 TL 및 SP를 패치해 보도록 하겠습니다.

     

    [root@test_svr1:/tmp/patch_file]# lslpp -l | grep -i java

      Java5.msg.ko_KR          5.0.0.175  COMMITTED  Java SDK 32-bit

      Java5.sdk                5.0.0.620  COMMITTED  Java SDK 32-bit

      ...(생략)

      Java5.sdk                5.0.0.620  COMMITTED  Java SDK 32-bit

      Java5_64.sdk             5.0.0.620  COMMITTED  Java SDK 64-bit

      Java6.sdk                6.0.0.641  COMMITTED  Java SDK 32-bit

      Java7.jre                7.0.0.601  COMMITTED  Java SDK 32-bit Java Runtime

      Java7_64.jre             7.0.0.601  COMMITTED  Java SDK 64-bit Java Runtime

    -> 현재 AIX 7100-04-06에는 JAVA 8 버전이 설치되어 있지 않은 것을 확인할 수 있습니다.

    JAVA 8버전을 설치해야 하는 이유는 밑에서 알려드리도록 하겠습니다.

     

    [root@test_svr1:/tmp/patch_file/AIX7100_05_04_update]# ls -al | wc -l; du -sg

    2135

    10.17

    -> 현재 /tmp/patch_file/AIX7100_05_04_update의 경로에 패치 파일셋을 업로드하였습니다.

    총 2135 파일셋과 용량은 10.17GB를 확인할 수 있습니다.

     

    [root@test_svr1:/tmp/patch_file/AIX7100_05_04_update]# smit installp

    Move cursor to desired item and press Enter.

     

    Install Software

    Update Installed Software to Latest Level (Update All)->선택

    Install Software Bundle

    Update Software by Fix (APAR)

    Install and Update from ALL Available Software

    -> Update Installed Software to Latest Level (Update All)을 선택합니다.

     

    * INPUT device / directory for software              [.]

    -> 현재경로에서 설치 inutoc .

     

    * INPUT device / directory for software               .

    * SOFTWARE to update  _update_all

      PREVIEW only? (update operation will NOT occur) yes

      COMMIT software updates? no

      SAVE replaced files? yes

      ACCEPT new license agreements? yes

      Preview new LICENSE agreements? no

    ->  PREVIEW를 통해서 사전에 설치가 가능한지 미리보기를 yes로 변경,   COMMIT을 통해 실패 또는 원복 시를 위해 no

    SAVE를 통해 파일셋을 저장하겠다는 no,  ACCEPT의 라이센스 허용으로 설치 시작을 위한 yes

     

    Command: OK            stdout: yes           stderr: no

    Before command completion, additional instructions may appear below.

    Multiple install types for same fileset

      ---------------------------------------

      The following filesets have both a base-level and an update fileset on the

      installation media at the same level.  Since they have the same name and

      level, the last fileset on the installation media will be used.

     

        Java8_64.sdk 8.0.0.410

        Java8_64.jre 8.0.0.410

        Java8.sdk 8.0.0.410

        Java8.jre 8.0.0.410

    -> 미리보기에서 설치는 가능하다고 메시지를 호출해 주지만 Java8을 필터링했을 때  업데이트 파일에서는 41 0 버전 패치가 된다고 보입니다.

    현재 AIX에 Java8 32/64bit가 설치되어 있지 않기 때문에 설치해 줍니다.

     

    (생략... JAVA8 32/64 bit 설치 완료)

    -> 이전 글에서 Java 설치 방법을 포스트 하였습니다.

     

    [root@test_svr1:/tmp/patch_file]# lslpp -l | grep -i java8

      Java8.jre                8.0.0.611  COMMITTED  Java SDK 32-bit Java Runtime

      Java8.sdk                8.0.0.611  COMMITTED  Java SDK 32-bit Development

      Java8_64.jre             8.0.0.611  COMMITTED  Java SDK 64-bit Java Runtime

      Java8_64.sdk             8.0.0.611  COMMITTED  Java SDK 64-bit Development

      Java8.jre                8.0.0.611  COMMITTED  Java SDK 32-bit Java Runtime

      Java8_64.jre             8.0.0.611  COMMITTED  Java SDK 64-bit Java Runtime

    -> java8 버전 base설치와 패치까지 진행했습니다.

     

    [root@test_svr1:/tmp/patch_file/AIX7100_05_04_update]# lslpp -l | grep -i ALLP

      bos.rte                  7.1.5.30  APPLIED    Base Operating System Runtime

      bos.rte.aio              7.1.5.31  APPLIED    Asynchronous I/O Extension

      bos.rte.boot              7.1.5.30  APPLIED    Boot Commands

      bos.rte.control          7.1.5.32  APPLIED    System Control Commands

      bos.rte.devices          7.1.5.31  APPLIED    Base Device Drivers

      bos.rte.diag              7.1.5.15  APPLIED    Diagnostics

      bos.rte.install          7.1.5.34  APPLIED    LPP Install Commands

    (생략)...

    -> AIX 7100-05-04로 패치를 하기에 앞서 commit을 수행해 줍니다.

    왜냐하면 AIX7100-04-06 이전에서 패치가 되어 현재의 OS일 수 도 있기 때문에 안정화가 되었는지 확인 후 패치를 합니다.

    이후에 reject를 하게 되면 7100-04-06으로 Rollback이 되겠습니다.

     

    (생략... AIX7100-05-04 패치 완료)

    -> 위의 사전 PREVIEW의 방식과 동일하게 설치를 진행하거나 이전의 TL패치 방법을 포스트 하였습니다.

     

    [root@test_svr1:/tmp/patch_file/AIX7100_05_04_update]# oslevel -s

    7100-05-04-1914

    -> AIX가 7100-05-04로 패치가 된 것을 확인할 수 있습니다.

     

    [root@test_svr1:/tmp/patch_file/AIX7100_05_04_update]# lslpp -l | grep -i APPL | grep -i bos.

      bos.64bit                7.1.5.32  APPLIED    Base Operating System 64 bit

      bos.acct                  7.1.5.32  APPLIED    Accounting Services

      bos.adt.base              7.1.5.31  APPLIED    Base Application Development

      bos.adt.debug            7.1.5.32  APPLIED    Base Application Development

      bos.adt.graphics          7.1.0.0  COMMITTED  Base Application Development

      bos.adt.include          7.1.5.32  APPLIED    Base Application Development

      bos.adt.insttools          7.1.5.0  APPLIED    Tool to Create installp

      bos.adt.lib              7.1.2.15  COMMITTED  Base Application Development

    (생략)...

    ->  패치를 완료 후 bos 파일 셋을 봤을 때 APPLY상태인 것을 확인할 수 있습니다.

     

    [root@test_svr1:/tmp/patch_file/AIX7100_05_04_update]# smit reject

    [Entry Fields]

    * SOFTWARE name [all]

      PREVIEW only? (reject operation will NOT occur) no   

      REJECT dependent software? no

      EXTEND file systems if space needed? yes   

      DETAILED output? no

     

    Command: OK            stdout: yes          stderr: no

    Before command completion, additional instructions may appear below.

    -> reject로 AIX 버전을 패치 이전의 버전으로 롤백하도록 하겠습니다.

     

    [root@test_svr1:/tmp/patch_file/AIX7100_05_04_update]# oslevel -s

    7100-04-06-1806

    ->reject를 통해서 AIX 7100-04-06으로 원복 된 것을 확인할 수 있습니다.

     

    PS. 포스팅의 내용은 제 기준으로 작성한 것이기 때문에 참고해서 보시면 감사하겠습니다.

    포스팅 과정의 오류 및 오타 그리고 궁금한 점에 대해서는 댓글 남겨주세요.

    반응형

    댓글

Designed by Tistory.