[AIX교육] AIX의 백업관련 커맨드

2010.05.11 10:39

조인상 조회 수:27132

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

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

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

 

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

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


[종류]

1. backup - restore
2. mksysb
3. tar
4. cpio
5. dd
6. tctl (tape control)


[백업의 종류]
1. System  : OS의 이미지백업을 기록(mksysb)
2. Full backup
3. Incremental backup


[백업 미디어]
FDD  1.44MB 3.5"  - /dev/fdx.18
Tape  - /dev/rmtx (모드 : /dev/rmtx.1  ~ /dev/rmtx.7)

mode          low_capacity    retension_on_open    rewind_on_close
/dev/rmtx          no                  no                        yes
/dev/rmtx.1        no                  no                        no
/dev/rmtx.2        no                  yes                      yes
/dev/rmtx.3        no                  yes                        no
/dev/rmtx.4      yes                no                        yes
/dev/rmtx.5      yes                no                        no
/dev/rmtx.6      yes                yes                        yes
/dev/rmtx.7      yes                yes                        no


[mksysb 백업]
- rootvg 만 백업받는다.
- mount 된 파일시스템만 백업받을 수 있다.
- 디스크에 받으면 non-bootable image. 테잎에 받으면
  bootable tape이 된다.
- non-interactive 설치를 지원하는 환경 제공.
- 시스템에서 생성된 paging-space 정보까지 저장한다.
- logical volume 정책도 저장한다.


[mksysb 백업환경 파일]

@ /image.data :
# mkszfile
  - rootvg 백업에 대한 환경설정 불러온다.
  - 시스템 설치환경을 추출하여 /image.data 파일을 생성한다.

@ /bosinst.data :
restore 환경에 대한 정보를 저장하여 non-interactive restore 시켜준다.



[mksysb 이미지 파일의 구조]

BOS boot image + mkinsttape image + dummy.toc + rootvg data

각 구분간의 길이는 지정된 블럭사이즈 단위.(예 : 512Byte)
1. BOS boot image : kernel device driver
2. mkinsttape image : /image.data  /bosinst.data
3. dummy.toc : Dummy TOC
4. rootvg data : backup by name



[rootvg 이외의 볼륨그룹을 백업받기 : savevg]

# savevg (backup)      ---->    # restvg (restore)
# smit savevg            ---->    # smit restvg




[mksysb 로 백업한 것 복구하기]

1. Install and Maintenance 모드에서
"3. Start Maintenance Mode for system recovery"
"4. Install from System backup"
선택하여 image로부터 복구를 수행한다.



[정리]

1. rootvg 백업
  mksysb -> /image.data  <- # mkszfile
                    /bosinst.data
                    /etc/exclude.rootvg
2. rootvg 이외(예 : datavg) 백업
  savevg  -> vg.data  <- # mkvgdata





[기타 백업명령어 : backup]

syntax) # backup [-u] [-level] [-f device] filesystem
ex)      # backup -u -1 -f /dev/rmt0 /home

복구시---

# restore -rqvf /dev/rmt0
r : full restore - incremetal 레벨 찾아서 순서대로 복구
q : ㅡㅡ; 뭔갈 안 보여준다는거 같은데...
v : verbose 겠지.
f : device명칭.  여기서는 테잎device  /dev/rmt0



[tape 장치 컨트롤하기 : tctl]

1. rewind
2. fsf  - fast forwards a tape
3. offline - eject
4. rewoffl - rewind 후에 eject


# tctl -f /dev/rmt0 rewind
# tctl -f /dev/rmt0 rewoffl
# tctl -f /dev/rmt0.1 fsf 3
번호 제목 글쓴이 날짜 조회 수
공지 [공지] 게시자료 열람자유. 불펌금지입니다. 조인상 2010.12.07 108714
171 AIX L1, L2, L3 cache 사이즈 확인하는 방법 조인상 2010.05.11 17720
170 JFS2 파일시스템 수퍼블록이 훼손 되었을 경우 조인상 2010.05.11 13687
169 시스템부팅이상시조치사항 조인상 2010.05.11 17210
168 Backup OS Disk만들기(alter disk 백업 방법) 조인상 2010.05.11 15551
167 VMM memory tuning 방법. 조인상 2010.05.11 14909
166 AIX OS에서 time zone을 변경 하는 방법 조인상 2010.05.11 18140
165 Log device 에 관한 에러와 수정하는 방법 조인상 2010.05.11 14832
164 미러링된 디스크중 하나의 상태가 none으로 나타날때. 조인상 2010.05.11 12940
163 LV name과 마운트 이름 변경하기 조인상 2010.05.11 17684
162 메모리 정보 확인 조인상 2010.05.11 17345
161 파일 시스템 용량 증가시 "물리적 구획이 부족합니다."(0516-1034) 라는 메세지가 오류메세지 조인상 2010.05.11 17857
160 telnet 관련사항.... 조인상 2010.05.11 19908
159 cde 로그인 문제시 조인상 2010.05.11 14582
158 Remote Tape Drive Backup 조인상 2010.05.11 14202
157 4mm tape 이용한 tsm 구성하는 방법 조인상 2010.05.11 22360
156 APM_oracle연동하기 조인상 2010.05.11 5904
155 P5 전면 Display 패널에 관하여 [1] file 조인상 2010.05.11 20597
154 p5 서버 System Attention Indicator LED 끄기 조인상 2010.05.11 19349
153 FastT600 어레이 구성방법 메뉴얼 file 조인상 2010.05.11 14070
152 Installation and Initial Configuration of the CDE 조인상 2010.05.11 20580
서버에 요청 중입니다. 잠시만 기다려 주십시오...