본문 바로가기

Host

[HP-UX] Ignite 서버 구축

반응형

######ignite server설정######
1.#vi /etc/hosts
백업받을 클라이언트 IP / Hostname 넣어준다.

2.#vi /etc/rc.config.d/nfsconf
NFS_CLIENT=1
NFS_SERVER=1

3. #/sbin/init.d/nfs.client start
   #/sbin/init.d/nfs.server start

4.mkdir -p /osbackup -----------> 받을 경로

5.chown bin:bin /osbackup  -------> 받을 경로

6.#vi /etc/dfs/dfstab
/usr/sbin/share -F nfs -o anon=2 /var/opt/ignite/clients
/usr/sbin/share -F nfs -o anon=2 /osbackup

 

 

7.#unshareall

8.#shareall

9.#vi /etc/inetd.conf
bootps      dgram  udp  wait   root /usr/lbin/bootpd   bootpd  ---> 주석되어있음 제거해준다
r계열도 주석처리되면 풀어준다
rlogin 등등

10.#inetd -c

######ignite Client설정######

11.#vi /etc/hosts
192.168.86.16  test  ---> ignite백업서버 IP/Hostname추가해준다.

12.클라이언트 osbackup.sh생성
#vi osbackup.sh
/opt/ignite/bin/make_net_recovery -u -n 3 -l 서버호스트네임 -x inc_entire=vg00 -a 서버호스트네임:/osbackup(받을 경로) -s 서버호스트네임

-u = 소프트웨어버젼 업데이트됨 (안되는것같음)
-n = 보관주기 (3넣음 3개 까지받고 4개째는 오래된거 지움)
-x = 백업 받을 볼륨이나 디렉토리
-a = 보관할 곳지정
-l = The LLA (link-level address) of the system being archived. Used to create the per-client directory
on the Ignite-UX server.
-s = ignite 서버이름

 

13.권한수정
#chmod 777 osbackup.sh

14.crontab추가
#crontab -e
11 23 01 * * /work/hpk/osbackup.sh > /dev/null 2>&1    ----> 백업스케쥴 crontab에 넣어준다.
분/시간/날짜/달/요일

15.crontab확인
#crontab -l

 

 

 

 


복구 할 때

 


EFI 쉘에서


dbprofile -sip 10.90.3.42 -cip 10.90.3.44 -gip 10.90.3.1 -m 255.255.255.0 -b "/opt/ignite/boot/nbp.efi" -dn testprofile

쳐줌 해당이미지로 부팅

dbprofile 엔터

랜카드 선택


-sip 는 서버 ip

-cip 는 클라이언트 ip

-gip 는 게이트웨이 ip

lanboot select -dn testprofile

단 /etc/hosts 값이나 디렉톨리 같은건 완벽하게 복구가 되지 않는다 

반응형