솔라리스 10 chapter 23 점프 스타트 서버 관리 solaris1. 점프 스타트 서버 구성

16
솔솔솔솔 10 Chapter 23 솔솔 솔솔솔 솔솔 솔솔 Solaris1 . 솔솔 솔솔솔 솔솔 솔솔

Upload: cuthbert-matthews

Post on 18-Jan-2018

240 views

Category:

Documents


0 download

DESCRIPTION

설치 OS 이미지 서버 만들기 # mkdir -p /jump/install # pwd /cdrom/cdrom0/s0/Solaris_10/Tools #./setup_install_server -b /jump/install Verifying target directory... Calculating space required for the installation boot image Copying Solaris_10 Tools hierarchy... Copying Install Boot Image hierarchy... Install Server setup complete #

TRANSCRIPT

Page 1: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

솔라리스 10Chapter 23 점프 스타트 서버 관리

Solaris1 . 점프 스타트 서버 구성

Page 2: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

Solaris1. 점프 스타트 서버 구성

• 점프 스타트 서버– 네트워크를 통한 솔라리스 운영체제 설치 .

• 점프 스타트 서버 구성

/jump

config구성 정보 서버

install설치 OS 이미지서버 ,부트서버

Page 3: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 설치 OS 이미지 서버 만들기

# mkdir -p /jump/install# pwd /cdrom/cdrom0/s0/Solaris_10/Tools # ./setup_install_server -b /jump/installVerifying target directory...Calculating space required for the installation boot imageCopying Solaris_10 Tools hierarchy...Copying Install Boot Image hierarchy...Install Server setup complete #

Page 4: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 구성 정보 서버 만들기

# cd /cdrom/cdrom0/Solaris_10/Misc/jumpstart_sample# pwd /cdrom/cdrom0/s0/Solaris_10/Misc/jumpstart_sample# mkdir -p /jump/config# cp -r ./* /jump/config# lsany_machine net924_sun4c set_nfs4_domain* x86-begincheck* rules x86-class host_class upgrade

Page 5: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 점프 스타트 구성 파일 편집하기

파일 명 설명rules 클라이언트에 대한 구성 정보를 포함하고 있다 . 어떤

프로파일 (profile) 을 사용할 지를 결정한다 .check check 스 크 립 트 는 rules 파 일 의 오 류 를 확 인 하 는

스크립트이다 . 만약 오류가 없다면 rules.ok 파일이 만들어 진다 .

sysidcfg 기본 파일이 아니므로 새로 만들어줘야 한다 . 시스템 로케일 , 타임 서버 , 터미널 타입 , DNS 설정 , 네트웍 설정 , 커브로스 보안 설정 , root 암호등을 설정하는 파일이다 .

Page 6: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• Rules 파일 예제

# cd /jump/config# mv rules rules.OLD# vi ruleshostname client - profile finish_script

Page 7: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 프로파일 ( 클래스 파일 ) 편집하기– 설치 타입 , 로케일 , 파티션을 자동설정하는

단계이다 .# cat /jump/config/profileinstall_type initial_installsystem_type standalonelocale kopartitioning explicitfilesys c0t0d0s0 free /filesys c0t0d0s1 2048 swapfilesys c0t0d0s3 100 /p3filesys c0t0d0s4 100 /p4filesys c0t0d0s5 100 /p5cluster SUNWCXall

Page 8: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• Finish 스크립트

# vi /jump/config/finish_script#!/bin/shmount /dev/dsk/c0t0d0s0 /atouch /a/noautoshutdownumount /a

# chmod 755 finish_script

Page 9: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• rules.ok 파일 생성– 설정 파일에 이상이 없는지 체크한다 .

# ./checkValidating rules...Validating profile host_class...The custom JumpStart configuration is ok.solaris10 # ls rules.okrules.ok

Page 10: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• sysidcfg 파일 편집 ( 새로 생성 )– 설치 과정에서 설정 정보를 입력하는 단계에 해당한

다 .# vi /jump/config/sysidcfgnfs4_domain=dynamicsystem_locale=kotimezone=ROKtimeserver=localhostterminal=vt100name_service=NONEsecurity_policy=NONEroot_password=jYhSZ9rtKKbo6network_interface=primary{netmask 255.255.255.0 protocol_ipv6=no default_route=192.168.64.2}

Page 11: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 점프 스타트 서버에서 점프 스타트 클라이언트 추가하기

• /etc/hosts

• /etc/ethers

# cat /etc/hosts 127.0.0.1 localhost 192.168.64.3 sol10 sol10. loghost192.168.64.4 client

# cat /etc/ethers0:3:ba:4:33:78 client

Page 12: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 점프 스타트 클라이언트 추가 # dfsharesRESOURCE SERVER ACCESS TRANSPORT sol10:/jump/config solaris10 - -# ls # cd /jump/install/Solaris_10/Tools # ./add_install_client -c sol10:/jump/config -p sol10:/jump/config -s sol10:/jump/install client sun4uAdding "share -F nfs -o ro,anon=0 /jump/install" to /etc/dfs/dfstabmaking /tftpbootenabling tftp in /etc/inetd.confConverting /etc/inetd.confenabling network/tftp/udp6 serviceenabling network/rarp serviceenabling network/rpc/bootparams serviceupdating /etc/bootparamscopying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-1 #

Page 13: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• /etc/bootparams 파일 확인– 점프 스타트 클라이언트가 등록된 파일이다 .

# cat /etc/bootparamsjc_client root=sol10:/jump/install/Solaris_10/Tools/Boot install=sol10:/jump/install boottype=:in sysid_config=sol10:/jump/config install_config=sol10:/jump/config rootopts=:rsize=8192 #

Page 14: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 점프 스타트 서버에서 모니터링

# snoop sol10 clientns=<nop,nop,tstamp 67921730 63340> client -> sol10 TCP D=2049 S=518 Ack=2659297870 Seq=377060 Len=0 Win=49100 Options=<nop,nop,tstamp 63370 67921730>~~ 중략 ~~client -> sol10 TCP D=2049 S=518 Ack=2661155046 Seq=536404 Len=0 Win=42356 Options=<nop,nop,tstamp 91610 67924560> client -> sol10 NFS C READ3 FH=D7EA at 933888 for 8192

Page 15: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성

• 점프 스타트 클라이언트에서 작업

# halt{0} ok boot net - installok boot net - installBoot device: /pci@1f,0/pci@1,1/network@1,1 File and args: - installSunOS Release 5.10 Version Generic_127127-11 64-bitCopyright 1983-2008 Sun Microsystems, Inc. All rights reserved.Use is subject to license terms.whoami: no domain nameConfiguring devices.Using RPC Bootparams for network configuration information.Attempting to configure interface hme0.../dev/rdsk/c0t0d0s5 is cleanCreating new rsa public/private host key pairCreating new dsa public/private host key pairjc_client console login: rootPassword: ******Oct 8 jc_client login: ROOT LOGIN /dev/consoleSun Microsystems Inc. SunOS 5.10 Generic January 2005##

Page 16: 솔라리스 10 Chapter 23 점프 스타트 서버 관리 Solaris1. 점프 스타트 서버 구성