ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • IBM AIX TL(technical level) 업데이트
    System of Infra/Unix System 2020. 6. 4. 18:51
    반응형

    AIX로고이미지

    IBM AIX TL(technical level) 업데이트

    안녕하세요. 바른소나무 입니다.

    오늘의 시나리오는 AIX OS TL패치에 대해서 진행하도록 하겠습니다.

    기존의 7100-04-06에서 7100-05-05로 업데이트 진행되는 과정에서 백그라운드 스크립트로 

    진행 할 수 있도록 하겠습니다.

     

    [root@test_svr1:/]# oslevel -s

    7100-04-06-1806

    -> 현재 OS레벨의 상태는 7100-04-06-1846으로 TL패치를 통해서

    7100-05-05버전으로 업데이트 하도록 하겠습니다.

     

    [root@test_svr1:/ptf]# ls -al | grep -i TLSP

    drwxr-x---    2 root    system        73728 Jun 02 22:35 71000505TLSP

    -> /ptf 경로 디렉토리 밑에 71000505TLSP이라는

    업데이트 파일셋을 업로드 합니다.(IBM에서 제공)

     

    [root@test_svr1:/ptf/71000505TLSP]# ls -al | wc -l

        2159

    [root@test_svr1:/ptf/71000505TLSP]# ls -al | du -sg

    10.29

    -> 업데이트 파일셋에 대한 정보입니다.(용량:10.29GB/파일갯수:2159개)

     

    [root@test_svr1:/ptf/71000505TLSP]# inutoc .

    -> 현재경로에서 파일을 풀기 위해서 .toc을 생성 합니다.

     

    [root@test_svr1:/ptf/71000505TLSP]# smit -xs TLupdate.sh

    >Software Installation and Maintenance(선택)

    Software License Management

    Manage Editions

    Devices

    System Storage Management (Physical & Logical Storage)

    (이하...생략)

     

    >Install and Update Software(선택)

    List Software and Related Information

    Software Maintenance and Utilities

    Software Service Management

    Relocatable Software Installation and Maintenance

    (이하...생략)

    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

    (이하...생략)

     

    * INPUT device / directory for software [.]

    * INPUT device / directory for software .

    * SOFTWARE to update _update_all

      PREVIEW only? (update operation will NOT occur) no

      SAVE replaced files? yes

      ACCEPT new license agreements? yes

     

    INFORMATION MESSAGE

    Press Enter or Cancel to return to the

    application.

    Command has been logged to script file.

    (SMIT -x CommandString flag set)

    -> TL패치의 경우 원격지에서 작업을 할 경우 세션이 종료 되는 것을

    막기 위해서 스크립트를 만들어서 실행하도록 하겠습니다.

     

    [root@test_svr1:/ptf/71000505TLSP]# ls -al | grep -i TL 

    -rw-r--r--    1 root    system        1506 Jun 02 23:17 TLupdate.sh

    -> TLupdate.sh라는 스크립트를 생성 하였습니다.

     

    [root@test_svr1:/ptf/71000505TLSP]# chmod 775 TLupdate.sh

    -> 실행권한을 775로 주었습니다.(700또는 777으로 주어도 상관없음 선택)

     

    [root@test_svr1:/ptf/71000505TLSP]# nohup sh TLupdate.sh &

    [root@test_svr1:/ptf/71000505TLSP]# tail -f nohup.out

    -> nohup으로 백그라운드 스크립트를 기동하고 nohup.out파일을

    실시간으로 모니터링 하도록 합니다. 백그라운드의 장점은 중간에

    세션이 끊어져도 계속해서 스크립트는 돌고 있기 때문입니다.

     

    Successfully updated the Kernel Authorization Table.

    Successfully updated the Kernel Role Table.

    Successfully updated the Kernel Command Table.

    Successfully updated the Kernel Device Table.

    Successfully updated the Kernel Object Domain Table.

    Successfully updated the Kernel Domains Table.

    Successfully updated the Kernel Authorization Table.

    Successfully updated the Kernel Role Table.

    Successfully updated the Kernel Command Table.

    Successfully updated the Kernel Device Table.

    Successfully updated the Kernel Object Domain Table.

    Successfully updated the Kernel Domains Table.

    Filesets processed:  1 of 265  (Total time:  1 mins 5 secs).

     

    All rights reserved.

    US Government Users Restricted Rights - Use, duplication or disclosure

    restricted by GSA ADP Schedule Contract with IBM Corp.

    . . . . . << End of copyright notice for openssh.base >>. . . .

    (이하...생략)

     

    Installation Summary

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

    Name Level Part Event Result

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

    devices.virtio.scsi.rte 7.1.5.30 USR APPLY SUCCESS

    devices.virtio.ethernet.rte 7.1.5.30 USR APPLY SUCCESS

    devices.virtio.core.rte 7.1.5.30 USR APPLY SUCCESS

    devices.virtio.scsi.rte 7.1.5.30 ROOT APPLY SUCCESS

    devices.virtio.ethernet.rte 7.1.5.30 ROOT APPLY SUCCESS

    devices.virtio.core.rte 7.1.5.30 ROOT APPLY SUCCESS

     

    Filesets processed: 166 of 167 (Total time: 7 mins 10 secs).

     

    installp: APPLYING software for:

    rsct.opt.storagerm 3.2.3.3

     

    Finished processing all filesets. (Total time: 7 mins 11 secs).

    (이하...생략)

    -> 설치가 완료되고 167개의 파일셋이 완료되면서 패치가 끝났습니다.

     

    [root@test_svr1:/ptf/71000505TLSP]# lppchk -v

    -> 업데이트 되면서 결과적으로 누락된 파일셋이 있는지 확인 합니다.

     

    [root@test_svr1:/ptf/71000505TLSP]# instfix -i | grep -i ML

    All filesets for 7.1.0.0_AIX_ML were found.

    All filesets for 7100-00_AIX_ML were found.

    All filesets for 7100-01_AIX_ML were found.

    All filesets for 7100-02_AIX_ML were found.

    All filesets for 7100-03_AIX_ML were found.

    All filesets for 7100-04_AIX_ML were found.

    All filesets for 7100-05_AIX_ML were found.

    ->미설치된 파일셋이 있는지에 대한 검사를 합니다.

     

    [root@test_svr1:/ptf/71000505TLSP]# oslevel -s

    7100-05-05-1939

    -> OS가 정상적으로 TL패치 된 것을 확인 할 수 있습니다.

     

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

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

    반응형

    댓글

Designed by Tistory.