원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

원문 : http://www.ischo.net -- 조인상 //시스템 엔지니어

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

미러된 rootvg를 alt_disk_install 로 복제하려고 하면 두가지 방법이 있다.

 

1. 미러해제후 alt_disk_install 수행.   다시 미러구성

2. mkszfile로 받은 image.data 를 편집후 alt_disk_install

 

 

2번의 경우에 해당하는 작업방법이다.

 

 

1. pv정보 확인

#lspv
hdisk0          00c262ee45d3effe                    rootvg          active
hdisk1          00c262eea89d29f3                    rootvg          active
hdisk2          00c262ee7f62e078                    None           

 

hdisk0과 hdisk1이 미러되어있는 상태.  hdisk2 로 복제할 예정 

 

 

 

2. image.data 생성 및 편집

#mkszfile
#ls -al

-rw-r--r--    1 root     system        10421 Apr 27 15:46 image.data

#vi image.data

lv_data:
        VOLUME_GROUP= rootvg
        LV_SOURCE_DISK_LIST= hdisk0 hdisk1                    ---> 여기서 hdisk1 삭제.  image.data에서 미러아닌것처럼 수정하는게 목표.
        LV_IDENTIFIER= 00c262ee00004c000000011d41dcd7fb.13
        LOGICAL_VOLUME= tslv
        VG_STAT= active/complete
        TYPE= jfs
        MAX_LPS= 512
        COPIES= 2         --> 1로 수정
        LPs= 2
        STALE_PPs= 0
        INTER_POLICY= minimum
        INTRA_POLICY= middle
        MOUNT_POINT=
        MIRROR_WRITE_CONSISTENCY= on/ACTIVE
        LV_SEPARATE_PV= yes
        PERMISSION= read/write
        LV_STATE= closed/syncd
        WRITE_VERIFY= off
        PP_SIZE= 64
        SCHED_POLICY= parallel
        PP= 4                  --> LPs 값과 동일하게 변경
        BB_POLICY= relocatable
        RELOCATABLE= yes
        UPPER_BOUND= 32
        LABEL=
        MAPFILE=
        LV_MIN_LPS= 2
        STRIPE_WIDTH=
        STRIPE_SIZE=
        SERIALIZE_IO= no
        FS_TAG=
        DEV_SUBTYP=

 

 

3. alt_disk_install 수행

#alt_disk_install -BC -i /image.data hdisk2

 

 

4. alt_disk 결과 확인

#lspv
hdisk0          00c262ee45d3effe                    rootvg          active
hdisk1          00c262eea89d29f3                    rootvg          active
hdisk2          00c262ee7f62e078                    altinst_rootvg 

 

 

* alt_disk name 변경하기

#alt_disk_install -v alt20110628 hdisk2     
#lspv
hdisk0          00c262ee45d3effe                    rootvg          active
hdisk1          00c262eea89d29f3                    rootvg          active
hdisk2          00c262ee7f62e078                    alt20110628 

 

 

 

(참고) Man page 에서 발췌한 mkszfile 의 목적

Purpose

       Saves the system state for reinstallation on the current system or another system.

 

The mkszfile command saves the system state for reinstallation on the current system or on another system.
       The information saved includes the following:
       *    System installation information
       *    Logical volume information for the root volume group
       *    File system information.

 

 

 

번호 제목 글쓴이 날짜 조회 수
공지 [공지] 게시자료 열람자유. 불펌금지입니다. 조인상 2010.12.07 109074
71 서버 TCP/IP 네트워크 성능테스트에 사용할 수 있는 명령어 조인상 2010.05.11 14309
70 default gateway odm에서 정보 삭제하는 방법 조인상 2010.05.11 14448
69 여러가지 명령어 모음 조인상 2010.05.11 16747
68 os 패치에 관하여.. 조인상 2010.05.11 15641
67 언어팩 추가 설치에 대해서... 조인상 2010.05.11 16244
66 OP 판넬의 주황색 경고등 끄기 조인상 2010.05.11 32370
65 기존 파일시스템을 다른 VG로 옮기기 조인상 2010.05.11 16874
64 solaris나 hpux 에서는 tcp 세션 clear(접속을 끊는) 시키는 명령어가 있는데 AIX는 없나요? 조인상 2010.05.11 24577
63 패스워드 변경된 시간이나 타임을 로그로 쌓아주는거 없나요? 조인상 2010.05.11 14732
62 Compiling Apache or gcc/g++ for AIX 조인상 2010.05.11 13230
61 p5 F/W level 확인 방법 조인상 2010.05.11 13057
60 Installation and Initial Configuration of the CDE 조인상 2010.05.11 20601
59 FastT600 어레이 구성방법 메뉴얼 file 조인상 2010.05.11 14079
58 p5 서버 System Attention Indicator LED 끄기 조인상 2010.05.11 19381
57 P5 전면 Display 패널에 관하여 [1] file 조인상 2010.05.11 20625
56 APM_oracle연동하기 조인상 2010.05.11 5925
55 4mm tape 이용한 tsm 구성하는 방법 조인상 2010.05.11 22385
54 Remote Tape Drive Backup 조인상 2010.05.11 14212
53 cde 로그인 문제시 조인상 2010.05.11 14600
52 telnet 관련사항.... 조인상 2010.05.11 19933
서버에 요청 중입니다. 잠시만 기다려 주십시오...