원문 : 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 109053
51 파일 시스템 용량 증가시 "물리적 구획이 부족합니다."(0516-1034) 라는 메세지가 오류메세지 조인상 2010.05.11 17874
50 메모리 정보 확인 조인상 2010.05.11 17351
49 LV name과 마운트 이름 변경하기 조인상 2010.05.11 17695
48 미러링된 디스크중 하나의 상태가 none으로 나타날때. 조인상 2010.05.11 12962
47 Log device 에 관한 에러와 수정하는 방법 조인상 2010.05.11 14846
46 AIX OS에서 time zone을 변경 하는 방법 조인상 2010.05.11 18168
45 VMM memory tuning 방법. 조인상 2010.05.11 14920
44 Backup OS Disk만들기(alter disk 백업 방법) 조인상 2010.05.11 15583
43 시스템부팅이상시조치사항 조인상 2010.05.11 17219
42 JFS2 파일시스템 수퍼블록이 훼손 되었을 경우 조인상 2010.05.11 13700
41 AIX L1, L2, L3 cache 사이즈 확인하는 방법 조인상 2010.05.11 17738
40 root 패스워드 잊어 버렸을때 지우는 방법 조인상 2010.05.11 14573
39 AIX 5.2 DNS setting 조인상 2010.05.11 24605
38 IBM Ess800 storage 관련 조인상 2010.05.11 13888
37 네트웍 관련 (IP 세팅, 라우팅 세팅, 속도 세팅) [1] 조인상 2010.05.11 20246
36 OS 변경 후 이전 유저 환경 유지시키려면.. 조인상 2010.05.11 12394
35 보안 점검 시 유용한 명령어 모음 조인상 2010.05.11 15753
34 메뉴얼 링크 [1] 조인상 2010.05.11 19620
33 cpu clock 확인하는 방법 조인상 2010.05.11 25804
32 AIX ssh 설치하기 조인상 2010.05.11 51047
서버에 요청 중입니다. 잠시만 기다려 주십시오...