원문 : 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 108386
191 xSeries 제원 2012_03 ~ 2012-06 [1] 조인상 2012.06.18 25114
190 AIX useful commands [4] file 조인상 2012.04.26 26871
189 POWER7 Strategy and Technology 조인상 2012.04.26 12858
188 AIX Tuning for IBM HTTP Server and WebSphere Application Server file 조인상 2012.04.26 15780
187 IBM Power System - Cod(Capacity On Demand) file 조인상 2012.04.26 12872
186 IBM System x BP Guidebook v20e secret 조인상 2012.04.26 0
185 DIY for AIX HACMP secret 조인상 2012.03.16 0
184 PowerHA SystemMirror 7.1 Update 조인상 2012.02.25 15088
183 IBM Integrated Virtualization Manager White Book (IVM 백서) file 조인상 2012.01.03 20116
182 AIX Essentials - Asynchronous I/O 조인상 2011.12.02 13589
181 AIX 6.1 최적화와 성능 튜닝 (한글) 조인상 2011.12.01 16943
180 AIX 튜닝 포인트 secret 조인상 2011.12.01 0
179 GPFS ver.3 Manual [1] 조인상 2011.12.01 20486
178 AIX 환경에서 usb드라이브 사용하기 조인상 2011.09.01 41014
177 DAT Tape 사양 로드맵 file 조인상 2011.08.08 17580
176 AIX 에서 Hot-Plug 방식으로 카드 추가하기 file 조인상 2011.08.01 19413
175 각종 많이 쓰이는 어플리케이션 서비스 관련 포트번호 조인상 2011.07.21 24235
174 AIX에서의 mirrorvg. 디스크 미러링 조인상 2011.07.06 44423
» 미러된 rootvg를 alt_disk_install 로 복제하기 [1] 조인상 2011.06.29 24296
172 IBM p시리즈 2010년 라인업 file 조인상 2011.06.23 16705
서버에 요청 중입니다. 잠시만 기다려 주십시오...