1. Zone 생성

 

1.1 Zone 구성

    [SaWeb#] zonecfg -z SaDB

        SaWeb: 그런 영역은 구성되지 않음

        새 영역 구성을 시작하려면 'create'을(를) 사용하십시오.

        zonecfg:SaDB> create

        zonecfg:SaDB> set zonepath=/SaDB

        zonecfg:SaDB> add net

        zonecfg:SaDB:net> set physical=pcn0

        zonecfg:SaDB:net> set address=192.168.60.11/24

        zonecfg:SaDB:net> end

        zonecfg:SaDB> verify

        zonecfg:SaDB> commit

        zonecfg:SaDB> exit

 

1.2 설정된 Zone의 구성 정보 파일 확인

    [SaWeb#] cat /etc/zones/SaDB.xml

        <?xml version="1.0" encoding="UTF-8"?>

        <!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">

        <!--

         DO NOT EDIT THIS FILE. Use zonecfg(1M) instead.

        -->

        <zone name="SaDB" zonepath="/SaDB" autoboot="false">

         <inherited-pkg-dir directory="/lib"/>

         <inherited-pkg-dir directory="/platform"/>

         <inherited-pkg-dir directory="/sbin"/>

         <inherited-pkg-dir directory="/usr"/>

         <network address="192.168.60.11/24" physical="pcn0"/>

        </zone>

 

1.3 Zone 설치

    설치할 파일시스템 혹은 디렉토리는 700의 소유권을 지정해야 함.

    [SaWeb#] chmod -R 700 /SaDB

    [SaWeb#] zoneadm -z SaDB install

        Preparing to install zone <SaDB>.

        Creating list of files to copy from the global zone.

        Copying <7916> files to the zone.

        Initializing zone product registry.

        Determining zone package initialization order.

        Preparing to initialize <1177> packages on the zone.

        Initializing package <965> of <1177>: percent complete: 81%

 

1.4 Zone 설치 확인

    현재 사용중인 Zone 확인

    [SaWeb#] zoneadm list -v

    현재 설정된 Zone확인

    [SaWeb#] zoneadm list -cp

        0:global:running:/::native:shared

        -:SaDB:incomplete:/SaWeb:b699c8f1-c025-4963-e61a-8654905075d3:native:shared

 

1.5 Zone 시작

    [SaWeb#] zoneadm -z SaDB boot

 

1.6 Zone 환경설정

    [SaWeb#] zlogin -C SaDB

    이후 절차는 솔라리스 초기 설치와 동일

 

1.7 Zone 에서 나오기

    [SaDB#] ~.

 

 

1.8 Zone 정지

    Zone으로 로그인해서 정지시키거나 Global모드에서 정지

    [SaDB#] halt 또는

    [SaWeb#] zoneadm -z SaDB halt

 

1.9 Zone 제거

    [SaWeb#] zoneadm -z SaDB halt

    [SaWeb#] zoneadm -z SaDB uninstall

    [SaWeb#] zonecfg -z SaDB delete

 

 

2. Resource Pool을 이용한 Zone 구성

 

2.1 Pool 시작

    [SaWeb#] pooladm -e

    [SaWeb#] poolcfg -dc discover

 

2.2 기본 Pool상태 확인

    [SaWeb#] poolcfg -dc info

        system default

            string    system.comment

            int    system.version 1

            boolean    system.bind-default true

            string    system.poold.objectives wt-load

 

            pool pool_default

                int    pool.sys_id 0

                boolean    pool.active true

                boolean    pool.default true

                int    pool.importance 1

                string    pool.comment

                pset    pset_default

 

            pset pset_default

                int    pset.sys_id -1

                boolean    pset.default true

                uint    pset.min 1

                uint    pset.max 65536

                string    pset.units population

                uint    pset.load 124

                uint    pset.size 2

                string    pset.comment

 

                cpu

                    int    cpu.sys_id 1

                    string    cpu.comment

                    string    cpu.status on-line

 

                cpu

                    int    cpu.sys_id 0

                    string    cpu.comment

                    string    cpu.status on-line

 

2.3 Processor set 구성

    [SaWeb#] poolcfg -dc 'create pset SaDB-pset (uint pset.min=1;uint pset.max=5)'

    [SaWeb#]

반응형

+ Recent posts