Sun Services

442
Sun Services Advanced System Administration for the Solaris™ 10 Operating System Advanced System Administration for the Solaris™ 10 Operating System SA-202-S10

Transcript of Sun Services

Page 1: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Ad

van

ced

Sys

tem

Ad

min

istr

atio

nfo

rth

e S

ola

ris™

10

Op

erat

ing

Sys

tem

SA

-202

-S10

Page 2: Sun Services

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c., 4

150

Net

wor

k C

ircl

e, S

anta

Cla

ra, C

alif

orni

a, 9

5054

, U.S

.A. A

ll ri

ghts

res

erve

d.

Thi

spr

oduc

tor

doc

umen

tis

prot

ecte

dby

copy

righ

tand

dis

trib

uted

und

erlic

ense

sre

stri

ctin

git

sus

e,co

pyin

g,d

istr

ibut

ion,

and

dec

ompi

lati

on.N

opa

rtof

this

prod

ucto

rd

ocum

entm

aybe

rep

rod

uced

in a

ny fo

rm b

y an

y m

eans

wit

hout

pri

or w

ritt

en a

utho

riza

tion

of S

un a

nd it

s lic

enso

rs, i

f any

.

Thi

rd-p

arty

sof

twar

e, in

clud

ing

font

tech

nolo

gy, i

s co

pyri

ghte

d a

nd li

cens

ed fr

om S

un s

uppl

iers

.

Sun,

Sun

Mic

rosy

stem

s,th

eSu

nlo

go,S

olar

is,J

umpS

tart

,Sun

Solv

e,O

penB

oot,

Ult

ra,S

olst

ice

Dis

kSui

te,S

unJa

va,a

ndU

ltra

SPA

RC

are

trad

emar

ksor

regi

ster

edtr

adem

arks

ofSu

nM

icro

syst

ems,

Inc.

in th

e U

.S. a

nd o

ther

cou

ntri

es.

All

SPA

RC

trad

emar

ksar

eus

edun

der

licen

sean

dar

etr

adem

arks

orre

gist

ered

trad

emar

ksof

SPA

RC

Inte

rnat

iona

l,In

c.in

the

U.S

.and

othe

rco

untr

ies.

Prod

ucts

bear

ing

SPA

RC

trad

emar

ks a

re b

ased

upo

n an

arc

hite

ctur

e d

evel

oped

by

Sun

Mic

rosy

stem

s, In

c.

UN

IX is

a r

egis

tere

d tr

adem

ark

in th

e U

.S. a

nd o

ther

cou

ntri

es, e

xclu

sive

ly li

cens

ed th

roug

h X

/O

pen

Com

pany

, Ltd

.

The

OPE

NL

OO

Kan

dSu

nG

raph

ical

Use

rInt

erfa

cew

asd

evel

oped

bySu

nM

icro

syst

ems,

Inc.

fori

tsus

ers

and

licen

sees

.Sun

ackn

owle

dge

sth

epi

onee

ring

effo

rts

ofX

erox

inre

sear

chin

gan

dd

evel

opin

gth

eco

ncep

tofv

isua

lor

grap

hica

luse

rin

terf

aces

for

the

com

pute

rin

dus

try.

Sun

hold

sa

non-

excl

usiv

elic

ense

from

Xer

oxto

the

Xer

oxG

raph

ical

Use

rIn

terf

ace,

whi

chlic

ense

als

o co

vers

Sun

’s li

cens

ees

who

impl

emen

t OPE

N L

OO

K G

UIs

and

oth

erw

ise

com

ply

wit

h Su

n’s

wri

tten

lice

nse

agre

emen

ts.

U.S

. Gov

ernm

ent a

ppro

val m

ight

be

requ

ired

whe

n ex

port

ing

the

prod

uct.

RE

STR

ICT

ED

RIG

HT

S:U

se,d

uplic

atio

n,or

dis

clos

ure

byth

eU

.S.G

over

nmen

tis

subj

ect

tore

stri

ctio

nsof

FAR

52.2

27-1

4(g)

(2)(

6/87

)an

dFA

R52

.227

-19(

6/87

),or

DFA

R25

2.22

7-70

15(b

)(6/

95) a

nd D

FAR

227

.720

2-3(

a).

DO

CU

ME

NT

AT

ION

ISPR

OV

IDE

D“A

SIS

”A

ND

AL

LE

XPR

ESS

OR

IMPL

IED

CO

ND

ITIO

NS,

RE

PRE

SEN

TA

TIO

NS,

AN

DW

AR

RA

NT

IES,

INC

LU

DIN

GA

NY

IMPL

IED

WA

RR

AN

TY

OF

ME

RC

HA

NT

AB

ILIT

Y,F

ITN

ESS

FOR

APA

RT

ICU

LA

RPU

RPO

SEO

RN

ON

-IN

FRIN

GE

ME

NT

,AR

ED

ISC

LA

IME

D,E

XC

EPT

TO

TH

EE

XT

EN

TT

HA

TSU

CH

DIS

CL

AIM

ER

SA

RE

HE

LD

TO

BE

LE

GA

LL

Y IN

VA

LID

.

Page 3: Sun Services

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s In

c., 4

150

Net

wor

k C

ircl

e, S

anta

Cla

ra, C

alif

orni

a 95

054,

Eta

ts-U

nis.

Tou

s d

roit

s ré

serv

és.

Ce

prod

uit

oud

ocum

ent

est

prot

égé

par

unco

pyri

ght

etd

istr

ibué

avec

des

licen

ces

quie

nre

stre

igne

ntl’u

tilis

atio

n,la

copi

e,la

dis

trib

utio

n,et

lad

écom

pila

tion

.Auc

une

part

ied

ece

prod

uit o

u d

ocum

ent n

e pe

ut ê

tre

repr

odui

te s

ous

aucu

ne fo

rme,

par

que

lque

moy

en q

ue c

e so

it, s

ans

l’aut

oris

atio

n pr

éala

ble

et é

crit

e d

e Su

n et

de

ses

baill

eurs

de

licen

ce, s

’il y

en

a.

Le

logi

ciel

dét

enu

par

des

tier

s, e

t qui

com

pren

d la

tech

nolo

gie

rela

tive

aux

pol

ices

de

cara

ctèr

es, e

st p

roté

gé p

ar u

n co

pyri

ght e

t lic

enci

é pa

r d

es fo

urni

sseu

rs d

e Su

n.

Sun,

Sun

Mic

rosy

stem

s,le

logo

Sun,

Sola

ris,

Jum

pSta

rt,S

unSo

lve,

Ope

nBoo

t,U

ltra

,Sol

stic

eD

iskS

uite

,Sun

Java

,etU

ltra

SPA

RC

sont

des

mar

ques

de

fabr

ique

oud

esm

arqu

esd

épos

ées

de

Sun

Mic

rosy

stem

s, In

c. a

ux E

tats

-Uni

s et

dan

s d

’aut

res

pays

.

Tou

tes

les

mar

ques

SPA

RC

sont

utili

sées

sous

licen

ceso

ntd

esm

arqu

esd

efa

briq

ueou

des

mar

ques

dép

osée

sd

eSP

AR

CIn

tern

atio

nal,

Inc.

aux

Eta

ts-U

nis

etd

ans

d’a

utre

spa

ys.L

espr

odui

ts p

orta

nt le

s m

arqu

es S

PAR

C s

ont b

asés

sur

une

arc

hite

ctur

e d

ével

oppé

e pa

r Su

n M

icro

syst

ems,

Inc.

UN

IX e

st u

ne m

arqu

es d

épos

ée a

ux E

tats

-Uni

s et

dan

s d

’aut

res

pays

et l

icen

ciée

exc

lusi

vem

ent p

ar X

/O

pen

Com

pany

, Ltd

.

L’in

terf

aces

d’u

tilis

atio

ngr

aphi

que

OPE

NL

OO

Ket

Sun™

aét

éd

ével

oppé

epa

rSu

nM

icro

syst

ems,

Inc.

pour

ses

utili

sate

urs

etlic

enci

és.S

unre

conn

aîtl

esef

fort

sd

epi

onni

ers

de

Xer

oxpo

urla

rech

erch

eet

led

ével

oppe

men

tdu

conc

eptd

esin

terf

aces

d’u

tilis

atio

nvi

suel

leou

grap

hiqu

epo

url’i

ndus

trie

de

l’inf

orm

atiq

ue.S

und

étie

ntun

elic

ence

non

excl

usiv

ed

eX

erox

sur

l’int

erfa

ced

’uti

lisat

ion

grap

hiqu

eX

erox

,cet

telic

ence

couv

rant

égal

emen

tle

slic

enci

ésd

eSu

nqu

imet

tent

enpl

ace

l’int

erfa

ced

’uti

lisat

ion

grap

hiqu

eO

PEN

LO

OK

etqu

ien

outr

ese

conf

orm

ent a

ux li

cenc

es é

crit

es d

e Su

n.

L’a

ccor

d d

u go

uver

nem

ent a

mér

icai

n es

t req

uis

avan

t l’e

xpor

tati

on d

u pr

odui

t.

LA

DO

CU

ME

NT

AT

ION

EST

FOU

RN

IE“E

NL

’ET

AT

”E

TT

OU

TE

SA

UT

RE

SC

ON

DIT

ION

S,D

EC

LA

RA

TIO

NS

ET

GA

RA

NT

IES

EX

PRE

SSE

SO

UT

AC

ITE

SSO

NT

FOR

ME

LL

EM

EN

TE

XC

LU

ES,

DA

NS

LA

ME

SUR

EA

UT

OR

ISE

EPA

RL

AL

OIA

PPL

ICA

BL

E,Y

CO

MPR

ISN

OT

AM

ME

NT

TO

UT

EG

AR

AN

TIE

IMPL

ICIT

ER

EL

AT

IVE

AL

AQ

UA

LIT

EM

AR

CH

AN

DE

,AL

’APT

ITU

DE

A U

NE

UT

ILIS

AT

ION

PA

RT

ICU

LIE

RE

OU

A L

’AB

SEN

CE

DE

CO

NT

RE

FAÇ

ON

.

Page 4: Sun Services

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

miv

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Cou

rse

Con

tent

s

Ab

ou

t T

his

Co

urs

e...

......

......

......

......

......

......

......

......

......

......

......

......

......

....P

refa

ce-x

ivC

ours

e G

oals

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.Pre

face

-xv

Top

ics

Not

Cov

ered

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

Pref

ace-

xvi

How

Pre

pare

d A

re Y

ou?

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....P

refa

ce-x

xiIn

trod

ucti

ons

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...Pr

efac

e-xx

iii

Des

crib

ing

Inte

rfac

e C

on

fig

ura

tio

n...

......

......

......

......

......

......

......

......

......

......

......

...1-

1O

bjec

tive

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

-2C

ontr

ollin

g an

d M

onit

orin

g N

etw

ork

Inte

rfac

es...

......

......

......

......

......

......

......

......

......

......

......

......

....1

-3D

ispl

ayin

g th

e M

AC

Ad

dre

ss...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

1-4

Dis

play

ing

the

IP A

dd

ress

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...1-

6M

arki

ng a

n E

ther

net I

nter

face

as

Dow

n...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.1-7

Send

ing

ICM

P E

CH

O_R

EQ

UE

ST P

acke

ts...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...1-

8C

aptu

ring

and

Insp

ecti

ng N

etw

ork

Pack

ets

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...1-

9C

onfi

guri

ng IP

v4 In

terf

aces

at B

oot T

ime

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

1-11

The

/etc/hostname.xxn

File

Ent

ries

and

Cor

resp

ond

ing

Inte

rfac

es...

......

......

......

......

......

......

..1-

12C

hang

ing

the

Syst

em H

ost N

ame

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

1-13

The

sys-unconfig

Com

man

d...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...1-

14

Des

crib

ing

th

e C

lien

t-S

erve

r M

od

el...

......

......

......

......

......

......

......

......

......

......

......

..2-

1O

bjec

tive

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....2

-2In

trod

ucin

g C

lient

-Ser

ver

Proc

esse

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.2-3

Intr

oduc

ing

Clie

nt P

roce

sses

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

2-4

Intr

oduc

ing

Serv

er P

roce

sses

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....2

-5T

he S

ervi

ce M

anag

emen

t Fac

ility

(SM

F)...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

2-6

SMF

Serv

ice

Iden

tifi

ers

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..2-

8

Page 5: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mv

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Lis

ting

Ser

vice

Info

rmat

ion

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.2-9

Serv

ice

Stat

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..2-

10M

ilest

ones

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....2

-11

The

svc.startd

Dae

mon

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..2-

12T

he S

ervi

ce C

onfi

gura

tion

Rep

osit

ory

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

2-13

Star

ting

Ser

ver

Proc

esse

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

2-14

The

Impa

ct o

f SM

F on

Net

wor

k Se

rvic

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...2-

15In

trod

ucin

g N

etw

ork

Port

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..2-

16St

arti

ng S

ervi

ces

Tha

t Use

a W

ell-

Kno

wn

Port

......

......

......

......

......

......

......

......

......

......

......

......

......

..2-

19R

eque

stin

g a

Wel

l-K

now

n Se

rvic

e...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..2-

20St

arti

ng R

PC S

ervi

ces

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...2-

21St

arti

ng R

PC S

ervi

ces

at B

oot T

ime

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....2

-22

Star

ting

RPC

Ser

vice

s on

Dem

and

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

2-23

Req

uest

ing

an R

PC A

dd

ress

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...2-

24U

sing

therpcinfo

Com

man

ds

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....2

-25

Del

etin

g R

PC S

ervi

ce R

egis

trat

ion

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

2-26

Cu

sto

miz

ing

th

e S

ola

ris

Man

agem

ent

Co

nso

le...

......

......

......

......

......

......

......

......

.3-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.3-2

Sola

ris

Man

agem

ent C

onso

le T

oolb

ox E

dit

or A

ctio

ns...

......

......

......

......

......

......

......

......

......

......

......

.3-4

Sola

ris

Man

agem

ent C

onso

le C

ateg

orie

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...3-

10So

lari

s M

anag

emen

t Con

sole

Too

lbox

Ed

itor

......

......

......

......

......

......

......

......

......

......

......

......

......

....3

-11

Ad

din

g a

Too

lbox

UR

L...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...3-

13A

dd

ing

a T

ool

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....3

-14

Man

agin

g S

wap

Co

nfi

gu

rati

on

......

......

......

......

......

......

......

......

......

......

......

......

......

.4-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.4-2

Vir

tual

Mem

ory

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...4-

3Ph

ysic

al R

AM

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

4-4

Swap

Spa

ce...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.4-5

Page 6: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mvi

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

The

swapfs

File

Sys

tem

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.4-7

Pagi

ng...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....4

-8C

onfi

guri

ng S

wap

Spa

ce...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...4-

9D

ispl

ayin

g th

e C

urre

nt S

wap

Con

figu

rati

on...

......

......

......

......

......

......

......

......

......

......

......

......

......

...4-

10A

dd

ing

Swap

Spa

ce...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...4-

12R

emov

ing

Swap

Spa

ce...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....4

-14

Man

agin

g C

rash

Du

mp

s an

d C

ore

File

s...

......

......

......

......

......

......

......

......

......

......

.5-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.5-2

Man

agin

g C

rash

Dum

p B

ehav

ior

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...5-

3C

rash

Dum

p...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

5-4

Dis

play

ing

the

Cur

rent

Dum

p C

onfi

gura

tion

......

......

......

......

......

......

......

......

......

......

......

......

......

......

5-5

Cha

ngin

g th

e C

rash

Dum

p C

onfi

gura

tion

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

5-6

Man

agin

g C

ore

File

Beh

avio

r...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.5-7

Cor

e Fi

les

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..5-

8D

ispl

ayin

g th

e C

urre

nt C

ore

File

Con

figu

rati

on...

......

......

......

......

......

......

......

......

......

......

......

......

.....

5-9

Cha

ngin

g th

e C

ore

File

Con

figu

rati

on...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.5-1

1Pa

tter

n O

ptio

ns fo

r th

ecoreadm

Com

man

d...

......

......

......

......

......

......

......

......

......

......

......

......

......

....5

-13

Patt

ern

Opt

ions

for

the

Glo

bal C

ore

File

Con

tent

......

......

......

......

......

......

......

......

......

......

......

......

....5

-14

Exa

mpl

es o

f the

coreadm

Com

man

d...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....5

-16

Co

nfi

gu

rin

g N

FS

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.6-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.6-2

NFS

Ben

efit

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

6-3

NFS

Dis

trib

uted

File

Sys

tem

Fun

dam

enta

ls...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

6-5

Man

agin

g an

NFS

Ser

ver

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

6-8

NFS

Ser

ver

Dae

mon

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.6-1

2M

anag

ing

the

NFS

Ser

ver

Dae

mon

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

6-17

NFS

Ser

ver

Com

man

ds

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

6-19

Con

figu

ring

the

NFS

Ser

ver

for

Shar

ing

Res

ourc

es...

......

......

......

......

......

......

......

......

......

......

......

....6

-20

Page 7: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mvi

iC

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

g th

e N

FS C

lient

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...6-

24N

FS C

lient

Dae

mon

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.6-2

6M

anag

ing

the

NFS

Clie

nt D

aem

ons

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...6-

27N

FS C

lient

Com

man

ds

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.6-2

9C

onfi

guri

ng th

e N

FS C

lient

for

Mou

ntin

g R

esou

rces

......

......

......

......

......

......

......

......

......

......

......

...6-

30T

hemount

Com

man

d O

ptio

ns...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...6-

34Fu

ndam

enta

ls o

f NFS

Ser

ver

Log

ging

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

6-35

Con

figu

ring

NFS

Log

Pat

hs...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.6-3

6In

itia

ting

NFS

Log

ging

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.6-3

9M

anag

ing

NFS

Wit

h th

e So

lari

s M

anag

emen

t Con

sole

Sto

rage

Fol

der

Too

ls...

......

......

......

......

.6-4

0

Co

nfi

gu

rin

g A

uto

FS

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.7-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.7-2

Aut

oFS

Fund

amen

tals

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....7

-3U

sing

Aut

omou

nt M

aps

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

7-7

Con

figu

ring

the

Mas

ter

Map

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

7-8

Iden

tify

ing

Mou

nt P

oint

s fo

r Sp

ecia

l Map

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.7-9

Usi

ng th

e/net

Dir

ecto

ry...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

7-10

Ad

din

g D

irec

t Map

Ent

ries

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

7-11

Ad

din

g In

dir

ect M

ap E

ntri

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

7-12

Upd

atin

g th

e A

utom

ount

Map

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

7-14

Stop

ping

and

Sta

rtin

g th

e A

utom

ount

Sys

tem

......

......

......

......

......

......

......

......

......

......

......

......

......

...7-

15

Des

crib

ing

RA

ID a

nd

th

e S

ola

ris™

Vo

lum

e M

anag

er S

oft

war

e...

......

......

......

......

8-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.8-2

Intr

oduc

ing

RA

ID...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..8-

3R

AID

0...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...8-

4R

AID

1...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...8-

5R

AID

0+

1...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

8-7

RA

ID 1

+0

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..8-

8

Page 8: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mvi

iiC

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Mir

ror

Opt

ions

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....8

-9M

irro

r R

ead

Pol

icie

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..8-

10M

irro

r W

rite

Pol

icie

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.8-1

1R

AID

5...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.8-1

2H

ard

war

e C

onsi

der

atio

ns...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....8

-16

Cho

osin

g St

orag

e M

echa

nism

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..8-

17O

ptim

izin

g R

edun

dan

t Sto

rage

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...8-

18In

trod

ucin

g So

lari

s V

olum

e M

anag

er S

oftw

are

Con

cept

s...

......

......

......

......

......

......

......

......

......

....8

-19

Log

ical

Vol

ume

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.8-2

0So

ft P

arti

tion

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.8-2

1In

trod

ucin

g th

e St

ate

Dat

abas

e...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..8-

22

Co

nfi

gu

rin

g S

ola

ris

Vo

lum

e M

anag

er S

oft

war

e...

......

......

......

......

......

......

......

......

.9-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.9-2

Sola

ris

Vol

ume

Man

ager

Con

cept

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...9-

3St

ate

Dat

abas

e R

eplic

as...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

9-4

Cre

atin

g th

e St

ate

Dat

abas

e...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....9

-6C

reat

ing

the

Stat

e D

atab

ase

Usi

ng th

e So

lari

s M

anag

emen

t Con

sole

......

......

......

......

......

......

......

..9-

7C

onfi

guri

ng R

AID

-0...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....9

-9C

reat

ing

a R

AID

-0 V

olum

e U

sing

the

Com

man

d L

ine

......

......

......

......

......

......

......

......

......

......

......

.9-1

0C

reat

ing

a R

AID

-0 V

olum

e U

sing

Sol

aris

Man

agem

ent C

onso

le (S

MC

)...

......

......

......

......

......

....9

-14

Con

figu

ring

RA

ID-1

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

9-16

Bui

ldin

g a

Mir

ror

of th

e R

oot (

/) F

ile S

yste

m...

......

......

......

......

......

......

......

......

......

......

......

......

......

..9-

18U

nmir

rori

ng th

e R

oot (

/) F

ile S

yste

m...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...9-

27

Co

nfi

gu

rin

g R

ole

-Bas

ed A

cces

s C

on

tro

l (R

BA

C)

......

......

......

......

......

......

......

.....

10-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

10-2

RB

AC

Fun

dam

enta

ls...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.10-

3K

ey R

BA

C F

iles

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.10-

4T

heuser_attr

File

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.10-

5

Page 9: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mix

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Rol

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

10-6

Ass

igni

ng R

ight

s Pr

ofile

s to

Use

rs...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..10

-7T

he/etc/security/exec_attr

File

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

0-11

Ass

igni

ng R

ight

s Pr

ofile

s to

Rol

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.10-

13A

ssig

ning

Rol

es to

Use

rs...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

0-17

Usi

ng R

oles

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

10-1

8A

utho

riza

tion

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

0-19

Def

ault

Aut

hori

zati

ons

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

10-2

0A

ssig

ning

Aut

hori

zati

ons

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

10-2

1A

ssig

ning

Aut

hori

zati

ons

to R

oles

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...10

-23

Ass

igni

ng A

utho

riza

tion

s to

Rig

hts

Prof

iles

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

0-25

RB

AC

Con

figu

rati

on F

ile S

umm

ary

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.10-

26M

anag

ing

RB

AC

Usi

ng th

e So

lari

s M

anag

emen

t Con

sole

......

......

......

......

......

......

......

......

......

.....

10-2

8

Co

nfi

gu

rin

g S

yste

m M

essa

gin

g...

......

......

......

......

......

......

......

......

......

......

......

......

11-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

11-2

The

syslog

Con

cept

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

11-3

The

/etc/syslog.conf

File

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...11

-4T

hesyslogd

Dae

mon

and

them4

Mac

ro P

roce

ssor

......

......

......

......

......

......

......

......

......

......

......

......

11-5

Con

figu

ring

the/etc/syslog.conf

File

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

11-7

Stop

ping

and

Sta

rtin

g th

esyslogd

Dae

mon

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

1-10

Con

figu

ring

syslog

Mes

sagi

ng...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

1-11

Mon

itor

ing

asyslog

File

in R

eal T

ime

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.11-

12U

sing

the

Sola

ris

Man

agem

ent C

onso

le L

og V

iew

er...

......

......

......

......

......

......

......

......

......

......

.....

11-1

3

Usi

ng

Nam

e S

ervi

ces

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...12

-1O

bjec

tive

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..12

-2N

ame

Serv

ice

Con

cept

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.12-

3D

omai

n N

ame

Syst

em (D

NS)

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.12-

6N

etw

ork

Info

rmat

ion

Serv

ice

(NIS

)...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

12-9

Page 10: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mx

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Net

wor

k In

form

atio

n Se

rvic

e Pl

us (N

IS+

)...

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

12-1

2L

ight

wei

ght D

irec

tory

Acc

ess

Prot

ocol

(LD

AP)

......

......

......

......

......

......

......

......

......

......

......

......

....1

2-15

Nam

e Se

rvic

e Sw

itch

File

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.12-

18C

onfi

guri

ng th

e N

ame

Serv

ice

Cac

he D

aem

on (nscd

)...

......

......

......

......

......

......

......

......

......

......

..12

-23

Ret

riev

ing

Nam

e Se

rvic

e In

form

atio

n...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

12-2

6

Co

nfi

gu

rin

g N

ame

Ser

vice

Clie

nts

......

......

......

......

......

......

......

......

......

......

......

.....

13-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

13-2

Con

figu

ring

a D

NS

Clie

nt...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

3-3

Con

figu

ring

the

DN

S C

lient

Dur

ing

Inst

alla

tion

......

......

......

......

......

......

......

......

......

......

......

......

.....

13-4

Ed

itin

g D

NS

Clie

nt C

onfi

gura

tion

File

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

13-6

Sett

ing

Up

an L

DA

P C

lient

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

13-9

Clie

nt A

uthe

ntic

atio

n...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

3-10

Clie

nt P

rofi

le a

nd P

roxy

Acc

ount

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

13-1

2C

lient

Init

ializ

atio

n...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..13

-13

Con

figu

ring

the

LD

AP

Clie

nt D

urin

g In

stal

lati

on...

......

......

......

......

......

......

......

......

......

......

......

....1

3-14

Init

ializ

ing

the

Nat

ive

LD

AP

Clie

nt...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

3-15

Cop

ying

the/etc/nsswitch.ldap

File

to th

e/etc/nsswitch.conf

File

......

......

......

......

.....

13-1

6L

isti

ng L

DA

P E

ntri

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

13-1

7U

ncon

figu

ring

an

LD

AP

Clie

nt...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

13-1

8

Co

nfi

gu

rin

g t

he

Net

wo

rk In

form

atio

n S

ervi

ce (

NIS

)...

......

......

......

......

......

......

....1

4-1

Obj

ecti

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

14-2

NIS

Fun

dam

enta

ls...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

14-3

NIS

Nam

espa

ce In

form

atio

n...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

14-4

Map

Con

tent

s an

d S

ort K

eys

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...14

-5C

omm

and

s to

Rea

d M

aps

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..14

-6N

IS D

omai

ns...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...14

-7N

IS M

aste

r Se

rver

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...14

-8N

IS S

lave

Ser

vers

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

4-9

Page 11: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mxi

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

NIS

Clie

nts

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.14-

10N

IS P

roce

sses

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...14

-11

Con

figu

ring

the

Nam

e Se

rvic

e Sw

itch

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...14

-12

NIS

Sec

urit

y...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..14

-13

Con

figu

ring

an

NIS

Dom

ain

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.14-

14G

ener

atin

g N

IS M

aps

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.14-

16L

ocat

ing

Sour

ce F

iles

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..14

-17

Con

vert

ing

ASC

II S

ourc

e Fi

les

Into

NIS

Map

s...

......

......

......

......

......

......

......

......

......

......

......

......

....1

4-19

Con

figu

ring

the

NIS

Mas

ter

Serv

er...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

14-2

0T

esti

ng th

e N

IS S

ervi

ce...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.14-

23C

onfi

guri

ng th

e N

IS C

lient

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

4-24

Con

figu

ring

the

NIS

Sla

ve S

erve

r...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..14

-26

Upd

atin

g th

e N

IS M

ap...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..14

-29

Intr

od

uct

ion

to

Zo

nes

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..15

-1O

bjec

tive

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..15

-2So

lari

s Z

ones

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

15-3

Zon

e Fe

atur

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

4Z

one

Typ

es...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

15-5

Glo

bal Z

ones

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

15-6

Non

-Glo

bal Z

ones

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...15

-8Z

one

Dae

mon

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

15-9

Zon

e Fi

le S

yste

ms

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

11Z

one

Net

wor

king

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..15

-14

Zon

e St

ates

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

15C

onfi

guri

ng Z

ones

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

15-1

6Id

enti

fyin

g Z

one

Com

pone

nts

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

5-17

Allo

cati

ng F

ile S

yste

m S

pace

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

18U

sing

thezonecfg

Com

man

d...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

19T

hezonecfg

Sub

com

man

ds

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

21

Page 12: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mxi

iC

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

zonecfg

Res

ourc

e Pa

ram

eter

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

15-2

2Z

one

Con

figu

rati

on W

alk-

Thr

ough

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

24V

iew

ing

the

Zon

e C

onfi

gura

tion

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

15-2

7U

sing

thezoneadm

Com

man

d...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

28In

stal

ling

Pack

ages

in Z

ones

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.15-

35

Des

crib

ing

th

e C

ust

om

Ju

mp

Sta

rt™

Co

nfi

gu

rati

on

s...

......

......

......

......

......

......

..16

-1O

bjec

tive

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..16

-2Ju

mpS

tart

™ S

oftw

are

Con

figu

rati

ons

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

16-3

Purp

ose

of Ju

mpS

tart

Sof

twar

e...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..16

-4B

oot S

ervi

ces

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

16-6

Iden

tifi

cati

on S

ervi

ces

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..16

-8C

onfi

gura

tion

Ser

vice

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..16

-10

Ass

ocia

ting

a C

onfi

gura

tion

Wit

h a

Clie

nt...

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

6-12

Inst

alla

tion

Ser

vice

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.16-

13Im

plem

enti

ng a

Bas

ic Ju

mpS

tart

Ser

ver

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

16-1

5Sp

oolin

g th

e O

pera

ting

Sys

tem

Imag

e...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

16-1

7E

dit

ing

thesysidcfg

File

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

16-2

1E

dit

ing

therules

and

Pro

file

File

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

16-2

6R

unni

ng th

echeck

Scr

ipt

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

16-3

0R

unni

ng th

eadd_install_client

Scr

ipt.

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.16-

31B

ooti

ng th

e Ju

mpS

tart

Clie

nt...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...16

-36

Sett

ing

Up

Jum

pSta

rt S

oftw

are

Con

figu

rati

on A

lter

nati

ves

......

......

......

......

......

......

......

......

......

..16

-37

Cre

atin

g R

AID

-1 V

olum

es U

sing

the

Prof

ile F

ile...

......

......

......

......

......

......

......

......

......

......

......

......

16-3

8

Per

form

ing

a F

lash

Inst

alla

tio

n...

......

......

......

......

......

......

......

......

......

......

......

......

..17

-1O

bjec

tive

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..17

-2T

he F

lash

Inst

alla

tion

Fea

ture

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.17-

3Fl

ash

Inst

alla

tion

Fea

ture

Use

s...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..17

-4Fl

ash

Dep

loym

ent M

etho

ds

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

7-5

Page 13: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mxi

iiC

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Flas

h In

stal

lati

on P

roce

ss...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

17-6

Inst

allin

g th

e M

aste

r...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..17

-7C

reat

ing

the

Flas

h A

rchi

ve...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...17

-8D

eplo

ying

the

Flas

h A

rchi

ve to

the

Clo

ne...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.17-

9H

ard

war

e R

equi

rem

ents

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..17

-10

Soft

war

e R

equi

rem

ents

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

....1

7-11

Man

ipul

atin

g a

Flas

h A

rchi

ve...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..17

-12

Cre

atin

g a

Flas

h A

rchi

ve...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

.....

17-1

3D

iffe

rent

ial A

rchi

ves

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

..17

-16

Ad

min

iste

ring

a F

lash

Arc

hive

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...17

-17

Usi

ng a

Fla

sh A

rchi

ve fo

r In

stal

lati

on...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

17-1

8U

sing

a F

lash

Arc

hive

Wit

h Ju

mpS

tart

Sof

twar

e...

......

......

......

......

......

......

......

......

......

......

......

......

17-1

9Ju

mps

tart

Usi

ng a

Fla

sh A

rchi

ve...

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

......

...17

-22

Page 14: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Pre

face

Abo

ut T

his

Cou

rse

Page 15: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xv

of x

xiii

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Cou

rse

Goa

ls

Upo

n co

mpl

etio

n of

this

cou

rse,

you

sho

uld

be

able

to:

•D

escr

ibe

netw

ork

basi

cs•

Man

age

virt

ual f

ile s

yste

ms

and

cor

e d

umps

•M

anag

e st

orag

e vo

lum

es•

Con

trol

acc

ess

and

con

figu

re s

yste

m m

essa

ging

•Se

t up

nam

e se

rvic

es•

Perf

orm

ad

vanc

ed in

stal

lati

on p

roce

dur

es

Page 16: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xvi

of x

xiii

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Topi

csN

otC

over

ed

Thi

s co

urse

doe

s no

t cov

er th

e fo

llow

ing

topi

cs. M

any

of th

ese

topi

cs a

re c

over

ed in

oth

er c

ours

es o

ffer

ed b

y Su

n Se

rvic

es:

•B

asic

UN

IX®

com

man

ds

– C

over

ed in

SA

-100

-S10

:U

NIX

® E

ssen

tial

s Fe

atur

ing

the

Sola

ris™

10

Ope

rati

ngSy

stem

•T

he v

i ed

itor

– C

over

ed in

SA

-100

-S10

:UN

IX®

Ess

enti

als

Feat

urin

g th

e So

lari

s™ 1

0 O

pera

ting

Sys

tem

•B

asic

UN

IX fi

le s

ecur

ity

– C

over

ed in

SA

-100

-S10

:U

NIX

® E

ssen

tial

s Fe

atur

ing

the

Sola

ris™

10

Ope

rati

ngSy

stem

•So

ftw

are

pack

age

adm

inis

trat

ion

–C

over

edin

SA-2

00-

S10:

Inte

rmed

iate

Sys

tem

Adm

inis

trat

ion

for

the

Sola

ris™

10 O

pera

ting

Sys

tem

Page 17: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xvi

i of x

xiii

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Topi

csN

otC

over

ed

•Pa

tch

mai

nten

ance

– C

over

ed in

SA

-200

-S10

:In

term

edia

te S

yste

m A

dmin

istr

atio

n fo

r th

e So

lari

s™ 1

0O

pera

ting

Sys

tem

•A

dd

ing

user

s us

ing

the

Sola

ris

Man

agem

ent C

onso

leso

ftw

are

– C

over

ed in

SA

-200

-S10

:Int

erm

edia

te S

yste

mA

dmin

istr

atio

n fo

r th

e So

lari

s™ 1

0 O

pera

ting

Sys

tem

•B

asic

syst

emse

curi

ty–

Cov

ered

inSA

-100

-S10

:UN

IX®

Ess

enti

als

Feat

urin

g th

e So

lari

s™ 1

0 O

pera

ting

Sys

tem

•A

dm

inis

teri

ng in

itia

lizat

ion

file

s –

Cov

ered

in S

A-2

00-

S10:

Inte

rmed

iate

Sys

tem

Adm

inis

trat

ion

for

the

Sola

ris™

10 O

pera

ting

Sys

tem

Page 18: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xvi

ii of

xxi

iiC

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Topi

csN

otC

over

ed

•A

dva

nced

file

per

mis

sion

s –

Cov

ered

in S

A-2

00-S

10:

Inte

rmed

iate

Sys

tem

Adm

inis

trat

ion

for

the

Sola

ris™

10

Ope

rati

ng S

yste

m•

Bac

kup

and

rec

over

y –

Cov

ered

in S

A-2

00-S

10:

Inte

rmed

iate

Sys

tem

Adm

inis

trat

ion

for

the

Sola

ris™

10

Ope

rati

ng S

yste

m•

The

lppr

ints

ervi

cean

dpr

intc

omm

and

s–

Cov

ered

inSA

-200

-S10

:Int

erm

edia

te S

yste

m A

dmin

istr

atio

n fo

r th

eSo

lari

s™ 1

0 O

pera

ting

Sys

tem

•Pr

oces

s co

ntro

l – C

over

ed in

SA

-200

-S10

: Int

erm

edia

teSy

stem

Adm

inis

trat

ion

for

the

Sola

ris™

10

Ope

rati

ngSy

stem

Page 19: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xix

of x

xiii

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Topi

csN

otC

over

ed

•A

ll th

e ne

w fe

atur

es in

Sol

aris

10

– C

over

ed in

SA

-22

5S10

:Sol

aris

™ 1

0 fo

r E

xper

ienc

ed S

yste

mA

dmin

istr

ator

s•

Har

dw

are

or s

oftw

are

trou

bles

hoot

ing

– C

over

ed in

ST-3

50:S

un™

Sys

tem

s Fa

ult A

naly

sis

Wor

ksho

pSys

tem

tuni

ng –

Cov

ered

in S

A-4

00:E

nter

pris

e Sy

stem

Per

form

ance

Man

agem

ent

•D

etai

led

shel

lpro

gram

min

g–

Cov

ered

inSA

-245

:She

llP

rogr

amm

ing

for

Syst

em A

dmin

istr

ator

s•

Det

aile

dne

twor

kad

min

istr

atio

nco

ncep

ts–

Cov

ered

inSA

-300

-S10

:Net

wor

k A

dmin

istr

atio

n fo

r th

e So

lari

s™ 1

0O

pera

ting

Sys

tem

Page 20: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xx

of x

xiii

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

Topi

csN

otC

over

ed

Ref

erto

the

Sun

Serv

ices

cata

log

for

spec

ific

info

rmat

ion

onco

urse

cont

ent a

nd r

egis

trat

ion.

Page 21: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xxi

of x

xiii

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

How

Pre

pare

dA

reYo

u?

To b

e su

re y

ou a

re p

repa

red

to ta

ke th

is c

ours

e, c

an y

ouan

swer

yes

to th

e fo

llow

ing

ques

tion

s?

•C

an y

ou in

stal

l and

boo

t the

Sol

aris

™ 1

0 O

pera

ting

Syst

em (S

olar

is10

OS)

on

a st

and

-alo

ne w

orks

tati

on?

•C

an y

ou im

plem

ent b

asic

sys

tem

sec

urit

y?•

Can

you

ad

d u

sers

to th

e sy

stem

usi

ng th

e So

lari

sM

anag

emen

t Con

sole

sof

twar

e?•

Can

you

use

thepkgadd

com

man

d to

ad

d s

oftw

are

pack

ages

?

Page 22: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xxi

i of x

xiii

Cop

yrig

ht 2

006

Sun

Mic

rosy

stem

s, In

c. A

ll R

ight

s R

eser

ved.

Sun

Ser

vice

s, R

evis

ion

B

How

Pre

pare

dA

reYo

u?

•C

an y

ou m

onit

or a

nd m

ount

file

sys

tem

s?•

Can

you

man

age

dis

k d

evic

es a

nd p

roce

sses

?•

Can

you

per

form

bac

kups

and

res

tora

tion

s?

Page 23: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mP

refa

ce, s

lide

xxi

ii of

xxi

iiC

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

tions

•N

ame

•C

ompa

ny a

ffili

atio

n•

Tit

le, f

unct

ion,

and

job

resp

onsi

bilit

y•

Exp

erie

nce

rela

ted

to to

pics

pre

sent

ed in

this

cou

rse

•R

easo

ns fo

r en

rolli

ng in

this

cou

rse

•E

xpec

tati

ons

for

this

cou

rse

Page 24: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

1

Des

crib

ing

Inte

rfac

e C

onfig

urat

ion

Page 25: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 2

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•C

ontr

ol a

nd m

onit

or n

etw

ork

inte

rfac

es•

Con

figu

reIn

tern

etPr

otoc

olV

ersi

on4

(IPv

4)in

terf

aces

at b

oot t

ime

Page 26: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 3

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Con

trol

ling

and

Mon

itorin

gN

etw

ork

Inte

rfac

es

Net

wor

k co

mm

and

s, s

uch

asifconfig

,ping

, and

snoop

,co

ntro

l and

mon

itor

the

func

tion

alit

y of

net

wor

k in

terf

aces

Page 27: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 4

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

MA

CA

ddre

ss

The

med

ia a

cces

s co

ntro

l (M

AC

) ad

dre

ss is

you

r co

mpu

ter’

sun

ique

har

dw

are

add

ress

.

Two

way

s to

dis

play

the

MA

C a

dd

ress

or

the

Eth

erne

tad

dre

ss a

re:

•U

se th

eifconfig -a

com

man

d:

#ifconfig -a

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232

index 1 inet 127.0.0.1 netmask ff000000

hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

inet 192.168.30.41 netmask ffffff00 broadcast 192.168.30.255

ether 8:0:20:93:c9:af

Page 28: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 5

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

MA

CA

ddre

ss

•U

se th

e bo

ot p

rogr

amm

able

rea

d-o

nly

mem

ory

(PR

OM

) ban

ner

com

man

d:

okbanner

Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 300MHz), Keyboard Present

OpenBoot 3.31 256 MB (60ns) memory installed, Serial #9685423.

Ethernet address 8:0:20:93:c9:af, Host ID: 8093c9af.

Page 29: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 6

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

IPA

ddre

ss

The

ifconfig -a

com

man

d d

ispl

ays

the

curr

ent

confi

gura

tion

for

the

netw

ork

inte

rfac

es.

#ifconfig -a

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232

index 1 inet 127.0.0.1 netmask ff000000

hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

inet 192.168.30.41 netmask ffffff00 broadcast 192.168.30.255

ether 8:0:20:93:c9:af

Page 30: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 7

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Mar

king

anE

ther

netI

nter

face

asD

own

You

can

use

theifconfig

com

man

d to

mar

k an

Eth

erne

tin

terf

ace

as u

p or

dow

n.

#ifconfig hme0 down

#ifconfig -a

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232

index 1 inet 127.0.0.1 netmask ff000000

hme0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

inet 192.168.30.41 netmask ffffff00 broadcast 192.168.30.255

ether 8:0:20:93:c9:af

Page 31: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 8

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sen

ding

ICM

PE

CH

O_R

EQ

UE

ST

Pac

kets

To d

eter

min

e if

you

can

con

tact

ano

ther

sys

tem

ove

r th

ene

twor

k, e

nter

theping

com

man

d:

#ping sys41

sys41 is alive

Page 32: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 9

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cap

turin

gan

dIn

spec

ting

Net

wor

kP

acke

ts

You

can

use

thesnoop

utili

tyto

capt

ure

and

insp

ectn

etw

ork

pack

ets

tod

eter

min

ew

hatk

ind

ofd

ata

istr

ansf

erre

dbe

twee

nsy

stem

s.

#snoop sys41 sys42

sys41 -> sys42 ICMP Echo request (ID: 615 Sequence number: 0)

sys42 -> sys41 ICMP Echo reply (ID: 615 Sequence number: 0)

Page 33: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 10

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cap

turin

gan

dIn

spec

ting

Net

wor

kP

acke

ts

Som

e ad

dit

iona

lsnoop

opt

ions

incl

ude:

snoop

Sum

mar

y ou

tput

snoop-V

Sum

mar

y ve

rbos

e ou

tput

snoop-v

Det

aile

d v

erbo

se o

utpu

t

snoop-ofilename

Red

irec

ts th

esnoop

uti

lity

outp

ut to

filename

in s

umm

ary

mod

e

snoop

-ifilename

Dis

play

spa

cket

sth

atw

ere

prev

ious

lyca

ptur

edinfilename

Page 34: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 11

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gIP

v4In

terf

aces

atB

ootT

ime

Intr

oduc

ing

IPv4

Inte

rfac

e F

iles

Net

wor

k in

terf

aces

in th

e So

lari

s O

S ar

e co

ntro

lled

by fi

les

and

ser

vice

s.

•T

hesvc:/network/physical:default

ser

vice

•T

he/etc/hostname.xxn

file

•T

he/etc/inet/hosts

file

•T

he/etc/inet/ipnodes

file

Page 35: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 12

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

/etc/hostname.xxn

File

Ent

ries

and

Cor

resp

ondi

ngIn

terf

aces

Ent

ryIn

terf

ace

/etc/hostname.hme0

Firs

thme

Eth

erne

t int

erfa

ce in

the

syst

em

/etc/hostname.hme1

Seco

ndhme

Eth

erne

t int

erfa

ce in

the

syst

em

/etc/hostname.qfe0

Firs

tqfe

Eth

erne

t int

erfa

ce in

the

syst

em

/etc/hostname.eri0

Firs

teri

Eth

erne

t int

erfa

ce in

the

syst

em

Page 36: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 13

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cha

ngin

gth

eS

yste

mH

ostN

ame

The

hos

t nam

e of

a s

yste

m is

con

tain

ed in

four

file

s on

the

syst

em. Y

ou m

ust m

odif

y al

l of t

hese

file

s, a

nd p

erfo

rm a

rebo

ot,t

osu

cces

sful

lych

ange

asy

stem

’sho

stna

me.

Thefi

les

that

con

tain

the

host

nam

e of

a s

yste

m a

re:

•T

he/etc/nodename

file

•T

he/etc/hostname.xxn

file

•T

he/etc/inet/hosts

file

•T

he/etc/inet/ipnodes

file

Page 37: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 14

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

sys-unconfig

Com

man

d

You

can

use

the/usr/sbin/sys-unconfig

com

man

d to

rest

ore

a sy

stem

’s c

onfig

urat

ion

to a

n un

confi

gure

d s

tate

,re

ady

to b

e re

confi

gure

d a

gain

.

The

sys-unconfig

com

man

d d

oes

the

follo

win

g:

•Sa

vest

hecu

rren

t/etc/inet/hosts

file

info

rmat

ion

inth

e /etc/inet/hosts.saved

file

.•

If th

e cu

rren

t/etc/vfstab

file

con

tain

s N

etw

ork

File

Syst

em(N

FS)m

ount

entr

ies,

itsa

ves

the/etc/vfstab

file

to th

e/etc/vfstab.orig

file

.•

Res

tore

s th

e d

efau

lt/etc/inet/hosts

file

.

Page 38: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 15

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

sys-unconfig

Com

man

d

•R

emov

es th

e d

efau

lt h

ost n

ame

in th

e/etc/hostname.xxn

file

sfo

ral

lcon

figu

red

inte

rfac

es.

•R

emov

es th

e d

efau

lt d

omai

n na

me

in th

e/etc/defaultdomain

file

.•

Res

tore

s th

e ti

me

zone

toPST8PDT

in th

e/etc/TIMEZONE

file

.•

Res

ets

nam

ing

serv

ices

to lo

cal f

iles.

•R

emov

es th

e/etc/inet/netmasks

file

.•

Rem

oves

the/etc/defaultrouter

file

.•

Rem

oves

the

pass

wor

d s

et fo

r th

eroot

use

r in

the

/etc/shadow

file

.•

Rem

oves

the/etc/.rootkey

file

for

NIS

+.

Page 39: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 1,

slid

e 16

of 1

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

sys-unconfig

Com

man

d

•E

xecu

tes

all s

yste

m c

onfi

gura

tion

app

licat

ions

. The

seap

plic

atio

ns a

re d

efin

ed b

y pr

ior

exec

utio

ns o

f asysidconfig -a

com

man

d.

•R

emov

es th

e/etc/resolv.conf

file

for

DN

S cl

ient

s.•

Dis

able

s L

ight

wei

ght D

irec

tory

Acc

ess

Prot

ocol

(LD

AP)

by

rem

ovin

g:•

The

/var/ldap/ldap_client_cache

file

•T

he/var/ldap/ldap_client_file

file

•T

he/var/ldap/ldap_client_cred

file

•T

he/var/ldap/cachemgr.log

file

•R

egen

erat

es k

eys

for

the

Secu

re S

hell

Dae

mon

(sshd

)

Page 40: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

2

Des

crib

ing

the

Clie

nt-S

erve

r M

odel

Page 41: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 2

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

clie

nt-s

erve

r pr

oces

ses

•St

art s

erve

r pr

oces

ses

Page 42: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 3

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

Clie

nt-S

erve

rPro

cess

es

The

clie

nt-s

erve

r m

odel

des

crib

es n

etw

ork

serv

ices

and

the

clie

nt p

rogr

ams

of th

ose

serv

ices

.

One

exa

mpl

e of

the

clie

nt-s

erve

r re

lati

onsh

ip is

the

nam

ese

rver

and

res

olve

r m

odel

of t

he D

NS.

Ano

ther

exa

mpl

e of

the

clie

nt a

nd s

erve

r re

lati

onsh

ip is

the

NFS

.

Page 43: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 4

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

Clie

ntP

roce

sses

The

clie

ntis

aho

stor

apr

oces

sth

atus

esse

rvic

esfr

oman

othe

rho

st o

r pr

ogra

m, k

now

n as

a s

erve

r.

Exa

mpl

esof

clie

nts

inth

eSo

lari

s10

OS

incl

ude

the

follo

win

g:

•Fo

r na

me

serv

ices

, a c

lient

is a

hos

t sys

tem

that

use

sei

ther

the

NIS

+, N

IS, D

NS,

or

LD

AP

nam

e se

rvic

elo

okup

pro

vid

ed b

y th

e na

me

serv

ice

serv

er.

•In

file

sys

tem

s, th

e cl

ient

is a

sys

tem

that

rem

otel

yac

cess

es th

e re

sour

ces

of a

sto

rage

ser

ver,

suc

h as

ase

rver

wit

h la

rge

dis

k an

d n

etw

ork

capa

city

.•

For

appl

icat

ions

, suc

h as

sen

dm

ail o

r ca

lend

arm

anag

er, t

he c

lient

acc

esse

s se

rvic

es fr

om a

ser

ver

proc

ess.

Page 44: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 5

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

Ser

verP

roce

sses

The

ser

ver

is a

hos

t or

a pr

oces

s th

at p

rovi

des

ser

vice

s to

anot

her

prog

ram

kno

wn

as a

clie

nt.

Exa

mpl

esof

serv

ers

inth

eSo

lari

s10

OS

incl

ude

the

follo

win

g:

•A

host

syst

empr

ovid

ing

nam

ese

rvic

esto

ane

twor

kin

NIS

+, N

IS, D

NS,

and

LD

AP.

•A

hos

t sys

tem

pro

vid

ing

dis

k sp

ace

to th

e ne

twor

k,su

ch a

s a

serv

er w

ith

larg

e d

isk

and

net

wor

k ca

paci

ty.

•A

hos

t sys

tem

pro

vid

ing

win

dow

ing

serv

ices

toap

plic

atio

ns. T

he c

lient

and

the

serv

er c

an r

un o

n th

esa

me

syst

em o

r on

sep

arat

e sy

stem

s.•

Aho

stsy

stem

prov

idin

gw

ebse

rvic

esto

clie

ntsy

stem

s.

Page 45: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 6

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

Ser

vice

Man

agem

entF

acili

ty(S

MF

)

SMF

prov

ides

a c

entr

aliz

ed c

onfig

urat

ion

stru

ctur

e fo

rm

anag

ing

syst

em s

ervi

ces

and

the

inte

ract

ion

of a

ser

vice

wit

h ot

her

serv

ices

. SM

F in

clud

es th

e fo

llow

ing:

•A

mec

hani

sm to

est

ablis

h an

d fo

rmal

ize

dep

end

ency

rela

tion

ship

s be

twee

n se

rvic

es.

•In

form

atio

n on

pro

ced

ures

to s

tart

, sto

p, a

nd r

esta

rtse

rvic

es.

•A

cen

tral

ized

rep

osit

ory

for

info

rmat

ion

on s

tart

upbe

havi

or a

nd s

ervi

ce s

tatu

s.

Page 46: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 7

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

Ser

vice

Man

agem

entF

acili

ty(S

MF

)

•A

str

uctu

red

mec

hani

sm fo

r Fa

ult M

anag

emen

t of

syst

em s

ervi

ces.

•D

etai

led

info

rmat

ion

abou

t mis

conf

igur

ed s

ervi

ces

such

asan

expl

anat

ion

ofw

hya

serv

ice

isno

trun

ning

.•

Ind

ivid

ual l

og fi

les

for

each

ser

vice

.

Page 47: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 8

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

SM

FS

ervi

ceId

entifi

ers

Serv

ice

iden

tifie

rs a

re in

the

form

of F

ault

Man

agem

ent

Res

ourc

eId

entifie

rsor

FMR

I.T

heFM

RIi

ndic

ates

the

type

ofse

rvic

e or

cat

egor

y, a

nd th

e na

me

and

inst

ance

of t

he s

ervi

ce.

The

ser

vice

cat

egor

ies

incl

ude

the

follo

win

g:

•ap

plic

atio

n•

dev

ice

•le

gacy

•m

ilest

one

•ne

twor

k•

plat

form

•si

te•

syst

em

Page 48: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 9

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

List

ing

Ser

vice

Info

rmat

ion

Serv

ice

inst

ance

nam

es a

nd th

e st

ate

of th

e se

rvic

e ca

n be

liste

d u

sing

thesvcs

com

man

d.

#svcs

STATE STIME FMRI

legacy_run Feb_10 lrc:/etc/rc2_d/S10lu

legacy_run Feb_10 lrc:/etc/rc2_d/S20sysetup

legacy_run Feb_10 lrc:/etc/rc2_d/S90wbem

legacy_run Feb_10 lrc:/etc/rc2_d/S99dtlogin

legacy_run Feb_10 lrc:/etc/rc3_d/S81volmgt

(output removed)

online Feb_10 svc:/system/console-login:default

online Feb_10 svc:/network/smtp:sendmail

online Feb_10 svc:/milestone/multi-user:default

online Feb_10 svc:/milestone/multi-user-server:default

online Feb_10 svc:/system/zones:default

offline Feb_10 svc:/application/print/ipp-listener:default

offline Feb_10 svc:/application/print/rfc1179:default

maintenance 10:24:15 svc:/network/rpc/spray:default

Page 49: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 10

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ser

vice

Sta

tes

Ase

rvic

eca

nbe

eith

eren

able

dor

dis

able

d.S

ervi

cest

ates

can

incl

ude

the

follo

win

g:

•on

line

•of

flin

e•

dis

able

d•

lega

cy_r

un•

unin

itia

lized

•m

aint

enan

ce•

deg

rad

ed

Page 50: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 11

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Mile

ston

es

A m

ilest

one

can

be r

egar

ded

as

a sy

stem

sta

te to

rea

ch. T

his

syst

em s

tate

req

uire

s a

defi

ned

set

of s

ervi

ces

to b

e ru

nnin

g.T

hese

ser

vice

s d

epen

d o

n ot

her

serv

ices

bei

ng a

vaila

ble.

Cur

rent

ly th

ere

are

six

mile

ston

es:

•si

ngle

-use

r•

mul

ti-u

ser

•m

ulti

-use

r-se

rver

•ne

twor

k•

nam

e-se

rvic

es•

sysc

onfi

g•

dev

ices

Page 51: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 12

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

svc.startd

Dae

mon

The

svc.startd

is th

e d

aem

on w

hich

is r

espo

nsib

le fo

rm

aint

aini

ng th

e sy

stem

ser

vice

s. It

issvc.startd

whi

chen

sure

s th

at th

e sy

stem

boo

ts to

the

appr

opri

ate

mile

ston

e.

Cur

rent

ly th

e m

ilest

ones

that

can

be

used

at b

oot t

ime

are:

•no

ne•

sing

le-u

ser

•m

ulti

-use

r•

mul

ti-u

ser-

serv

er•

all

Page 52: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 13

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

Ser

vice

Config

urat

ion

Rep

osito

ry

The

repo

sito

ryd

atab

ase

stor

esin

form

atio

nab

outt

hest

ate

ofea

chse

rvic

ein

stan

ce.I

tals

ost

ores

confi

gura

tion

info

rmat

ion

abou

t the

ser

vice

s an

d s

yste

m.

The

dis

k-ba

sed

dat

abas

e is/etc/svc/repository.db

.

Thi

s fil

e ca

n on

ly b

e m

anip

ulat

ed u

sing

the

SMF

inte

rfac

eut

iliti

essvccfg

and

svcprop

.

Aco

rrup

trep

osit

ory

can

bere

pair

edby

boot

ing

the

syst

emto

sing

le u

ser,

and

run

ning

the

com

man

d:

#/lib/svc/bin/restore_repository

and

follo

win

g th

e in

stru

ctio

ns.

Page 53: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 14

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sta

rtin

gS

erve

rPro

cess

es

To s

tart

ser

vice

s fo

r se

rver

pro

cess

es, y

ou m

ust k

now

whi

chfil

esto

use

for

auto

mat

icse

rvic

eco

nfigu

rati

on.Y

oum

usta

lso

know

how

to m

anua

lly s

tart

the

serv

ices

.

Intr

oduc

ing

the

Inte

rnet

Ser

vice

Dae

mon

(inetd)

The

inetd

dae

mon

is a

spe

cial

net

wor

k pr

oces

s th

at r

uns

onea

ch s

yste

m a

nd s

tart

s se

rver

pro

cess

es th

at d

o no

tau

tom

atic

ally

sta

rt a

t boo

t tim

e.

The

inetd

dae

mon

star

tsat

boot

tim

eby

svc.startd

.The

reis

a le

gacy

config

urat

ion fil

e fo

rinetd

,/etc/inet/

inetd.conf

. Ser

vice

s lis

ted

in th

is fi

le a

re im

port

ed in

to th

eSe

rvic

e M

anag

emen

t Fac

ility

(SM

F) b

y th

einetconv

com

man

d.

Page 54: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 15

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

Impa

ctof

SM

Fon

Net

wor

kS

ervi

ces

SMF

has

a m

ajor

impa

ct o

n ne

twor

k se

rvic

es in

that

eac

hse

rvic

e ca

n be

ind

epen

den

tly

enab

led

or

dis

able

d u

sing

the

inetadm

com

man

d.

To d

isab

le th

e te

lnet

faci

lity:

#inetadm -d telnet

#inetadm | grep telnet

disabled disabled svc:/network/telnet:default

To e

nabl

e th

e te

lnet

faci

lity:

#inetadm -e telnet

#inetadm | grep telnet

enabled online svc:/network/telnet:default

Page 55: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 16

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

Net

wor

kP

orts

Net

wor

k po

rts

help

tran

spor

t pro

toco

ls d

isti

ngui

sh b

etw

een

mul

tipl

e se

rvic

e re

ques

ts a

rriv

ing

at a

giv

en h

ost c

ompu

ter.

The

re a

re tw

o fu

ndam

enta

l app

roac

hes

to p

ort a

ssig

nmen

ts:

•C

entr

al a

utho

rity

•A

llus

ers

mus

tagr

eeto

allo

wth

ece

ntra

laut

hori

tyto

assi

gn a

ll po

rt n

umbe

rs.

•T

he c

entr

al a

utho

rity

is r

espo

nsib

le fo

r pu

blis

hing

the

list o

f por

t num

ber

assi

gnm

ents

, cal

led

wel

l-kn

own

port

ass

ignm

ents

.•

Wel

l-kn

own

port

ass

ignm

ents

dic

tate

sof

twar

ere

quir

emen

ts o

n a

syst

em.

Page 56: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 17

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

Net

wor

kP

orts

•D

ynam

ic b

ind

ing

•T

hepo

rts

are

unkn

own

toth

ecl

ient

inad

vanc

e.T

hesy

stem

sof

twar

e d

ynam

ical

ly a

ssig

ns p

orts

to th

epr

ogra

ms

that

req

uire

them

.•

To o

btai

n th

e cu

rren

t por

t ass

ignm

ents

on

any

com

pute

r, th

e so

ftw

are

gene

rate

s a

requ

est t

o th

eta

rget

mac

hine

fort

hepo

rtnu

mbe

rinf

orm

atio

n.T

heta

rget

mac

hine

then

resp

ond

sw

ith

the

port

num

ber.

•T

hese

por

t num

ber

assi

gnm

ents

are

con

sid

ered

ephe

mer

al s

ince

ass

ignm

ents

are

sho

rt li

ved

, onl

yla

stin

g un

til t

he s

yste

m is

reb

oote

d.

Page 57: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 18

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

Net

wor

kP

orts

Wel

l-kn

own

port

sare

stor

edin

the/etc/inet/servicesfi

le.

#grep telnet /etc/inet/services

telnet 23/tcp

Page 58: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 19

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sta

rtin

gS

ervi

ces

Tha

tUse

aW

ell-K

now

nP

ort

Serv

ices

follo

win

g th

e ce

ntra

l aut

hori

ty a

ppro

ach

that

use

aw

ell-

know

n po

rt in

clud

es:

•Se

rvic

es th

at s

tart

by

def

ault

at s

yste

m b

oot t

ime

•Se

rvic

es th

at d

o no

t sta

rt a

utom

atic

ally

at b

oot,

and

mus

t sta

rt o

n d

eman

d

Page 59: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 20

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Req

uest

ing

aW

ell-K

now

nS

ervi

ce

23

32

6 7

1

�����

(Clie

nt)

������

��������

�����

(Ser

ver)

Tra

ffic

onnnnnn

Tra

ffic

on�����

= p

ort n

umbe

r �

Time

4

in.telnetd

(por

t nnnnn

)��������

(por

t �����

)5

�����

23

����

������

�����

8��������

Page 60: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 21

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sta

rtin

gR

PC

Ser

vice

s

RPC

ser

vice

s ar

e se

rvic

es d

evel

oped

usi

ng a

set

of u

tilit

ies

dev

elop

edby

Sun

Mic

rosy

stem

s,In

c.W

hile

RPC

serv

ices

are

assi

gned

aun

ique

prog

ram

num

berb

yth

epr

ogra

mm

erw

hen

they

are

wri

tten

,the

RPC

serv

ices

are

nott

ypic

ally

assi

gned

tow

ell-

know

n po

rts.

Type

s of

RPC

ser

vice

s th

at fo

llow

the

dyn

amic

bin

din

gap

proa

ch in

clud

e:

•Se

rvic

es th

at s

tart

by

def

ault

at s

yste

m b

oot t

ime

•Se

rvic

es th

at d

o no

t sta

rt a

utom

atic

ally

at b

oot a

ndm

ust s

tart

on

dem

and

Page 61: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 22

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sta

rtin

gR

PC

Ser

vice

sat

Boo

tTim

e

RPC

ser

vice

s st

arte

d a

t boo

t tim

e w

ith

star

tup

scri

pts

run

onav

aila

ble

port

s ab

ove

3276

8. T

herpcbind

pro

cess

ass

ocia

tes

RPC

pro

gram

num

bers

wit

h po

rt n

umbe

rs.

The

/lib/svc/method/rpc-bind

sta

rtup

scr

ipt i

niti

aliz

esth

erpcbind

ser

vice

. The

por

t num

ber

used

by

therpcbind

dae

mon

is li

sted

in th

e/etc/inet/services

file

.

Aft

er th

e sy

stem

sta

rts

up, t

herpcbind

dae

mon

sta

rts

liste

ning

atpo

rt111.

Tovi

ewth

epo

rtnu

mbe

ran

dpr

otoc

ol,

perf

orm

the

com

man

d:

#grep rpcbind /etc/services

sunrpc 111/udp rpcbind

sunrpc 111/tcp rpcbind

Page 62: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 23

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sta

rtin

gR

PC

Ser

vice

son

Dem

and

Som

erpcbind

ser

vice

s st

art o

nly

on d

eman

d. T

he p

ort

num

bers

are

regi

ster

edw

ith

therpcbind

proc

ess

dur

ing

boot

.

Whe

n a

clie

nt a

pplic

atio

n re

ques

ts a

ser

vice

, the

rpcbind

proc

ess

retu

rns

the

port

num

ber

of th

e se

rvic

e to

the

clie

ntm

achi

ne.

The

clie

nt m

achi

ne g

ener

ates

a n

ew r

eque

st u

sing

the

port

num

ber

that

it ju

st r

ecei

ved

for

the

requ

este

d s

ervi

ce.

Page 63: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 24

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Req

uest

ing

anR

PC

Add

ress

�=

port

num

ber �

1

111

2

6

Ho

st

1 (

Clien

t)

�����

����

4

3

���������

�� �������

�� �������

(port

�����

)

Ho

st

2 (

Serv

er)

Time

5

�����

�����

�����

�����

�� ����

�����

Sta

rt �� ����

(port

111

)

Page 64: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 25

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

erpcinfo

Com

man

ds

The

rpcinfo

com

man

dm

akes

anR

PCca

llto

anR

PCse

rver

,an

d r

epor

ts w

hat i

t find

s.

To li

st a

ll th

e se

rvic

es r

egis

tere

d w

ith

therpcbind

pro

cess

,en

ter

therpcinfo

com

man

d a

s fo

llow

s:

rpcinfo -p [host ]

For example:

#rpcinfo -p

program vers proto port service

100000 4 tcp 111 rpcbind

100000 3 tcp 111 rpcbind

100000 2 tcp 111 rpcbind

100000 4 udp 111 rpcbind

100000 3 udp 111 rpcbind

100000 2 udp 111 rpcbind

100232 10 udp 32772 sadmind

<output truncated>

Page 65: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 2,

slid

e 26

of 2

6C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Del

etin

gR

PC

Ser

vice

Reg

istr

atio

n

To u

nreg

iste

r th

e R

PC s

ervi

ce g

iven

a s

pecifi

edprognum

(pro

gram

num

ber)

and

versnum

(ver

sion

num

ber)

, per

form

therpcinfo

com

man

d:

rpcinfo -dprognumversnum

For example:

#rpcinfo -d 100012 1

The

del

eted

RPC

serv

ice

that

uses

prog

ram

num

ber

1000

12is

sprayd

. To

regi

ster

thesprayd

ser

vice

aga

in, r

esta

rt th

einetd

dae

mon

as

follo

ws:

#svcadm disable svc:/network/rpc/spray:udp

#svcadm enable svc:/network/rpc/spray:udp

Page 66: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

3

Cus

tom

izin

g th

e S

olar

is M

anag

emen

tC

onso

le

Page 67: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 2

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

The

Sol

aris

Man

agem

ent C

onso

le u

ses

a G

UI t

o d

ispl

aym

anag

emen

ttoo

lsth

atar

est

ored

inco

ntai

ners

refe

rred

toas

tool

boxe

s.

The

con

sole

incl

udes

a d

efau

lt to

olbo

x co

ntai

ning

tool

s fo

rm

anag

ing

user

s, p

roje

cts,

and

cro

n jo

bs.

The

Sola

ris

Man

agem

entC

onso

leto

olbo

xed

itor

appl

icat

ion,

whi

ch lo

oks

sim

ilar

to th

e co

nsol

e, c

an a

dd

and

mod

ify

tool

boxe

s,ad

dto

ols

toa

tool

box,

and

exte

ndth

efu

ncti

onal

ity

of a

tool

box

to o

ther

app

licat

ions

.

Page 68: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 3

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

the

Sola

ris

Man

agem

ent C

onso

le to

olbo

xed

itor

act

ions

•U

se th

e So

lari

s M

anag

emen

t Con

sole

tool

box

edit

or

Page 69: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 4

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

rAct

ions

To s

tart

the

Sola

ris

Man

agem

ent C

onso

le, p

erfo

rm th

efo

llow

ing

com

man

d:

#smc

&

Page 70: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 5

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

rAct

ions

Inth

ism

odul

e,yo

ual

tera

ndsa

vebo

thth

eM

anag

emen

tToo

l(r

oot)

tool

box

and

the

Thi

s C

ompu

ter

(def

ault

) too

lbox

.

Bef

ore

you

mod

ify

eith

er to

olbo

x, c

reat

e ba

ckup

s of

bot

hto

olbo

xes

usin

g th

e fo

llow

ing

com

man

ds:

#cd /var/sadm/smc/toolboxes

#cp smc/smc.tbx smc.tbx.orig

#cp this_computer/this_computer.tbx this_computer.tbx.orig

In th

e ex

erci

se fo

r th

is m

odul

e, y

ou m

ust b

e ce

rtai

n to

sel

ect

the

corr

ect t

oolb

ox to

sav

e. B

y d

efau

lt, t

he s

ave

oper

atio

nov

erw

rite

s th

e la

st to

olbo

x th

at w

as s

aved

.

Page 71: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 6

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

rAct

ions

The

Sol

aris

Man

agem

ent C

onso

le c

onta

ins

a hi

erar

chic

alco

llect

ion

of fo

lder

s, to

ols,

lega

cy a

pplic

atio

ns, a

nd li

nks

toot

her

tool

boxe

s.

A to

olbo

x ca

n in

clud

e lin

ks to

oth

er to

olbo

xes,

ind

ivid

ual

tool

s, fo

lder

s, a

nd le

gacy

app

licat

ions

.

•A

Sol

aris

Man

agem

ent C

onso

le to

olbo

x is

a c

olle

ctio

nof

tool

s th

at h

ave

been

reg

iste

red

usi

ng th

esmcregister

uti

lity.

•T

he r

oot t

oolb

ox, o

r co

ntai

ner,

is c

alle

d M

anag

emen

tT

ools

.

Page 72: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 7

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

rAct

ions

•A

tool

box

Uni

vers

alR

esou

rce

Loc

ator

(UR

L),

orlin

k,is

a po

inte

r to

ano

ther

tool

box.

•A

tool

is a

n ap

plic

atio

n or

app

let t

hat i

s co

mpa

tibl

ew

ith

the

Sola

ris

Man

agem

ent C

onso

le.

•A

fold

er is

a c

onta

iner

that

gro

ups

tool

s w

ithi

n a

tool

box.

•A

lega

cy a

pplic

atio

n is

an

appl

icat

ion

that

is n

ot a

Sola

ris

Man

agem

ent C

onso

le to

ol.

The

Sol

aris

Man

agem

ent C

onso

le u

ses

Ext

ensi

ble

Mar

kup

Lan

guag

e (X

ML

) file

s to

sto

re th

e co

nfigu

rati

on o

f too

lbox

esan

d to

ols.

Page 73: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 8

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

rAct

ions

•T

o ac

cess

the

root

tool

box

in th

e So

lari

s M

anag

emen

tC

onso

le, t

he U

RL

is:

http://hostname:898/toolboxes/smc.tbx

•T

he d

efau

lt X

ML

con

figu

rati

on fi

le fo

r th

is to

olbo

x is

loca

ted

in:

/var/sadm/smc/toolboxes/smc/smc.tbx

Thi

s to

olbo

x on

ly a

llow

s ac

cess

to o

ther

tool

boxe

s, n

ot to

the

tool

s w

ithi

n th

ose

tool

boxe

s.

Page 74: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 9

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

rAct

ions

•Y

ou a

cces

s th

e to

olbo

x fo

r th

e lo

cal c

ompu

ter

thro

ugh

the

UR

L:

http://hostname:898/toolboxes/this_computer.tbx

•T

he d

efau

lt X

ML

con

figu

rati

on fi

le fo

r th

is to

olbo

x is

loca

ted

in:

/var/sadm/smc/toolboxes/this_computer/

this_computer.tbx

Page 75: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 10

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leC

ateg

orie

s

The

def

ault

tool

box

for

aSo

lari

sM

anag

emen

tCon

sole

serv

eris

cal

led

Thi

s C

ompu

ter.

The

cat

egor

ies

(or

fold

ers)

and

tool

s in

clud

ed in

the

def

ault

tool

box

are

as fo

llow

s:

•Sy

stem

Sta

tus

•Sy

stem

Con

figu

rati

on•

Serv

ices

•St

orag

e•

Dev

ices

and

Har

dw

are

•T

erm

inal

Page 76: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 11

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

r

To s

tart

the

Sola

ris

Man

agem

ent C

onso

le to

olbo

x ed

itor

,pe

rfor

m th

e fo

llow

ing

com

man

d:

#smc

edit

&

You

can

star

tthe

Sola

ris

Man

agem

entC

onso

leto

olbo

xed

itor

asa

norm

alus

er,b

utyo

uca

nnot

save

ase

rver

tool

box

unle

ssyo

u lo

g in

as

root

.

Page 77: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 12

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Man

agem

entC

onso

leTo

olbo

xE

dito

r

You

use

the

Sola

ris

Man

agem

ent C

onso

le to

olbo

x ed

itor

tom

odif

y ex

isti

ng to

olbo

xes

or to

cre

ate

add

itio

nal t

oolb

oxes

.

You

can

use

thes

eto

olbo

xes

tom

anag

em

ulti

ple

serv

ers

from

one

tool

box

or to

gro

up s

imila

r to

ols

in a

tool

box.

Whe

nd

ispl

ayin

gth

ero

otto

olbo

xin

the

Sola

ris

Man

agem

ent

Con

sole

tool

box

edit

or,y

ouca

non

lyse

eth

ese

rver

tool

boxe

sth

at a

re li

nked

to th

at r

oot t

oolb

ox.

Aft

er c

reat

ing

or m

odif

ying

any

tool

box,

you

mus

t sav

e th

eto

olbo

x ch

ange

s an

d r

eope

n th

e to

olbo

x in

the

Sola

ris

Man

agem

ent C

onso

le b

efor

e yo

u ca

n ac

cess

new

tool

s.

Page 78: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 13

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Add

ing

aTo

olbo

xU

RL

Toad

dac

cess

toa

rem

ote

Sola

ris

Man

agem

entC

onso

lese

rver

tool

box,

com

plet

e th

e fo

llow

ing

step

s:

1.O

pen

the

tool

box

tow

hich

you

wan

tto

add

the

tool

box

UR

L.

2.Se

lect

the

nod

ein

the

tool

box

tow

hich

you

wan

tto

add

the

tool

box

UR

L.

3.Se

lect

the

Ad

da

Tool

box

UR

Lfr

omth

eA

ctio

nm

enu

.4.

Follo

wth

ein

stru

ctio

nsin

the

Ad

dTo

olbo

xU

RL

wiz

ard

.5.

Save

the

tool

box.

Page 79: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 3,

slid

e 14

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Add

ing

aTo

ol

Toad

dac

cess

toa

rem

ote

Sola

ris

Man

agem

entC

onso

lese

rver

tool

, com

plet

e th

e fo

llow

ing

step

s:

1.O

pen

the

tool

box

tow

hich

you

wan

tto

add

the

tool

.2.

Sele

ctth

eno

de

inth

eto

olbo

xto

whi

chyo

uw

ant

toad

dth

eto

ol.

3.Se

lect

Ad

dTo

olfr

omth

eA

ctio

nm

enu

.4.

Follo

wth

ein

stru

ctio

nsin

the

Ad

dTo

olw

izar

d.

5.Sa

veth

eto

olbo

x.

Page 80: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

4

Man

agin

g S

wap

Con

figur

atio

n

Page 81: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 2

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

virt

ual m

emor

y•

Con

figu

re s

wap

spa

ce

Page 82: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 3

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Vir

tual

Mem

ory

Vir

tual

mem

ory

com

bine

s R

AM

and

ded

icat

ed d

isk

stor

age

area

s kn

own

as s

wap

spa

ce.

Vir

tual

mem

ory

man

agem

ents

oftw

are

map

scop

ieso

ffile

son

dis

k to

vir

tual

ad

dre

sses

.

Prog

ram

s us

e th

ese

virt

ual a

dd

ress

es, r

athe

r th

an r

eal

add

ress

es, t

o st

ore

inst

ruct

ions

and

dat

a.

Vir

tual

mem

ory

mak

es it

pos

sibl

e fo

r th

e op

erat

ing

syst

em(O

S) to

use

a la

rge

rang

e of

mem

ory.

Page 83: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 4

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Phy

sica

lRA

M

Whe

n w

orki

ng w

ith

swap

spa

ce, R

AM

is th

e m

ost c

riti

cal

reso

urce

in y

our

syst

em.

•V

irtu

al a

nd p

hysi

cal a

dd

ress

esT

heSo

lari

s10

OS

virt

ual

mem

ory

man

agem

ent

syst

emm

aps

the

file

son

dis

kto

virt

ual

add

ress

esin

virt

ual

mem

ory.

•A

nony

mou

s m

emor

y pa

ges

Phy

sica

lm

emor

yp

ages

asso

ciat

edw

ith

aru

nnin

gp

roce

ssca

nco

ntai

np

riva

ted

ata

orst

ack

info

rmat

ion

that

doe

sno

tex

ist

inan

yfi

lesy

stem

ond

isk.

The

sear

ean

onym

ous

mem

ory

pag

es.

Page 84: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 5

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sw

apS

pace

Som

etim

esa

proc

ess

mus

tgiv

eup

som

eof

its

mem

ory

spac

eal

loca

tion

to a

noth

er p

roce

ss.

Ano

nym

ous

mem

ory

page

s ar

e pl

aced

in a

sw

ap a

rea,

but

unch

ange

d fi

le s

yste

m p

ages

are

not

.

•Sw

ap s

lices

The

pri

mar

ysw

apsp

ace

onth

esy

stem

isa

dis

ksl

ice.

Inth

eSo

lari

s10

OS,

the

def

ault

loca

tion

for

the

pri

mar

ysw

apsp

ace

issl

ice

1of

the

boot

dis

kw

hich

,by

def

ault

,sta

rts

atcy

lind

er0.

As

add

itio

nal

swap

spac

ebe

com

esne

cess

ary,

you

can

conf

igu

read

dit

iona

lsw

apsl

ices

.

Page 85: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 6

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sw

apS

pace

•Sw

ap fi

les

Itis

also

pos

sibl

eto

pro

vid

ead

dit

iona

lsw

apsp

ace

ona

syst

emby

usi

ngsw

apfi

les.

Swap

file

sar

efi

les

that

resi

de

ona

file

syst

em,a

ndth

atha

vebe

encr

eate

du

sing

themkfile

com

man

d.

Swap

file

sca

nbe

per

man

entl

yin

clu

ded

inth

esw

apco

nfig

ura

tion

bycr

eati

ngan

entr

yfo

rth

esw

apfi

lein

the/etc/vfstab

file

.

Page 86: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 7

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

swapfs

File

Sys

tem

•W

hen

the

kern

el r

uns

a pr

oces

s, s

wap

spa

ce fo

r an

ypr

ivat

e d

ata

or s

tack

spa

ce fo

r th

e pr

oces

s m

ust b

ere

serv

ed.

•T

here

serv

atio

noc

curs

inca

seth

est

ack

info

rmat

ion

orpr

ivat

e d

ata

mig

ht n

eed

to b

e pa

ged

out

of p

hysi

cal

mem

ory.

•Y

oune

edph

ysic

alsw

apsp

ace

ond

isk

only

inth

eev

ent

that

the

phys

ical

RA

M p

ages

con

tain

ing

priv

ate

dat

ane

ed to

be

page

d o

ut.

Page 87: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 8

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Pag

ing

•Pa

ging

is th

e tr

ansf

er o

f sel

ecte

d m

emor

y pa

ges

betw

een

RA

M a

nd th

e sw

ap a

reas

.•

Whe

n yo

u pa

ge p

riva

te d

ata

to s

wap

spa

ces,

phy

sica

lR

AM

is m

ade

avai

labl

e fo

r ot

her

proc

esse

s to

use

.•

Swap

ping

is th

e m

ovem

ent o

f all

mod

ifie

d d

ata

mem

ory

page

s as

soci

ated

wit

h a

proc

ess,

bet

wee

nR

AM

and

a d

isk.

•U

se th

epagesize

com

man

d to

dis

play

the

size

of a

mem

ory

page

in b

ytes

.#pagesize

8192

Page 88: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 9

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gS

wap

Spa

ce

The

swap

com

man

d p

rovi

des

a m

etho

d o

f ad

din

g, d

elet

ing,

and

mon

itor

ing

the

swap

are

as u

sed

by

the

kern

el.

Swap

are

a ch

ange

s m

ade

from

the

com

man

d li

ne a

re n

otpe

rman

ent a

nd a

re lo

st a

fter

a r

eboo

t.

To c

reat

e pe

rman

ent a

dd

itio

ns to

the

swap

spa

ce, c

reat

e an

entr

y in

the/etc/vfstab

file

.

Page 89: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 10

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

Cur

rent

Sw

apC

onfig

urat

ion

Mem

ory

pagi

ng a

ffect

s th

e am

ount

of m

emor

y al

loca

ted

spac

e

Task

act

ivat

ion

affe

cts

the

amou

nt

of m

emor

y re

serv

ed s

pace

Arr

ow u

p: ����

��

sub

trac

ts th

e

amou

nt o

f ava

ilabl

e sw

ap s

pace

Arr

ow d

own:

����

��

add

s th

e

amou

nt o

f ava

ilabl

e sw

ap s

pace

Allo

cate

d

Res

erve

d

Ava

ilabl

e

����

��

Tota

l Sw

ap A

lloca

tion

Page 90: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 11

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

Cur

rent

Sw

apC

onfig

urat

ion

To v

iew

the

curr

ent s

wap

spa

ce a

lloca

tion

, com

plet

e th

efo

llow

ing

step

s:

1.L

ist

asu

mm

ary

ofth

esy

stem

’svi

rtu

alsw

apsp

ace.

#swap -s

total: 41776k bytes allocated + 5312k reserved = 47088k used,

881536k available

2.L

ist

the

det

ails

ofth

esy

stem

’sp

hysi

cal

swap

area

s.#swap -l

swapfile

dev

swaplo blocks free

/dev/dsk/c0t0d0s1

136,9

16

1048304 1048304

Page 91: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 12

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Add

ing

Sw

apS

pace

Use

the

follo

win

gpr

oced

ures

toad

dad

dit

iona

lsw

apsp

ace

toyo

ur s

yste

m.

•T

o ad

d s

wap

slic

es, u

se th

eswap -a

com

man

d:

#swap -a /dev/dsk/c1t3d0s1

Ed

itth

e/etc/vfstab

file

and

add

alin

esi

mila

rto

the

follo

win

g:/dev/dsk/c1t3d0s1 - - swap - no -

Page 92: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 13

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Add

ing

Sw

apS

pace

•T

o ad

d s

wap

file

s, u

se th

emkfile

com

man

d to

cre

ate

the

swap

file

. For

exa

mpl

e:#mkfile 20m /usr/local/swap/swapfile

Ad

dth

esw

apfi

leto

the

syst

em’s

swap

spac

e.#swap -a /usr/local/swap/swapfile

Ad

dan

entr

yfo

rth

esw

apfi

leto

the/etc/vfstab

file

./usr/local/swap/swapfile - - swap - no -

Page 93: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 14

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Rem

ovin

gS

wap

Spa

ce

If y

ou n

o lo

nger

nee

d th

e ad

dit

iona

l sw

ap s

pace

, you

can

del

ete

the

swap

spac

eby

rem

ovin

gan

yad

dit

iona

lsw

apsl

ices

and

sw

ap fi

les.

•R

emov

ing

swap

slic

esD

elet

ea

swap

slic

efr

omth

ecu

rren

tsw

apco

nfig

ura

tion

.#swap -d /dev/dsk/c1t3d0s1

Ed

itth

e/etc/vfstab

file

,and

rem

ove

the

swap

slic

een

try

from

the

file

.

Page 94: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 4,

slid

e 15

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Rem

ovin

gS

wap

Spa

ce

•R

emov

ing

swap

file

sD

elet

ea

swap

file

from

the

curr

ent

swap

conf

igu

rati

on.

#swap -d /usr/local/swap/swapfile

•R

emov

e th

e fi

le to

free

the

dis

k sp

ace

that

it is

occu

pyin

g.#rm /usr/local/swap/swapfile

•E

dit

the/etc/vfstab

file

, and

rem

ove

the

swap

file

entr

y.

Page 95: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

5

Man

agin

g C

rash

Dum

ps a

nd C

ore

File

s

Page 96: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 2

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•M

anag

e cr

ash

dum

p be

havi

or•

Man

age

core

file

beh

avio

r

Page 97: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 3

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gC

rash

Dum

pB

ehav

ior

Ifa

fata

lope

rati

ngsy

stem

erro

roc

curs

,the

oper

atin

gsy

stem

gene

rate

sa

cras

hd

ump

byw

riti

ngso

me

ofth

eco

nten

tsof

the

phys

ical

mem

ory

to a

pre

det

erm

ined

dum

p d

evic

e, w

hich

mus

t be

a lo

cal d

isk

slic

e.

You

can

confi

gure

the

dum

p d

evic

e by

usi

ng th

edumpadm

com

man

d.

Aft

erth

eop

erat

ing

syst

emha

sw

ritt

enth

ecr

ash

dum

pto

the

dum

p d

evic

e, th

e sy

stem

reb

oots

.

The

cras

hd

ump

issa

ved

forf

utur

ean

alys

isto

help

det

erm

ine

the

caus

e of

the

fata

l err

or.

Page 98: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 4

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cra

shD

ump

Whe

nth

eop

erat

ing

syst

emcr

ashe

s,th

esavecore

com

man

dis

aut

omat

ical

ly e

xecu

ted

dur

ing

a bo

ot.

•T

hesavecore

com

man

d p

lace

s ke

rnel

cor

ein

form

atio

n in

the

/var/crash/nodename/vmcore.X

file

.•

The

savecore

com

man

d p

lace

s na

me

list i

nfor

mat

ion

and

sym

bol t

able

info

rmat

ion

in th

e/var/crash/nodename/unix.X

file

.

You

can

use

thedumpadm

com

man

d to

confi

gure

the

loca

tion

of th

e d

ump

dev

ice

and

the

save

core

dir

ecto

ry.

Page 99: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 5

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

Cur

rent

Dum

pC

onfig

urat

ion

To v

iew

the

curr

ent d

ump

confi

gura

tion

, use

thedumpadm

com

man

d w

itho

ut a

rgum

ents

.

#dumpadm

Dump content: kernel pages

Dump device: /dev/dsk/c0t0d0s1 (swap)

Savecore directory: /var/crash/sys-02

Savecore enabled: yes

Page 100: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 6

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cha

ngin

gth

eC

rash

Dum

pC

onfig

urat

ion

The

dumpadm

com

man

d m

anag

es th

e co

nfigu

rati

on o

f the

cras

h d

ump

faci

lity.

The

syn

tax

of th

edumpadm

com

man

d is

as

follo

ws:

/usr/sbin/dumpadm [-nuy] [-c content-type] [-d dump-device]

[-m mink | minm | min%] [-s savecore-dir] [-r root-dir]

Use

thedumpadm

com

man

d to

mak

e al

l mod

ifica

tion

s to

the

cras

hd

ump

confi

gura

tion

,rat

her

than

atte

mpt

ing

toed

itth

e/etc/dumpadm.conf

file

man

ually

.

Page 101: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 7

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gC

ore

File

Beh

avio

r

Whe

n a

proc

ess

term

inat

es a

bnor

mal

ly, i

t typ

ical

ly p

rod

uces

a co

re fi

le.

You

can

use

thecoreadm

com

man

d to

spe

cify

the

nam

e or

loca

tion

of c

ore fil

es p

rod

uced

by

abno

rmal

ly te

rmin

atin

gpr

oces

ses.

Page 102: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 8

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cor

eF

iles

•A

cor

e fi

le is

a d

isk

copy

of t

he a

dd

ress

spa

ce o

f apr

oces

s at

a c

erta

in p

oint

in ti

me.

•T

heop

erat

ing

syst

emge

nera

tes

two

poss

ible

copi

esof

core

file

s:•

The

glo

bal c

ore fil

e•

The

per

-pro

cess

cor

e fil

e

Page 103: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 9

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

Cur

rent

Cor

eF

ileC

onfig

urat

ion

You

use

thecoreadm

com

man

dw

itho

utar

gum

ents

tod

ispl

ayth

e cu

rren

t config

urat

ion.

#coreadm

global core file pattern:

global core file content: default

init core file pattern: core

init core file content: default

global core dumps: disabled

per-process core dumps: enabled

global setid core dumps: disabled

per-process setid core dumps: disabled

global core dump logging: disabled

Page 104: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 10

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dis

play

ing

the

Cur

rent

Cor

eF

ileC

onfig

urat

ion

The

/etc/coreadm.conf

file

list

s th

e sa

me

para

met

ers

that

are

dis

play

ed b

ycoreadm

.#cat /etc/coreadm.conf

# # coreadm.conf

# # Parameters for system core file configuration.

# Do NOT edit this file by hand -- use coreadm(1) instead.

# COREADM_GLOB_PATTERN=

COREADM_GLOB_CONTENT=default

COREADM_INIT_PATTERN=core

COREADM_INIT_CONTENT=default

COREADM_GLOB_ENABLED=no

COREADM_PROC_ENABLED=yes

COREADM_GLOB_SETID_ENABLED=no

COREADM_PROC_SETID_ENABLED=no

COREADM_GLOB_LOG_ENABLED=no

Page 105: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 11

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cha

ngin

gth

eC

ore

File

Config

urat

ion

•T

hecoreadm

com

man

dal

low

syo

uto

cont

rolh

owco

refi

les

are

gene

rate

d.

•Fo

r ex

ampl

e, y

ou c

an u

se th

ecoreadm

com

man

d to

conf

igur

e a

syst

em s

o th

at a

ll pr

oces

s co

re fi

les

are

plac

ed in

a s

ingl

e d

irec

tory

.•

You

can

sep

arat

ely

enab

le o

r d

isab

le tw

o co

nfig

urab

leco

re fi

le p

aths

: per

-pro

cess

and

glo

bal.

Page 106: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 12

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cha

ngin

gth

eC

ore

File

Config

urat

ion

•A

ll us

ers

can

run

thecoreadm

com

man

d w

ith

the-p

opti

on to

spe

cify

the

file

nam

e pa

tter

n to

use

for

per-

proc

ess

core

file

s.coreadm [-p pattern] [pid...]

•T

hero

otus

erca

nus

eth

efo

llow

ingcoreadm

com

man

dop

tion

s to

con

figu

re s

yste

m-w

ide

core

file

opt

ions

.coreadm [-g pattern] [-G content] [-i pattern] [-I content]

[-d option...] [-e option...]

•Pa

tter

n op

tion

s d

eter

min

e ho

w c

ore

file

s ar

e na

med

.•

Con

tent

opt

ions

det

erm

ine

the

cont

ent o

f glo

bal c

ore

file

s.

Page 107: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 13

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Pat

tern

Opt

ions

fort

hecoreadm

Com

man

d

•%p

- PI

D•

%u

- E

ffec

tive

use

r ID

(EU

ID)

•%g

- E

ffec

tive

gro

up ID

(EG

ID)

•%f

- E

xecu

tabl

e fi

le n

ame

•%n

- Sy

stem

nod

e na

me

(uname -n

)•

%m

- M

achi

ne h

ard

war

e na

me(uname -m

)•

%t

-The

tim

ein

seco

nds

sinc

em

idni

ghtJ

anua

ry1,

1970

•%d

- E

xecu

tabl

e fi

le d

irec

tory

/na

me

•%z

- Z

onen

ame

•%%

- L

iter

al%

Page 108: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 14

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Pat

tern

Opt

ions

fort

heG

loba

lCor

eF

ileC

onte

nt

•anon

– A

nony

mou

s pr

ivat

e m

appi

ngs,

incl

udin

gth

read

sta

cks

that

are

not

mai

n th

read

sta

cks

•ctf

– C

TF

type

info

rmat

ion

sect

ions

for

load

ed o

bjec

tfi

les

•data

– W

rita

ble

priv

ate

file

map

ping

s•

dism

– D

ISM

map

ping

s•

heap

– P

roce

ss h

eap

•ism

– IS

M m

appi

ngs

Page 109: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 15

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Pat

tern

Opt

ions

fort

heG

loba

lCor

eF

ileC

onte

nt

•rodata

– R

ead

-onl

y pr

ivat

e fi

le m

appi

ngs

•shanon

– A

nony

mou

s sh

ared

map

ping

s•

shfile

– S

hare

d m

appi

ngs

that

are

bac

ked

by

file

s•

shm

– S

yste

m V

sha

red

mem

ory

•stack

– P

roce

ss s

tack

•symtab

– S

ymbo

l tab

le s

ecti

ons

for

load

ed o

bjec

t•

text

– R

ead

able

and

exe

cuta

ble

priv

ate

file

map

ping

s

Page 110: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 16

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Exa

mpl

esof

thecoreadm

Com

man

d

•E

xam

ple

1 –

Sett

ing

the

core

file

nam

e pa

tter

n as

are

gula

r us

erW

hen

exec

ute

dfr

oma

use

r’s$HOME/.profile

or$HOME/.login

file

,the

follo

win

gen

try

sets

the

core

file

nam

ep

atte

rnfo

ral

lp

roce

sses

run

du

ring

the

logi

nse

ssio

n:#

coreadm

-p

core.%f.%p

$$

Page 111: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 17

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Exa

mpl

esof

thecoreadm

Com

man

d

•E

xam

ple

2 –

Dum

ping

a u

ser’

s co

re fi

les

into

asu

bdir

ecto

ryT

hefo

llow

ing

com

man

dp

lace

sal

lof

the

use

r’s

core

file

sin

toth

ecorefiles

subd

irec

tory

ofth

eu

ser’

sho

me

dir

ecto

ry,d

iffe

rent

iate

dby

the

syst

emno

de

nam

e.$coreadm

-p

$HOME/corefiles/%n.%f.%p

$$

Page 112: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 18

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Exa

mpl

esof

thecoreadm

Com

man

d

•E

xam

ple

3 –

Ena

blin

g an

d s

etti

ng th

e co

re fi

le g

loba

lna

me

patt

ern

The

follo

win

gis

anex

amp

leof

sett

ing

syst

em-w

ide

par

amet

ers

that

add

the

exec

uta

ble

file

nam

ean

dP

IDto

the

nam

eof

any

core

file

that

iscr

eate

d:

#coreadm

-g

/var/core/core.%f.%p

-e

global

Page 113: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 5,

slid

e 19

of 1

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Exa

mpl

esof

thecoreadm

Com

man

d

•E

xam

ple

4 –

Che

ckin

g th

e co

re fi

le c

onfi

gura

tion

for

spec

ific

PID

sR

unn

ing

thecoreadm

com

man

dw

ith

alis

tof

PID

sre

por

tsea

chp

roce

ss’s

per

-pro

cess

core

file

nam

ep

atte

rn,f

orex

amp

le:

#coreadm 228 507

228: core default

507: /usr/local/swap/corefiles/%n.%f.%p default

Page 114: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

6

Con

figur

ing

NF

S

Page 115: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 2

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

the

bene

fits

of N

FS•

Des

crib

e th

e fu

ndam

enta

ls o

f the

NFS

dis

trib

uted

file

syst

em•

Man

age

an N

FS s

erve

r•

Man

age

an N

FS c

lient

•E

nabl

e th

e N

FS s

erve

r lo

ggin

g•

Man

age

NFS

wit

h th

e So

lari

s M

anag

emen

t Con

sole

stor

age

fold

er to

ols

•T

roub

lesh

oot N

FS e

rror

s

Page 116: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 3

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SB

enefi

ts

The

NFS

ser

vice

ena

bles

com

pute

rs o

f dif

fere

nt a

rchi

tect

ures

runn

ing

dif

fere

nt o

pera

ting

sys

tem

s to

sha

re fi

le s

yste

ms

acro

ss a

net

wor

k.

You

can

impl

emen

t the

NFS

env

iron

men

t on

dif

fere

ntop

erat

ing

syst

ems

(OS)

bec

ause

NFS

defi

nes

an a

bstr

act

mod

el o

f a fi

le s

yste

m.

NFSfil

esy

stem

oper

atio

ns,s

uch

asre

adin

gan

dw

riti

ng,w

ork

as if

they

wer

e ac

cess

ing

a lo

cal fi

le.

Page 117: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 4

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SB

enefi

ts

The

ben

efits

of t

he N

FS s

ervi

ce a

re a

s fo

llow

s:

•A

llow

s m

ulti

ple

com

pute

rs to

use

the

sam

e fi

les,

beca

use

all u

sers

on

the

netw

ork

can

acce

ss th

e sa

me

dat

a•

Red

uces

sto

rage

cos

ts b

y sh

arin

g ap

plic

atio

ns o

nco

mpu

ters

inst

ead

of a

lloca

ting

loca

l dis

k sp

ace

for

each

use

r ap

plic

atio

n•

Prov

ides

dat

a co

nsis

tenc

y an

d r

elia

bilit

y, b

ecau

se a

llus

ers

can

read

the

sam

e se

t of f

iles

•Su

ppor

ts h

eter

ogen

eous

env

iron

men

ts, i

nclu

din

gth

ose

foun

d o

n a

pers

onal

com

pute

r (P

C)

•R

educ

es s

yste

m a

dm

inis

trat

ion

over

head

Page 118: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 5

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SD

istr

ibut

edF

ileS

yste

mF

unda

men

tals

The

NFS

env

iron

men

t con

tain

s th

e fo

llow

ing

com

pone

nts:

•N

FS s

erve

r•

NFS

clie

nt

The

Sol

aris

10

OS

supp

orts

ver

sion

s 2,

3, a

nd 4

NFS

sim

ulta

neou

sly.

The

def

ault

is to

use

NFS

v4.

Ver

sion

-rel

ated

che

cks

are

appl

ied

whe

neve

r a

clie

nt h

ost

atte

mpt

s to

acc

ess

a se

rver

’s fi

le s

hare

.

Page 119: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 6

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SD

istr

ibut

edF

ileS

yste

mF

unda

men

tals

•N

FS s

erve

rT

heN

FSse

rver

cont

ains

file

reso

urc

essh

ared

wit

hot

her

syst

ems

onth

ene

twor

k.A

com

pu

ter

acts

asa

serv

erw

hen

itm

akes

file

san

dd

irec

tori

eson

its

hard

dis

kav

aila

ble

toth

eot

her

com

pu

ters

onth

ene

twor

k.•

NFS

clie

ntT

heN

FScl

ient

syst

emm

ount

sfi

lere

sou

rces

shar

edov

erth

ene

twor

kan

dp

rese

nts

the

file

reso

urc

esto

use

rsas

ifth

eyw

ere

loca

lfi

les.

Page 120: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 7

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SD

istr

ibut

edF

ileS

yste

mF

unda

men

tals

•N

FSv4

The

Sola

ris

10O

Sin

clu

des

NFS

v4,i

nad

dit

ion

toN

FSv3

and

NFS

v2.

NFS

v4in

clu

des

the

follo

win

gne

wfe

atu

res:

•St

atef

ul c

onne

ctio

ns•

Sing

le p

roto

col

•Im

prov

ed fi

rew

all s

uppo

rt•

Stro

ng s

ecur

ity

•E

xten

ded

att

ribu

tes

•D

eleg

atio

n

Page 121: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 8

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gan

NF

SS

erve

r

•N

FS s

erve

r fi

les

You

need

seve

ral

file

sto

sup

por

tN

FSse

rver

acti

viti

eson

any

com

pu

ter.

•/etc/dfs/dfstab

•/etc/dfs/sharetab

•/etc/dfs/fstypes

•/etc/rmtab

•/etc/nfs/nfslog.conf

•/etc/default/nfslogd

•/etc/default/nfs

Page 122: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 9

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gan

NF

SS

erve

r

•T

he/etc/dfs/dfstab

file

The

/etc/dfs/dfstab

file

cont

ains

the

com

man

ds

that

shar

elo

cal

dir

ecto

ries

.Eac

hlin

eof

thedfstab

file

cons

ists

ofashare

com

man

d.

#cat /etc/dfs/dfstab

(output omitted)

# the very first entry to this file.

# # share [-F fstype] [ -o options] [-d "<text>"] <pathname>

[resource]

# .e.g,

# share -F nfs -o rw=engineering -d "home dirs" /export/home2

share -F nfs -o ro -d "Shared data files" /usr/local/data

share -F nfs -o rw,root=sys-01 -d "Database files" /rdbms_files

Page 123: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 10

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gan

NF

SS

erve

r

•T

he/etc/dfs/sharetab

file

The

/etc/dfs/sharetab

file

cont

ains

ata

ble

oflo

cal

reso

urc

escu

rren

tly

bein

gsh

ared

.#cat /etc/dfs/sharetab

/usr/local/data - nfs ro Shared data files

/rdbms_files - nfs ro,root=sys01 Database files

Page 124: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 11

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gan

NF

SS

erve

r

•T

he/etc/rmtab

file

The

/etc/rmtab

file

cont

ains

ata

ble

offi

lesy

stem

sre

mot

ely

mou

nted

byN

FScl

ient

s.#cat /etc/rmtab

sys-03:/usr/local/data

sys-02:/export/config

...

•T

he/etc/default/nfs

file

The

/etc/default/nfs

file

lists

par

amet

ers

that

can

bese

tfo

rN

FSd

aem

onan

dN

FSp

roto

cols

.

Page 125: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 12

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SS

erve

rDae

mon

s

To s

tart

the

NFS

ser

ver

dae

mon

s, e

nabl

e th

esvc:/network/nfs/server

ser

vice

.

#svcadm -v enable nfs/server

svc:/network/nfs/server:default enabled.

If a

sys

tem

has

ent

ries

in it

s/etc/dfs/dfstab

file

, the

NFS

serv

er d

aem

ons

star

t whe

n th

e sy

stem

ent

ers

the

multi-user-server

mile

ston

e.

Page 126: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 13

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SS

erve

rDae

mon

s

•mountd

•nfsd

•statd

•lockd

•nfslogd

•nfsmapid

In N

FSv4

, the

feat

ures

pro

vid

ed b

y th

emountd

and

lockd

dae

mon

s ar

e in

tegr

ated

into

the

NFS

v4 p

roto

col.

Page 127: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 14

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SS

erve

rDae

mon

s

•T

hemountd

dae

mon

The

mountd

dae

mon

hand

les

NFS

file

syst

emm

ount

requ

ests

from

rem

ote

syst

ems

and

pro

vid

esac

cess

cont

rol.

The

mountd

dae

mon

det

erm

ines

ifa

par

ticu

lar

dir

ecto

ryis

bein

gsh

ared

,and

ifth

ere

ques

ting

clie

ntha

sp

erm

issi

onto

acce

ssit

.•

The

nfsd

dae

mon

Whe

na

clie

ntp

roce

ssat

tem

pts

toac

cess

are

mot

efi

lere

sou

rce,

thenfsd

dae

mon

onth

eN

FSse

rver

rece

ives

the

requ

est

and

the

reso

urc

e’s

file

hand

le,

and

then

per

form

sth

ere

ques

ted

oper

atio

n.

Page 128: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 15

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SS

erve

rDae

mon

s

•T

hestatd

dae

mon

The

statd

dae

mon

wor

ksw

ith

the

lock

man

ager

lockd

dae

mon

top

rovi

de

cras

hre

cove

ryfu

ncti

ons

for

the

lock

man

ager

.•

The

lockd

dae

mon

The

lockd

dae

mon

sup

por

tsre

cord

-loc

king

oper

atio

nsfo

rN

FSfi

les.

•T

henfslogd

dae

mon

The

nfslogd

dae

mon

pro

vid

esop

erat

iona

llo

ggin

gfo

ran

NFS

serv

er.

Page 129: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 16

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SS

erve

rDae

mon

s

•T

henfsmapid

dae

mon

The

nfsmapid

dae

mon

isim

ple

men

ted

inN

FSv4

.T

henfsmapid

dae

mon

map

sow

ner

and

grou

pid

enti

fica

tion

that

both

the

NFS

v4cl

ient

and

serv

eru

se.

The

nfsmapid

dae

mon

isst

arte

dby

the

svc:/network/nfs/mapid

serv

ice.

Page 130: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 17

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gth

eN

FS

Ser

verD

aem

ons

The

NFS

dae

mon

s st

art c

ond

itio

nally

whe

n th

e sy

stem

tran

siti

ons

thro

ugh

run

leve

ls, o

r th

ey s

tart

man

ually

whe

nen

ablin

g th

esvc:/network/nfs/server

ser

vice

.

The

svcs

com

man

dca

nbe

used

tosh

owth

ed

epen

den

cies

ofth

enfs/server

ser

vice

.

#svcs | grep nfs

online 15:35:24 svc:/network/nfs/client:default

online 15:35:29 svc:/network/nfs/status:default

...

# svcs -l nfs/server

fmri svc:/network/nfs/server:default

name NFS server

...

Page 131: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 18

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gth

eN

FS

Ser

verD

aem

ons

•St

arti

ng a

nd s

topp

ing

the

NFS

ser

ver

dae

mon

sTo

star

tth

eN

FSse

rver

dae

mon

sm

anu

ally

,pla

cean

entr

yin

the/etc/dfs/dfstab

file

and

per

form

the

follo

win

gco

mm

and

:#svcadm enable svc:/network/nfs/server

Tost

opth

eN

FSse

rver

dae

mon

sm

anu

ally

,per

form

the

follo

win

gco

mm

and

:#svcadm disable svc:/network/nfs/server

Page 132: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 19

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SS

erve

rCom

man

ds

•share

•unshare

•shareall

•unshareall

•dfshares

•dfmounts

Page 133: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 20

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Ser

verf

orS

harin

gR

esou

rces

Whe

n th

e N

FS s

erve

r d

aem

ons

are

runn

ing,

you

can

use

the

share

com

man

d to

mak

e fil

e re

sour

ces

avai

labl

e.

For

exam

ple,

to s

hare

the/usr/local/data

dir

ecto

ry a

s a

read

-onl

y sh

ared

res

ourc

e, p

erfo

rm th

efo

llow

ing

com

man

d:

#share -o ro /usr/local/data

Page 134: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 21

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Ser

verf

orS

harin

gR

esou

rces

The

share

com

man

d o

ptio

ns:

•ro

•rw

•root=access-list

•ro=access-list

•rw=access-list

•anon=n

Page 135: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 22

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Ser

verf

orS

harin

gR

esou

rces

•M

akin

g fi

le r

esou

rces

una

vaila

ble

for

mou

ntin

gU

seth

eunshare

com

man

dto

mak

efi

lere

sou

rces

una

vaila

ble

for

mou

ntop

erat

ions

.Fo

rex

amp

le,t

om

ake

the/usr/local/data

dir

ecto

ryu

nava

ilabl

efo

rcl

ient

-sid

em

ount

oper

atio

ns,p

erfo

rmth

efo

llow

ing

com

man

d:

#unshare /usr/local/data

•D

ispl

ayin

g cu

rren

tly

shar

ed N

FS r

esou

rces

The

dfshares

com

man

dd

isp

lays

curr

entl

ysh

ared

NFS

reso

urc

es.

#dfshares

RESOURCE

SERVERACCESSTRANSPORT

sys-02:/usr/local/data

sys-02 - -

Page 136: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 23

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Ser

verf

orS

harin

gR

esou

rces

•D

ispl

ayin

g N

FS m

ount

ed r

esou

rces

The

dfmounts

com

man

dd

isp

lays

rem

otel

ym

ount

edN

FSre

sou

rce

info

rmat

ion.

#dfmounts

RESOURCE

SERVER

PATHNAME

CLIENTS

-sys-02

/usr/local/data sys-03

Page 137: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 24

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gth

eN

FS

Clie

nt

•N

FS c

lient

file

sYo

une

edse

vera

lfile

sto

sup

por

tNFS

clie

ntac

tivi

ties

onan

yco

mp

ute

r.•

/etc/vfstab

•/etc/mnttab

•/etc/dfs/fstypes

•/etc/default/nfs

Page 138: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 25

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gth

eN

FS

Clie

nt

•T

he/etc/vfstab

file

Tom

ount

rem

ote

file

reso

urc

esat

boot

tim

e,en

ter

the

app

rop

riat

een

trie

sin

the

clie

nt’s/etc/vfstab

file

.For

exam

ple

:sys-02:/usr/local/data - /usr/remote_data nfs - yes soft,bg

•T

he/etc/mnttab

file

The

/etc/mnttab

file

syst

emp

rovi

des

read

-onl

yac

cess

toth

eta

ble

ofm

ount

edfi

lesy

stem

sfo

rth

ecu

rren

tho

st.

Mou

ntin

ga

file

syst

emad

ds

anen

try

toth

e/etc/mnttab

file

.

Page 139: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 26

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SC

lient

Dae

mon

s

The

NFS

clie

nt d

aem

ons

are

star

ted

usi

ng th

esvc:/network/nfs/client

ser

vice

.

•statd

•lockd

•nfs4cbd

Page 140: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 27

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gth

eN

FS

Clie

ntD

aem

ons

Two

NFS

dae

mon

s, th

estatd

dae

mon

and

thelockd

dae

mon

, run

bot

h on

the

NFS

ser

vers

and

the

NFS

clie

nts.

The

sed

aem

ons

star

taut

omat

ical

lyw

hen

asy

stem

ente

rsth

enetwork

mile

ston

e.

#svcs -D milestone/network

STATE STIME FMRI

disabled 15:34:35 svc:/network/dns/client:default

disabled 15:34:37 svc:/network/nfs/cbd:default

(output omitted)

online 16:31:18 svc:/network/nfs/nlockmgr:default

online 16:33:12 svc:/network/nfs/status:default

Page 141: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 28

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gth

eN

FS

Clie

ntD

aem

ons

•T

helockd

dae

mon

is s

tart

ed b

y th

e SM

F se

rvic

enfs/nlockmgr

.#svcadm -v enable nfs/nlockmgr

svc:/network/nfs/nlockmgr:default enabled.

•T

hestatd

dae

mon

is s

tart

ed b

y th

e SM

F se

rvic

enfs/status

.#svcadm -v enable nfs/status

svc:/network/nfs/status:default enabled.

Tom

anu

ally

rest

art

thes

ed

aem

ons,

per

form

the

follo

win

gco

mm

and

s:#svcadm -v restart nfs/status

Action restart set for svc:/network/nfs/status:default.

#svcadm -v restart nfs/nlockmgr

Action restart set for svc:/network/nfs/nlockmgr:default.

#

Page 142: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 29

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NF

SC

lient

Com

man

ds

•dfshares

•mount

•umount

•mountall

•umountall

Page 143: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 30

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Clie

ntfo

rMou

ntin

gR

esou

rces

•D

ispl

ayin

g a

serv

er’s

ava

ilabl

e re

sour

ces

You

can

use

thedfshares

com

man

dto

list

reso

urc

esm

ade

avai

labl

eby

anN

FSse

rver

.#dfshares sys-02

RESOURCE

SERVER ACCESS TRANSPORT

sys-02:/usr/local/data sys-02 - -

...

Page 144: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 31

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Clie

ntfo

rMou

ntin

gR

esou

rces

•A

cces

sing

the

rem

ote

file

res

ourc

eU

seth

e/usr/sbin/mount

com

man

dto

atta

cha

loca

lor

rem

ote

file

reso

urc

eto

the

loca

lfi

lesy

stem

hier

arch

y.Fo

rex

amp

le:

#mount sys-02:/rdbms_files /rdbms_files

Whe

nm

ount

ing

are

ad-o

nly

rem

ote

reso

urc

e,yo

uca

nsp

ecif

ya

com

ma-

sep

arat

edlis

tof

sou

rces

for

the

rem

ote

reso

urc

e,w

hich

are

then

use

das

alis

tof

failo

ver

reso

urc

es.

#mount -o ro sys-45,sys-43,sys-41:/multi_homed_data /

remote_shared_data

Page 145: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 32

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Clie

ntfo

rMou

ntin

gR

esou

rces

•U

nmou

ntin

g th

e re

mot

e fi

le r

esou

rces

from

the

clie

ntU

seth

eumount

com

man

dto

det

ach

loca

land

rem

ote

file

reso

urc

esfr

omth

efi

lesy

stem

hier

arch

y.#umount /rdbms_files

•M

ount

ing

all f

ile r

esou

rces

The

/usr/sbin/mountall

com

man

dm

ount

sal

lfi

lere

sou

rces

liste

din

the/etc/vfstab

file

wit

hamount

at

boot

valu

eof

yes

.To

limit

the

acti

onof

this

com

man

dto

rem

ote

file

reso

urc

es,u

seth

e-r

opti

on.

#mountall -r

Page 146: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 33

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

FS

Clie

ntfo

rMou

ntin

gR

esou

rces

•U

nmou

ntin

g al

l cur

rent

ly m

ount

ed fi

le r

esou

rces

Use

theumountall

com

man

dw

ith

the-r

opti

onto

rest

rict

unm

ount

ing

toon

lyre

mot

efi

lesy

stem

s.#umountall -r

•M

ount

ing

rem

ote

reso

urce

s at

boo

t tim

eTo

mou

nta

rem

ote

file

reso

urc

eat

boot

tim

e,cr

eate

anap

pro

pri

ate

entr

yin

the

clie

nt’s/etc/vfstab

file

.Fo

rex

amp

le:

sys-02:/usr/local/data - /usr/remote_data nfs - yes soft,bg

Page 147: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 34

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

mount

Com

man

dO

ptio

ns

•rw|ro

•bg|fg

•soft|hard

•intr|nointr

•suid|nosuid

•timeo=n

•retry=n

•retrans=n

Page 148: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 35

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Fun

dam

enta

lsof

NF

SS

erve

rLog

ging

The

NFS

ser

ver

logg

ing

feat

ure

reco

rds

NFS

tran

sact

ions

.

The

nfslogd

dae

mon

pro

vid

es o

pera

tion

al lo

ggin

g.

Whe

nyo

uen

able

NFS

serv

erlo

ggin

g,th

eN

FSke

rnel

mod

ule

wri

tes

reco

rds

of a

ll N

FS o

pera

tion

s on

the fi

le s

yste

m in

to a

buff

er fi

le.

The

nfslogd D

aem

on

The

nfslogd

dae

mon

conv

erts

the

raw

dat

afr

omth

elo

ggin

gop

erat

ion

into

ASC

IIre

cord

s,an

dst

ores

the

raw

dat

ain

ASC

IIlo

g fil

es.

Page 149: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 36

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gN

FS

Log

Pat

hs

The

/etc/nfs/nfslog.conffil

ed

efine

sth

epa

th,fi

lena

mes

,an

d ty

pe o

f log

ging

that

thenfslogd

dae

mon

mus

t use

.

A ta

g co

rres

pond

s to

eac

h d

efini

tion

.

To c

onfig

ure

NFS

ser

ver

logg

ing,

iden

tify

or

crea

te th

e ta

gen

trie

s fo

r ea

ch o

f the

ser

ver’

s sh

ared

res

ourc

es.

The

global

tag

defi

nes

def

ault

val

ues.

Page 150: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 37

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gN

FS

Log

Pat

hs

Tagg

ed e

ntri

es in

/etc/nfs/nfslog.conf

use

the

follo

win

gfo

rmat

: <tag> [ defaultdir=<dir_path> ] \

[ log=<logfile_path> ] [ fhtable=<table_path> ] \

[ buffer=<bufferfile_path> ] [ logformat=basic|extended ]

For

exam

ple:

global defaultdir=/var/nfs \

log=nfslog fhtable=fhtable buffer=nfslog_workbuffer

Page 151: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 38

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gN

FS

Log

Pat

hs

Use

the

follo

win

g pa

ram

eter

s w

ith

each

tag,

as

requ

ired

:

•defaultdir=dir_path

•log=logfile_path

•fhtable=table_path

•buffer=bufferfile_path

•logformat=basic|extended

Cre

ate

any

dir

ecto

ries

you

spe

cify

in/etc/nfs/nfslog.conf

bef

ore

star

ting

NFS

ser

ver

logg

ing.

Page 152: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 39

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Initi

atin

gN

FS

Logg

ing

To in

itia

te N

FS s

erve

r lo

ggin

g, c

ompl

ete

the

follo

win

g st

eps:

1.B

ecom

esu

per

use

r.2.

Op

tion

al:C

hang

eth

eco

nfig

ura

tion

sett

ings

inth

e/etc/nfs/nfslog.conf

file

.3.

Shar

eth

efi

lesy

stem

for

whi

chyo

uw

ant

toen

able

logg

ing,

add

ing

the-o

log

opti

on,o

rth

elog=tag

opti

on.E

xam

ple

:share -F nfs -o log /export/sys44_data

4.C

heck

that

the

NFS

serv

ice

isru

nnin

gon

the

serv

er.

5.R

un

theshare

com

man

dto

veri

fyth

atth

eco

rrec

top

tion

sar

elis

ted

for

the

dir

ecto

ryyo

ush

ared

.

Page 153: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 6,

slid

e 40

of 4

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gN

FS

With

the

Sol

aris

Man

agem

entC

onso

leS

tora

geF

olde

rToo

ls

You

can

man

age

the

NFS

syst

emby

usin

gco

mpo

nent

sof

the

stor

age

fold

er to

ols

from

the

def

ault

tool

box

of t

he S

olar

isM

anag

emen

t Con

sole

.

The

Mou

nts

and

Shar

esto

olle

tsyo

uvi

ew,c

reat

e,an

dm

anag

ese

vera

l typ

es o

f mou

nts

and

sha

res.

Page 154: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

7

Con

figur

ing

Aut

oFS

Page 155: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 2

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

the

fund

amen

tals

of t

he A

utoF

S fi

le s

yste

m•

Use

aut

omou

nt m

aps

Page 156: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 3

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Aut

oFS

Fun

dam

enta

ls

Aut

oFS

is a

file

sys

tem

mec

hani

sm th

at p

rovi

des

aut

omat

icm

ount

ing

usin

g th

e N

FS p

roto

col.

Aut

oFS

is a

clie

nt-s

ide

serv

ice.

The

Aut

oFS

serv

ice

mou

nts

and

unm

ount

s fi

le s

yste

ms

asre

quir

ed w

itho

ut a

ny u

ser

inte

rven

tion

.

The

aut

omou

nt fa

cilit

y co

ntai

ns th

ree

com

pone

nts:

•T

he A

utoF

S fi

le s

yste

m•

The

automountd

dae

mon

•T

heautomount

com

man

d

Page 157: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 4

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Aut

oFS

Fun

dam

enta

ls

RA

M

Aut

omou

nt M

aps

Mas

ter

map

Dire

ct m

ap

Indi

rect

map

Spe

cial

map

���������

��

Aut

oFS

���������

���������

Page 158: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 5

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Aut

oFS

Fun

dam

enta

ls

•A

utoF

S fi

le s

yste

mA

nA

uto

FSfi

lesy

stem

’sm

ount

poi

nts

are

def

ined

inth

eau

tom

ount

map

son

the

clie

ntsy

stem

.A

fter

the

Au

toFS

mou

ntp

oint

sar

ese

tu

p,a

ctiv

ity

und

erth

em

ount

poi

nts

can

trig

ger

file

syst

ems

tobe

mou

nted

und

erth

em

ount

poi

nts.

Ifa

mou

ntre

ques

tis

mad

efo

ran

Au

toFS

reso

urc

eno

tcu

rren

tly

mou

nted

,the

Au

toFS

serv

ice

calls

the

automountd

dae

mon

,whi

chm

ount

sth

ere

ques

ted

reso

urc

e.

Page 159: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 6

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Aut

oFS

Fun

dam

enta

ls

•T

heautomountd

dae

mon

The

/lib/svc/method/svc-autofs

scri

pt

star

tsth

eautomountd

dae

mon

.T

heautomountd

dae

mon

mou

nts

file

syst

ems

ond

eman

dan

du

nmou

nts

idle

mou

ntp

oint

s.•

The

automount

com

man

dT

heautomount

com

man

d,c

alle

dat

syst

emst

artu

pti

me,

read

sth

em

aste

rm

apto

crea

teth

ein

itia

lset

ofA

uto

FSm

ount

s.T

hese

Au

toFS

mou

nts

are

not

auto

mat

ical

lym

ount

edat

star

tup

tim

e,th

eyar

eth

ep

oint

su

nder

whi

chfi

lesy

stem

sar

em

ount

edon

dem

and

.

Page 160: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 7

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngA

utom

ount

Map

s

The

follo

win

g lis

ts th

e A

utoF

S m

ap ty

pes:

•M

aste

rmap

–L

ists

the

othe

rmap

suse

dfo

rest

ablis

hing

the

Aut

oFS

file

sys

tem

. The

automount

com

man

dre

ads

this

map

at b

oot t

ime.

•D

irec

t map

– L

ists

the

mou

nt p

oint

s as

abs

olut

e pa

thna

mes

. Thi

s m

ap e

xplic

itly

ind

icat

es th

e m

ount

poi

nton

the

clie

nt.

•In

dir

ect m

ap –

Lis

ts th

e m

ount

poi

nts

as r

elat

ive

path

nam

es. T

his

map

use

s a

rela

tive

pat

h to

est

ablis

h th

em

ount

poi

nt o

n th

e cl

ient

.•

Spec

ial–

Prov

ides

acce

ssto

NFS

serv

ers

byus

ing

thei

rho

st n

ames

.

Page 161: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 8

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eM

aste

rMap

The

auto_master

map

ass

ocia

tes

a d

irec

tory

, als

o ca

lled

am

ount

poi

nt, w

ith

a m

ap.

The

auto_master

map

isa

mas

terl

ists

peci

fyin

gal

lthe

map

sth

at th

e A

utoF

S se

rvic

e sh

ould

che

ck.

The

follo

win

g ex

ampl

e sh

ows

an/etc/auto_master

file

.

#cat /etc/auto_master

# Master map for automounter

# +auto_master

/net

-hosts

-nosuid,nobrowse

/home

auto_home

-nobrowse

Page 162: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 9

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Iden

tifyi

ngM

ount

Poi

nts

forS

peci

alM

aps

The

re a

re tw

o m

ount

poi

nt e

ntri

es li

sted

in th

e d

efau

lt/etc/auto_master

file

.

/net

-hosts

-nosuid,nobrowse

/home

auto_home

-nobrowse

•T

he-hosts

map

pro

vid

es a

cces

s to

all

reso

urce

ssh

ared

by

NFS

ser

vers

.•

The

auto_home

map

prov

ides

the

mec

hani

smto

allo

wus

ers

toac

cess

thei

rcen

tral

lylo

cate

d$HOME

dir

ecto

ries

.

Page 163: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 10

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

e/net

Dire

ctor

y

Shar

ed r

esou

rces

ass

ocia

ted

wit

h th

e ho

sts

map

ent

ry a

rem

ount

ed b

elow

the/net/hostname

dir

ecto

ry.

For

exam

ple,

a s

hare

d r

esou

rce

nam

ed/documentation

onho

stsys42

ism

ount

edby

the

com

man

d:

#cd /net/sys42/documentation

Page 164: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 11

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Add

ing

Dire

ctM

apE

ntrie

s

A/-

ent

ry in

the

mas

ter

map

defi

nes

a m

ount

poi

nt fo

r a

dir

ect m

ap.

/-

auto_direct

-ro

Cre

atin

g a

Dire

ct M

ap

Dir

ect m

aps

spec

ify

the

abso

lute

pat

h na

me

of th

e m

ount

poin

t, th

e sp

ecifi

c op

tion

s fo

r th

is m

ount

, and

the

shar

edre

sour

ce to

mou

nt. F

or e

xam

ple:

#cat /etc/auto_direct

# Superuser-created direct map for automounter

# /apps/frame -ro,soft server1:/export/framemaker,v6.0

/opt/local -ro,soft server2:/export/unbundled

/usr/share/man -ro,soft server3,server4,server5:/usr/share/man

Page 165: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 12

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Add

ing

Indi

rect

Map

Ent

ries

Ind

irec

tmap

sob

tain

the

init

ialp

ath

ofth

em

ount

poin

tfro

mth

e m

aste

r m

ap. F

or e

xam

ple,

the/home

ent

ry in

the

mas

ter

map

defi

nes

the

base

for

mou

nt p

oint

s lis

ted

in th

e in

dir

ect

map

cal

ledauto_home

.

/home

auto_home

-nobrowse

•C

reat

ing

an in

dir

ect m

apE

ntri

esin

anin

dir

ect

map

list

the

rem

aind

erof

the

pre

ferr

edm

ount

poi

nt,a

ndth

ere

sou

rce

tom

ount

.Fo

rex

amp

le:

stevenu

host5:/export/home/stevenu

johnnyd

host6:/export/home/johnnyd

Page 166: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 13

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Add

ing

Indi

rect

Map

Ent

ries

•R

educ

ing

theauto_home

map

to a

sin

gle

line

Inth

isex

amp

le,t

heu

seof

subs

titu

tion

char

acte

rsw

ithi

nauto_home

spec

ifie

sth

atfo

rev

ery

logi

nID

,th

ecl

ient

rem

otel

ym

ount

sth

e/export/home/loginID

dir

ecto

ryfr

omth

eN

FSse

rver

.*

server1:/export/home/&

•T

he w

ildca

rd c

hara

cter

(*) m

atch

es a

ny k

ey.

•T

hesu

bsti

tuti

onch

arac

ter

(&)a

tthe

end

ofth

epa

this

rep

lace

d w

ith

the

mat

ched

key

fiel

d.

Page 167: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 14

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Upd

atin

gth

eA

utom

ount

Map

s

Whe

nm

akin

gch

ange

sto

the

mas

ter

map

orcr

eati

nga

dir

ect

map

, run

theautomount

com

man

d to

mak

e th

e ch

ange

sef

fect

ive.

You

do

not h

ave

to s

top

and

res

tart

theautomountd

dae

mon

.

You

can

mod

ify

exis

ting

ent

ries

in a

dir

ect m

ap a

t any

tim

e.T

he n

ew in

form

atio

n is

use

d w

hen

theautomountd

dae

mon

next

acc

esse

s th

e m

ap e

ntry

to p

erfo

rm a

mou

nt.

Any

mod

ifica

tion

sto

ind

irec

tmap

sar

eau

tom

atic

ally

used

byth

eautomountd

dae

mon

.

Page 168: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 7,

slid

e 15

of 1

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sto

ppin

gan

dS

tart

ing

the

Aut

omou

ntS

yste

m

•St

oppi

ng th

e au

tom

ount

sys

tem

Tod

isab

leth

ese

rvic

em

anu

ally

,ent

erth

efo

llow

ing

com

man

d:

#svcadm disable svc:/system/filesystem/autofs

•St

arti

ng th

e au

tom

ount

sys

tem

Toen

able

the

serv

ice

man

ual

ly,e

nter

the

follo

win

gco

mm

and

:#svcadm enable svc:/system/filesystem/autofs

Page 169: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

8

Des

crib

ing

RA

ID a

nd th

e S

olar

is™

Vol

ume

Man

ager

Sof

twar

e

Page 170: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 2

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

RA

ID•

Des

crib

e So

lari

s V

olum

e M

anag

er s

oftw

are

conc

epts

Page 171: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 3

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

RA

ID

RA

ID is

a c

lass

ifica

tion

of m

etho

ds

to b

ack

up a

nd to

sto

red

ata

on m

ulti

ple

dis

k d

rive

s.

The

Sol

aris

Vol

ume

Man

ager

sof

twar

e us

es m

etad

evic

es,

whi

ch a

re p

rod

uct-

spec

ific

defi

niti

ons

of lo

gica

l sto

rage

volu

mes

, to

impl

emen

t RA

ID 0

, RA

ID 1

,RA

ID 1

+0,

and

RA

ID 5

:

•R

AID

0:N

on-r

edun

dan

tdis

kar

ray

(con

cate

nati

onan

dst

ripi

ng)

•R

AID

1: M

irro

red

dis

k ar

ray

•R

AID

5: B

lock

-int

erle

aved

str

ipin

g w

ith

dis

trib

uted

pari

ty

Page 172: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 4

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID0

The

re a

re tw

o ty

pes

of R

AID

-0 v

olum

es:

•C

onca

tena

ted

vol

umes

(or

conc

aten

atio

ns)

Aco

ncat

enat

edvo

lum

ew

rite

sd

ata

toth

efi

rst

avai

labl

esl

ice.

Whe

nth

efi

rsts

lice

isfu

ll,th

evo

lum

ew

rite

sd

ata

toth

ene

xtav

aila

ble

slic

e.•

Stri

ped

vol

umes

(or

stri

pes)

Ast

rip

ed

istr

ibu

tes

dat

aeq

ual

lyac

ross

all

slic

esin

the

stri

pe.

RA

ID-0

vol

umes

allo

w y

ou to

exp

and

dis

k st

orag

e ca

paci

tyeffic

ient

ly. T

hese

vol

umes

do

not p

rovi

de

dat

a re

dun

dan

cy. I

f asi

ngle

slic

e fa

ils o

n a

RA

ID-0

vol

ume,

the

enti

re v

olum

e is

inac

cess

ible

.

Page 173: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 5

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID1

RA

ID-1

volu

mes

,als

okn

own

asm

irro

rvol

umes

inth

eSo

lari

sV

olum

eM

anag

erso

ftw

are,

are

typi

cally

com

pose

dof

RA

ID-0

volu

mes

.

Ad

vant

ages

are

dat

a re

dun

dan

cy, d

isad

vant

ages

are

the

high

er c

ost i

ncur

red

by

requ

irin

g tw

o R

AID

-1 d

evic

esw

here

ver

a si

ngle

RA

ID-0

dev

ice

is m

irro

red

.

RA

ID-1

volu

mes

,als

okn

own

asm

irro

rvol

umes

inth

eSo

lari

sV

olum

eM

anag

erso

ftw

are,

are

typi

cally

com

pose

dof

RA

ID-0

volu

mes

and

pro

vid

e th

e ad

vant

age

of d

ata

red

und

ancy

.

Page 174: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 6

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID1

Typi

calt

opic

sto

beco

nsid

ered

whe

nco

nfigu

ring

mir

rors

are:

•T

rad

e-of

fs w

hen

usin

g m

irro

rs•

Use

s of

mul

tipl

e su

bmir

rors

•R

AID

0+

1•

RA

ID 1

+0

•M

irro

r re

ad, w

rite

, and

syn

chro

niza

tion

opt

ions

•M

irro

r co

nfig

urat

ion

guid

elin

es

Page 175: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 7

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID0+

1

InR

AID

-0+

1vo

lum

es,s

trip

esar

em

irro

red

toea

chot

her.

Ina

pure

RA

ID-0

+1

confi

gura

tion

, the

failu

re o

f one

slic

e w

ould

caus

e th

e fa

ilure

of t

he w

hole

sub

mir

ror.

Page 176: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 8

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID1+

0

RA

ID-1

+0

volu

mes

con

sist

of m

ulti

ple

mir

rors

str

iped

toge

ther

. RA

ID 1

+0

prov

ides

gre

ater

dat

a se

curi

ty, b

ecau

se a

failu

re o

f a s

ingl

e ph

ysic

al d

isk

slic

e ca

uses

a fa

ilure

for

only

one

half

of o

ne o

f the

sub

mir

rors

, lea

ving

mos

t of t

heco

nfigu

rati

on’s

red

und

ancy

inta

ct.

Page 177: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 9

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Mirr

orO

ptio

ns

Mir

ror

perf

orm

ance

can

be

mod

ified

by

usin

g th

e fo

llow

ing

opti

ons:

•M

irro

r re

ad p

olic

y•

Mir

ror

wri

te p

olic

y

You

can

defi

ne m

irro

r op

tion

s w

hen

you

init

ially

cre

ate

the

mir

ror

or a

fter

you

set

up

the

mir

ror.

You

can

dis

trib

ute

the

load

acr

oss

the

subm

irro

rs to

impr

ove

read

per

form

ance

.

Page 178: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 10

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Mirr

orR

ead

Pol

icie

s

Rea

d P

olic

yD

escr

ipti

on

Rou

nd R

obin

(def

ault

)B

alan

ces

the

load

acr

oss

the

subm

irro

rs

Geo

met

ric

Ena

bles

the

syst

em to

div

ide

read

s am

ong

subm

irro

rs o

n th

e ba

sis

of a

logi

cal d

isk

bloc

kad

dre

ss

Firs

tD

irec

ts a

ll re

ads

to th

e fir

st s

ubm

irro

r

Page 179: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 11

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Mirr

orW

rite

Pol

icie

s

Wri

te P

olic

yD

escr

ipti

on

Para

llel (

Def

ault

)R

eplic

ates

a w

rite

to a

mir

ror,

and

dis

patc

hes

the

wri

te to

all

of th

e su

bmir

rors

sim

ulta

neou

sly

Seri

alSp

ecifi

es th

at w

rite

s to

one

sub

mir

ror

mus

tco

mpl

ete

befo

re in

itia

ting

wri

tes

to th

e ne

xtsu

bmir

ror

Page 180: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 12

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID5

RA

ID-5

vol

umes

are

str

iped

vol

umes

that

use

a d

istr

ibut

edpa

rity

sch

eme

for

dat

a pr

otec

tion

.

Sta

ndar

d R

AID

-5 V

olum

e

The

dif

fere

nce

betw

een

a R

AID

leve

l 5 a

nd s

trip

ing

is th

at in

the

RA

ID le

vel 5

, par

ity

dat

a is

als

o d

istr

ibut

ed a

cros

s th

esa

me

set o

f dis

ks.

Page 181: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 13

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID5

Req

uire

men

ts fo

r R

AID

-5 V

olum

es

The

gene

ralc

onfig

urat

ion

guid

elin

esfo

rco

nfigu

ring

RA

ID-5

volu

mes

are

:

•C

reat

e a

RA

ID-5

vol

ume

wit

h a

min

imum

of t

hree

slic

es. T

he m

ore

slic

es a

RA

ID-5

vol

ume

cont

ains

, the

long

erre

adan

dw

rite

oper

atio

nsta

kew

hen

asl

ice

fails

.•

Do

not s

trip

e, c

onca

tena

te, o

r m

irro

r R

AID

-5 v

olum

es.

•D

o no

t cre

ate

a R

AID

-5 v

olum

e fr

om a

slic

e th

atco

ntai

nsan

exis

ting

file

syst

em,b

ecau

seyo

uw

iller

ase

the

dat

a d

urin

g th

e R

AID

-5 in

itia

lizat

ion

proc

ess.

Page 182: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 14

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID5

•W

hen

you

crea

tea

RA

ID-5

volu

me,

you

can

def

ine

the

inte

rlac

eva

lue.

Ifyo

ud

ono

tspe

cify

ava

lue,

ad

efau

ltva

lue

of 1

6 K

byte

s is

ass

igne

d.

•A

RA

ID-5

volu

me

(wit

hno

hots

pare

s)ca

non

lyha

ndle

a si

ngle

slic

e fa

ilure

.•

To

opti

miz

e pe

rfor

man

ce, u

se s

lices

acr

oss

sepa

rate

cont

rolle

rs w

hen

crea

ting

RA

ID-5

vol

umes

.•

Use

dis

k sl

ices

of t

he s

ame

size

. Cre

atin

g a

RA

ID-5

volu

me

of d

iffe

rent

-siz

ed s

lices

res

ults

in u

nuse

d d

isk

spac

e on

the

larg

er s

lices

.

Page 183: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 15

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RA

ID5

Sug

gest

ions

for

RA

ID 5

Vol

umes

The

follo

win

g ge

nera

l sug

gest

ions

can

hel

p av

oid

com

mon

perf

orm

ance

pro

blem

s w

hen

usin

g R

AID

-5 v

olum

es:

•B

ecau

se o

f the

com

plex

ity

of p

arit

y ca

lcul

atio

ns,

volu

mes

wit

h gr

eate

r th

an a

bout

20

perc

ent w

rite

ssh

ould

pro

babl

y no

t be

RA

ID-5

vol

umes

. If d

ata

red

und

ancy

on

a w

rite

-hea

vy v

olum

e is

nee

ded

,co

nsid

er m

irro

ring

.•

If th

e sl

ices

in th

e R

AID

-5 v

olum

e re

sid

e on

dif

fere

ntco

ntro

llers

and

the

acce

sses

toth

evo

lum

ear

epr

imar

ilyla

rge

sequ

enti

al a

cces

ses,

then

set

ting

the

inte

rlac

eva

lue

to 3

2 K

byte

s m

ight

impr

ove

perf

orm

ance

.

Page 184: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 16

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Har

dwar

eC

onsi

dera

tions

Fora

nygi

ven

appl

icat

ion

ther

ear

etr

ade-

offs

inpe

rfor

man

ce,

avai

labi

lity,

and

har

dw

are

cost

s. A

few

cat

egor

ies

ofin

form

atio

n th

at y

ou m

ust a

dd

ress

dur

ing

the

stor

age

plan

ning

pha

se a

re:

•G

ener

al s

tora

ge g

uid

elin

es•

Det

erm

inin

g st

orag

e ch

arac

teri

stic

s•

Stor

age

perf

orm

ance

gui

del

ines

Page 185: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 17

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cho

osin

gS

tora

geM

echa

nism

s

Feat

ure

RA

ID-0

Con

cate

nati

onR

AID

-0St

ripe

RA

ID-1

Mir

ror

RA

ID-5

Stri

peW

ith

Pari

ty

Red

und

ant

dat

aN

oN

oYe

sYe

s

Impr

oved

read

perf

orm

ance

No

Yes

Dep

end

son

the

und

erly

ing

dev

ice

Yes

Impr

oved

wri

tepe

rfor

man

ce

No

Yes

No

No

Page 186: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 18

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Opt

imiz

ing

Red

unda

ntS

tora

ge

Fact

ors

RA

ID 1

(Mir

ror)

RA

ID 5

Non

-Red

und

ant

Wri

te o

pera

tion

sFa

ster

Slow

erN

eutr

al

Ran

dom

rea

dSl

ower

Fast

erN

eutr

al

Har

dw

are

cost

Hig

hest

Hig

her

Low

est

Perf

orm

ance

dur

ing

failu

reB

est

Poor

Dat

a lo

ss

Page 187: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 19

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

Sol

aris

Vol

ume

Man

ager

Sof

twar

eC

once

pts

The

Sola

ris

Vol

ume

Man

ager

soft

war

ele

tsyo

um

anag

ela

rge

num

bers

of d

isks

and

the

dat

a on

thos

e d

isks

. Mos

t tas

ksin

clud

e:

•In

crea

sing

sto

rage

cap

acit

y•

Incr

easi

ng d

ata

avai

labi

lity

•M

akin

g th

e ad

min

istr

atio

n of

larg

e st

orag

e d

evic

esea

sier

Page 188: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 20

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Logi

calV

olum

e

SVM

sof

twar

e us

es v

irtu

al d

isks

cal

led

logi

cal v

olum

es to

man

age

phys

ical

dis

ks a

nd th

eir

asso

ciat

ed d

ata.

You

can

crea

teth

eSo

lari

sV

olum

eM

anag

erso

ftw

are

volu

mes

from

slic

es (d

isk

part

itio

ns) o

r fr

om o

ther

Sol

aris

Vol

ume

Man

ager

sof

twar

e vo

lum

es.

The

Enh

ance

d S

tora

ge to

ol w

ithi

n th

e So

lari

s M

anag

emen

tC

onso

le a

llow

s yo

u to

list

, cre

ate,

and

mod

ify

any

type

of

SVM

sof

twar

e vo

lum

es o

r co

mpo

nent

s.

Page 189: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 21

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sof

tPar

titio

ns

Soft

par

titi

ons

prov

ide

a m

echa

nism

for

div

idin

g la

rge

stor

age

spac

es in

to s

mal

ler,

mor

e m

anag

eabl

e si

zes.

Use

soft

part

itio

ning

tod

ivid

ea

slic

eor

volu

me

into

asm

any

div

isio

ns a

s ne

eded

. A s

oft p

arti

tion

, onc

e na

med

, can

be

dir

ectl

y ac

cess

ed b

y ap

plic

atio

ns, i

nclu

din

g fi

le s

yste

ms,

as

long

as

it is

not

incl

uded

in a

noth

er v

olum

e.

Page 190: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 8,

slid

e 22

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Intr

oduc

ing

the

Sta

teD

atab

ase

Bef

ore

crea

ting

vol

umes

usi

ng th

e So

lari

s V

olum

e M

anag

erso

ftw

are,

sta

te d

atab

ase

repl

icas

mus

t exi

st o

n th

e So

lari

sV

olum

e M

anag

er s

oftw

are

syst

em.

The

Sola

ris

Vol

ume

Man

ager

soft

war

eau

tom

atic

ally

upd

ates

the

stat

e d

atab

ase

whe

n a

confi

gura

tion

or

stat

e ch

ange

occu

rs.

The

sta

te d

atab

ase

is a

col

lect

ion

ofm

ulti

ple,

repl

icat

edd

atab

ase

copi

es.H

avin

gco

pies

ofth

est

ate

dat

abas

epr

otec

tsag

ains

t dat

a lo

ss fr

om s

ingl

e po

ints

-of-

failu

re.

Page 191: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

9

Con

figur

ing

Sol

aris

Vol

ume

Man

ager

Sof

twar

e

Page 192: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 2

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

Sola

ris

Vol

ume

Man

ager

sof

twar

e co

ncep

ts•

Bui

ld a

RA

ID-0

(con

cate

nate

d) v

olum

e•

Bui

ld a

RA

ID-1

(mir

ror)

vol

ume

for

the

root

(/) f

ilesy

stem

Page 193: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 3

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Vol

ume

Man

ager

Con

cept

s

The

Sola

ris

Vol

ume

Man

ager

soft

war

ein

the

Sola

ris

9O

San

dSo

lari

s10

OS

repl

aces

the

Sols

tice

Dis

kSui

te™

soft

war

eus

edin

rel

ease

s of

the

Sola

ris

OS

prio

r to

Sol

aris

9 O

S.

The

Sol

aris

Vol

ume

Man

ager

sof

twar

e is

use

d to

impl

emen

tR

AID

0, R

AID

1, R

AID

1+

0, a

nd R

AID

5.

Page 194: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 4

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sta

teD

atab

ase

Rep

licas

The

sta

te d

atab

ase

stor

es in

form

atio

n on

dis

k ab

out t

he s

tate

of y

our

Sola

ris

Vol

ume

Man

ager

sof

twar

e co

nfigu

rati

on.

Mul

tipl

e co

pies

of t

he d

atab

ase,

cal

led

rep

licas

, pro

vid

ere

dun

dan

cy.T

hest

ate

dat

abas

ere

plic

assh

ould

bed

istr

ibut

edac

ross

mul

tipl

e d

isks

.

Sola

ris

Vol

ume

Man

ager

sof

twar

e us

es a

maj

orit

y co

nsen

sus

algo

rith

mto

det

erm

ine

whi

chst

ate

dat

abas

ere

plic

asco

ntai

nva

lid d

ata.

The

alg

orit

hm r

equi

res

that

a m

ajor

ity

(hal

f +1)

of t

he s

tate

dat

abas

e re

plic

as a

re a

vaila

ble

befo

re a

ny o

f the

m a

reco

nsid

ered

val

id.

Page 195: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 5

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sta

teD

atab

ase

Rep

licas

The

maj

orit

y co

nsen

sus

algo

rith

m:

•M

akes

sure

that

the

syst

emst

ays

runn

ing

ifat

leas

thal

fof

the

stat

e d

atab

ase

repl

icas

are

ava

ilabl

e.•

Cau

sest

hesy

stem

topa

nic

iffe

wer

than

half

ofth

est

ate

dat

abas

e re

plic

as a

re a

vaila

ble.

•Pr

even

ts th

e sy

stem

from

sta

rtin

g th

e So

lari

s V

olum

eM

anag

erso

ftw

are

unle

ssa

maj

orit

yof

the

tota

lnum

ber

of s

tate

dat

abas

e re

plic

as a

re a

vaila

ble.

Page 196: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 6

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

gth

eS

tate

Dat

abas

e

You

can

crea

te s

tate

dat

abas

e re

plic

as b

y us

ing

the

follo

win

g:

•T

hemetadb -a

com

man

d•

The

Sol

aris

Vol

ume

Man

ager

sof

twar

e G

UI

The

follo

win

g ex

ampl

e sh

ows

usin

gmetadb

to c

reat

e st

ate

dat

abas

e re

plic

as:

#metadb -a -f c0t0d0s4 c0t0d0s5 c1t0d0s0 c1t0d0s1

#metadb

flags

firstblk

block count

au

16

8192/dev/dsk/c0t0d0s4

au

16

8192 /dev/dsk/c0t0d0s5

au

16

8192 /dev/dsk/c1t0d0s0

au

16

8192 /dev/dsk/c1t0d0s1

Page 197: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 7

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

gth

eS

tate

Dat

abas

eU

sing

the

Sol

aris

Man

agem

entC

onso

le

The

Enh

ance

d S

tora

ge T

ool w

ithi

n th

e So

lari

s M

anag

emen

tC

onso

le p

rovi

des

a G

UI t

hat g

uid

es y

ou th

roug

h So

lari

sV

olum

e M

anag

er ta

sks.

•T

he S

tate

Dat

abas

e R

eplic

a ic

on in

the

Enh

ance

dSt

orag

e T

ool l

ets

you

man

age

the

Stat

e D

atab

ase.

•Se

lect

the

Cre

ate

Rep

licas

from

the

Act

ion

men

u to

crea

te r

eplic

as. A

ser

ies

of w

ind

ows

guid

es y

outh

roug

h cr

eati

ng th

e st

ate

dat

abas

e.

Page 198: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 8

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

gth

eS

tate

Dat

abas

eU

sing

the

Sol

aris

Man

agem

entC

onso

le

•Se

lect

at l

east

thre

e d

iffe

rent

slic

es, p

refe

rabl

y on

dif

fere

nt d

isks

.•

The

def

ault

siz

e of

eac

h re

plic

a is

819

2 bl

ocks

or

4 M

byte

s.

Page 199: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 9

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gR

AID

-0

RA

ID-0

vol

umes

let y

ou e

xpan

d d

isk

stor

age

capa

city

effic

ient

ly. T

hese

vol

umes

do

not p

rovi

de

dat

a re

dun

dan

cy,

but c

an b

e us

ed to

exp

and

dis

k st

orag

e ca

paci

ty.

RA

ID-0

com

es in

two

form

s, s

trip

es a

nd c

onca

tena

tion

s.

•St

ripi

ng e

nabl

es p

aral

lel d

ata

acce

ss b

ecau

se m

ulti

ple

cont

rolle

rs c

an a

cces

s th

e d

ata

at th

e sa

me

tim

e. A

stri

pe d

istr

ibut

es d

ata

equa

lly a

cros

s al

l slic

es in

the

stri

pe.

•A

conc

aten

ated

volu

me

wri

tesd

ata

toth

efi

rsta

vaila

ble

slic

e.W

hen

the

firs

tslic

eis

full,

the

volu

me

wri

tes

dat

ato

the

next

ava

ilabl

e sl

ice.

Page 200: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 10

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

RA

ID-0

Vol

ume

Usi

ngth

eC

omm

and

Line

•St

ate

dat

abas

e re

plic

as m

ust e

xist

bef

ore

you

can

conf

igur

e an

y m

etad

evic

es.

•Fo

r ex

ampl

e, to

cre

ate

two

repl

icas

on

each

of t

wo

slic

es, u

se th

e co

mm

and

:#metadb -a -f -c 2 c3t2d0s7 c3t3d0s7

•In

this

exa

mpl

e, a

ssum

e th

at th

e/export/home

(/dev/dsk/c0t0d0s7

)file

syst

emis

alm

osta

tcap

acit

y.A

new

slic

e fr

om a

noth

er d

isk

will

be

conc

aten

ated

toit

, mak

ing

a R

AID

-0 c

onca

tena

ted

vol

ume.

Page 201: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 11

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

RA

ID-0

Vol

ume

Usi

ngth

eC

omm

and

Line

•U

seth

emetainit

com

man

dto

crea

tem

etad

evic

esan

das

soci

ate

slic

es w

ith

them

. For

exa

mpl

e:#metainit -f d0 2 1 c0t0d0s7 1 c3t2d0s0

d0: Concat/Stripe is setup

•T

he-f

opti

on is

req

uire

d if

one

of t

hese

slic

es is

curr

entl

y m

ount

ed.

•T

hem

etad

evic

ena

me

used

for

this

conc

aten

atio

nis

d0

.•

Ina

conc

aten

atio

n,th

enu

mbe

rof

stri

pes

iseq

ualt

oth

e nu

mbe

r of

slic

es b

eing

ad

ded

, in

this

cas

e 2.

•T

he n

umbe

r of

slic

es in

eac

h st

ripe

is o

ne, s

o th

enu

mbe

r 1

appe

ars

befo

re e

ach

slic

e.

Page 202: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 12

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

RA

ID-0

Vol

ume

Usi

ngth

eC

omm

and

Line

•T

he n

ew m

etad

evic

e (d0

) has

bee

n cr

eate

d, b

ut is

not

bein

gus

edye

t.It

need

sto

bere

mou

nted

usin

gth

ene

wm

etad

evic

e d

evic

e fi

les.

•L

ocat

e th

e en

try

in th

e/etc/vfstab

file

that

mou

nts

the

file

sys

tem

at b

oot t

ime:

/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -

Cha

nge

the

dev

ice

nam

esto

mat

chth

em

etad

evic

ena

mes

:/dev/md/dsk/d0 /dev/md/rdsk/d0 /export/home ufs 2 yes -

Page 203: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 13

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

RA

ID-0

Vol

ume

Usi

ngth

eC

omm

and

Line

•U

n-m

ount

and

re-m

ount

the

file

syst

emus

ing

the

new

dev

ice

file

s:#umount /export/home

#mount /export/home

#df -h /export/home

Filesystem

size

used

availcapacity Mounted on

/dev/md/dsk/d0 470M

395M

28M

94% /export/home

•T

heex

isti

ngfi

lesy

stem

need

sto

begr

own

into

the

new

spac

e.•

Thi

sis

don

ew

ith

thegrowfs

com

man

d.U

seth

eop

tion

-M

to s

peci

fy a

mou

nt p

oint

:#growfs -M /export/home /dev/md/rdsk/d0

...

Page 204: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 14

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

RA

ID-0

Vol

ume

Usi

ngS

olar

isM

anag

emen

tCon

sole

(SM

C)

•W

hen

SMC

per

form

s th

emetainit

com

man

d, i

td

oes

notu

seth

e-f

opti

onto

forc

eth

ead

dit

ion

ofa

mou

nted

file

sys

tem

to a

met

adev

ice.

•Yo

u m

ust u

nmou

nt a

ny m

ount

ed fi

le s

yste

m th

atyo

uw

antt

oin

clud

ein

the

met

adev

ice

confi

gura

tion

usin

g SM

C.

Page 205: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 15

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

RA

ID-0

Vol

ume

Usi

ngS

olar

isM

anag

emen

tCon

sole

(SM

C)

•To

crea

tea

conc

aten

ated

volu

me,

sele

ctth

eV

olum

esto

ol a

nd C

reat

e V

olum

e fr

om th

e A

ctio

n m

enu.

AG

UI g

uid

es y

ou th

roug

h So

lari

s V

olum

e M

anag

erta

sks.

•Yo

u m

ust m

anua

lly c

hang

e th

e/etc/vfstab

file

and

usegrowfs

to g

row

the fil

e sy

stem

aft

er y

oucr

eate

the

met

adev

ice.

Page 206: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 16

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gR

AID

-1

RA

ID-1

volu

mes

are

also

know

nas

mir

rors

and

prov

ide

dat

are

dun

dan

cy. A

RA

ID-1

vol

ume

mai

ntai

ns id

enti

cal c

opie

s of

the

dat

a in

the

RA

ID-0

vol

umes

from

whi

ch it

is m

ade.

•U

sing

mul

tipl

e su

bmir

rors

•A

mir

ror

is m

ade

of tw

o or

mor

e R

AID

-0 v

olum

es.

•T

he m

irro

red

RA

ID-0

vol

umes

are

cal

led

subm

irro

rs.

•A

mir

rorc

onsi

stin

gof

two

subm

irro

rsis

know

nas

atw

o-w

ay m

irro

r.•

You

can

atta

ch o

r d

etac

h a

subm

irro

r fr

om a

mir

ror

at a

ny ti

me.

Page 207: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 17

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gR

AID

-1

•M

irro

r op

tion

sM

irro

rp

erfo

rman

ceca

nbe

mod

ifie

dby

usi

ngth

efo

llow

ing

opti

ons:

•M

irro

r re

ad p

olic

y•

Rou

nd r

obin

•G

eom

etri

c•

Firs

t•

Mir

ror

wri

te p

olic

y•

Para

llel

•Se

rial

Page 208: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 18

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

The

proc

edur

efo

rbu

ildin

ga

mir

ror

ofth

ero

ot(/

)file

syst

emca

nbe

acco

mpl

ishe

dus

ing

the

com

man

dlin

eex

clus

ivel

y,bu

tit

is n

ot p

ossi

ble

to u

se th

e So

lari

s M

anag

emen

t Con

sole

(SM

C) e

xclu

sive

ly.

Thi

sse

ctio

nd

escr

ibes

how

tocr

eate

aR

AID

-1vo

lum

efo

rth

ero

ot (/

) file

sys

tem

, whi

ch c

anno

t be

unm

ount

ed.

Page 209: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 19

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

Cre

atin

g a

mir

ror

of th

e ro

ot (/

) file

sys

tem

req

uire

s th

efo

llow

ing

gene

ral s

teps

:

1.C

reat

ea

RA

ID-0

volu

me

for

the

file

syst

emyo

uw

ant

tom

irro

r.2.

Cre

ate

ase

cond

RA

ID-0

volu

me

toco

ntai

nth

ese

cond

subm

irro

rof

the

RA

ID-1

volu

me.

3.C

reat

ea

one-

way

mir

ror

usi

ngth

eR

AID

-0vo

lum

eth

atco

ntai

nsth

efi

lesy

stem

tobe

mir

rore

d.

4.U

seth

emetaroot

com

man

dto

up

dat

eth

esy

stem

’sco

nfig

ura

tion

,bec

ause

this

isa

root

(/)

mir

ror.

5.R

eboo

tyo

ur

syst

em,b

ecau

seth

isis

aro

ot(/

)m

irro

r.

Page 210: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 20

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

6.A

ttac

hth

ese

cond

subm

irro

rto

the

file

syst

emm

irro

r.7.

Rec

ord

the

alte

rnat

ebo

otp

ath

that

isu

sed

inth

eev

ent

ofa

failu

reof

the

pri

mar

ysu

bmir

ror,

beca

use

this

isa

mir

ror

ofth

ero

ot(/

)fi

lesy

stem

.

Page 211: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 21

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

•C

reat

ing

the

RA

ID-0

vol

umes

The

firs

tst

epw

hen

build

ing

am

irro

rof

the

root

(/)

file

syst

emis

tocr

eate

RA

ID-0

volu

mes

,whi

chyo

ula

ter

com

bine

tofo

rmth

em

irro

r.E

ach

RA

ID-0

volu

me

beco

mes

asu

bmir

ror

toth

em

irro

r.•

Use

themetainit

com

man

d to

cre

ate

a R

AID

-0vo

lum

e to

be

used

as

the

prim

ary

subm

irro

r of

the

root

(/) fi

le s

yste

m:

# /usr/sbin/metainit -f d11 1 1 c0t0d0s0

d11: Concat/Stripe is setup

Thi

s co

mm

and

forc

es th

e cr

eati

on o

f the

d11

volu

me.

Page 212: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 22

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

•To

cre

ate

a R

AID

-0 v

olum

e to

be

used

as

the

seco

ndar

ysu

bmir

ror

ofth

ero

otfi

lesy

stem

,use

the

metainit

com

man

d a

gain

:#metainit d12 1 1 c3t3d0s1

d12: Concat/Stripe is setup

•C

reat

ing

the

RA

ID-1

vol

ume

The

follo

win

gmetainit

exam

ple

crea

tes

am

irro

red

volu

me

nam

edd

10.

Thi

sco

mm

and

atta

ches

the

volu

med11

asa

subm

irro

rof

the

mir

ror

nam

edd10

.#/usr/sbin/metainit d10 -m d11

d10: Mirror is setup

Page 213: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 23

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

•E

xecu

ting

themetaroot

com

man

dW

hen

crea

ting

mir

rors

ofm

ount

edfi

lesy

stem

s,yo

um

ust

up

dat

eth

e/etc/vfstab

file

toch

ange

the

mou

ntp

oint

from

asl

ice

toa

volu

me.

The

/etc/system

file

mu

stch

ange

toin

clu

de

entr

ies

rela

ted

toSV

Md

rive

rs.

Whe

nm

irro

ring

the

root

(/)

file

syst

em,u

seth

emetaroot

com

man

dto

mod

ify

the/etc/vfstab

and

/etc/system

file

s,as

follo

ws:

#metaroot d10

#grep md /etc/vfstab

/dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no -

#tail /etc/system

rootdev:/pseudo/md@0:0,10,blk

Page 214: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 24

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

•R

eboo

ting

the

syst

emYo

um

ust

rebo

otth

esy

stem

befo

reat

tach

ing

the

seco

ndar

ysu

bmir

ror.

#init 6

•A

ttac

hing

the

seco

ndar

y su

bmir

ror

Att

ach

the

seco

ndar

ysu

bmir

ror

byu

sing

the

metattach

com

man

d:

#metattach d10 d12

d10: submirror d12 is attached

Page 215: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 25

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

The

metastat

com

man

d s

how

s th

e m

irro

r sy

nchr

oniz

atio

nta

king

pla

ce.

#metastat d10

d10: Mirror

Submirror 0: d11

State: Okay

Submirror 1: d12

State: Resyncing

Resync in progress: 83 % done

Pass: 1

Read option: roundrobin (default)

Write option: parallel (default)

Size: 307440 blocks (150 MB)

Page 216: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 26

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Bui

ldin

ga

Mirr

orof

the

Roo

t(/)

File

Sys

tem

•U

pdat

ing

theboot-device

PR

OM

var

iabl

eU

seth

eO

pen

Boo

tnvalias

com

man

dto

def

ine

abackup_root

dev

ice

alia

sfo

rth

ese

cond

ary

root

mir

ror.

For

exam

ple

:oknvalias backup_root /pci@1f,0/pci@1/pci@1/SUNW,isptwo@4/

sd@3,0:b

Red

efin

eth

eboot-device

vari

able

tore

fere

nce

both

the

pri

mar

yan

dse

cond

ary

subm

irro

rs,i

nth

eor

der

inw

hich

you

wan

tto

acce

ssth

em.

oksetenv boot-device disk backup_root net

boot-device= disk backup_root net

Page 217: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 27

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Unm

irror

ing

the

Roo

t(/)

File

Sys

tem

•R

un th

emetastat

com

man

d o

n th

e m

irro

r to

ver

ify

that

sub

mir

ror

0 is

in th

e O

kay

stat

e.#metastat d10

d10: Mirror

Submirror 0: d11

State: Okay

Submirror 1: d12

State: Okay

...

•R

un th

emetadetach

com

man

d o

n th

e m

irro

r to

mak

ea

one-

way

mir

ror.

#metadetach d10 d12

d10: submirror d12 is detached

Page 218: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 28

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Unm

irror

ing

the

Roo

t(/)

File

Sys

tem

•B

ecau

se th

is is

a r

oot (

/) f

ile s

yste

m m

irro

r, r

un th

emetaroot

com

man

d to

upd

ate

the/etc/vfstab

and

/etc/system

file

s.# metaroot /dev/dsk/c0t0d0s0

•R

eboo

t the

sys

tem

.#init 6

•R

un th

emetaclear

com

man

d to

cle

ar th

e m

irro

r an

dsu

bmir

rors

.#metaclear -r d10

d10: Mirror is cleared

d11: Concat/Stripe is cleared

#metaclear d12

d12: Concat/Stripe is cleared

Page 219: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 9,

slid

e 29

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Unm

irror

ing

the

Roo

t(/)

File

Sys

tem

If y

ou c

hang

ed y

ourboot-device

var

iabl

e to

an

alte

rnat

ebo

ot p

ath,

ret

urn

it to

its

orig

inal

set

ting

.

Page 220: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

10

Con

figur

ing

Rol

e-B

ased

Acc

ess

Con

trol

(RB

AC

)

Page 221: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 2

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

RB

AC

fund

amen

tals

•D

escr

ibe

com

pone

nt in

tera

ctio

n w

ithi

n R

BA

C•

Man

age

RB

AC

by

usin

g th

e So

lari

s M

anag

emen

tC

onso

le•

Man

age

RB

AC

by

usin

g th

e co

mm

and

line

Page 222: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 3

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RB

AC

Fun

dam

enta

ls

In c

onve

ntio

nal U

NIX

® s

yste

ms,

the

root

use

r (a

lso

refe

rred

to a

s th

e su

peru

ser)

has

the

abili

ty to

per

form

any

task

.

In s

yste

ms

impl

emen

ting

RB

AC

, ind

ivid

ual u

sers

can

be

assi

gned

to r

oles

, whe

re r

oles

are

ass

ocia

ted

wit

h ri

ghts

profi

les.

Rig

hts

profi

les

list t

he r

ight

s to

run

spe

cifi

c co

mm

and

s an

dap

plic

atio

ns w

ith

esca

late

d p

rivi

lege

s.

Rol

es c

an a

lso

be a

ssig

ned

aut

hori

zati

ons.

An

auth

oriz

atio

ngr

ants

acc

ess

to r

estr

icte

d fu

ncti

ons

in R

BA

C c

ompl

iant

appl

icat

ions

.

Page 223: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 4

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Key

RB

AC

File

s

RB

AC

aut

hori

zati

ons,

rol

es, r

ight

s pr

ofile

s, a

nd p

rivi

lege

dco

mm

and

s ar

e d

efine

d in

four

file

s:

•T

he/etc/user_attr

file

•T

he /etc/security/prof_attr

file

•T

he /etc/security/policy.conf

file

•T

he/etc/security/exec_attr

file

Page 224: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 5

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

user_attr

File

The

/etc/user_attr

file

list

s th

e ri

ghts

profi

les

and

auth

oriz

atio

ns a

ssoc

iate

d w

ith

user

s an

d r

oles

.

Whe

n yo

u cr

eate

a n

ew u

ser

acco

unt w

ith

no r

ight

s pr

ofile

s,au

thor

izat

ions

, or

role

s, n

othi

ng is

ad

ded

to th

e fi

le.

Cha

nges

to th

is fi

le w

ill b

e ill

ustr

ated

as

rela

ted

RB

AC

feat

ures

are

des

crib

ed in

this

mod

ule.

Page 225: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 6

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Rol

es

•A

rol

e is

a s

peci

al id

enti

ty, s

imila

r to

a u

ser

acco

unt,

used

to r

un p

rivi

lege

d a

pplic

atio

ns o

r co

mm

and

s.•

You

ass

ign

user

s to

rol

es s

o th

ose

user

s ca

n ru

n th

eco

mm

and

s as

soci

ated

wit

h th

ose

role

s.•

No

pred

efin

edro

les

are

ship

ped

wit

hth

eSo

lari

s10

OS.

•Y

ou a

ssig

n ri

ghts

pro

file

s to

a r

ole

whe

n yo

u d

efin

e a

role

.•

The

roles

com

man

d li

sts

the

role

s a

user

has

bee

nas

sign

ed:

#roles root

No roles

Page 226: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 7

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Use

rs

•A

rig

hts

prof

ile is

a c

olle

ctio

n of

rig

hts

that

can

be

assi

gned

to a

use

r.•

Ari

ghti

sa

com

man

dor

scri

ptw

hich

runs

wit

hsp

ecia

lse

curi

ty a

ttri

bute

s.•

Man

yex

ampl

esof

righ

tspr

ofile

sar

esh

ippe

dw

ith

the

Sola

ris

10 O

S.

Page 227: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 8

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Use

rs

•T

he /etc/security/prof_attr

file

con

tain

s ri

ghts

prof

ile n

ames

and

des

crip

tion

s.#cat /etc/security/prof_attr

(output omitted)

All:::Execute any command as the user or role:help=RtAll.html

Log Management:::Manage log files:help=RtLogMngmnt.html

...

•E

ach

line

star

ts w

ith

the

righ

ts p

rofi

le n

ame.

•T

he m

idd

le fi

eld

s ar

e no

t use

d, a

nd th

e la

st tw

o fi

eld

sho

ld a

com

men

t and

a p

oint

er to

a h

elp

file

.

Page 228: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 9

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Use

rs

•T

heprofiles

com

man

d li

sts

righ

ts p

rofi

les

assi

gned

to a

use

r.#profiles chris

Basic Solaris User

All

•E

very

acc

ount

has

theAll

rig

hts

prof

ile. I

t allo

ws

any

com

man

d to

be

exec

uted

, but

wit

h sp

ecia

l sec

urit

yat

trib

utes

.•

Oth

erri

ghts

prof

iles

give

nto

alln

ewus

erac

coun

tsar

ed

efin

ed in

the/etc/security/policy.conf

file

.#grep 'PROFS' /etc/security/policy.conf

PROFS_GRANTED=Basic Solaris User

Page 229: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 10

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Use

rs

•R

ight

s pr

ofile

s ca

n be

ass

igne

d to

a u

ser

acco

unt w

ith

theusermod

com

man

d o

r th

e So

lari

s M

anag

emen

tC

onso

le (S

MC

).#usermod -P "Printer Management" chris

#profiles chris

Printer Management

Basic Solaris User

All

•T

hisa

utom

atic

ally

upd

ates

the/etc/user_attr

file

assh

own

by th

e fo

llow

ing:

#grep chris /etc/user_attr

chris::::type=normal;profiles=Printer Management

Page 230: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 11

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

/etc/security/exec_attr

File

The

/etc/security/exec_attrfil

e ho

lds

exec

utio

nat

trib

utes

.

•A

n ex

ecut

ion

attr

ibut

e is

eit

her

a co

mm

and

wit

h no

opti

on, o

r a

scri

pt th

at c

onta

ins

a co

mm

and

, pos

sibl

yw

ith

opti

ons.

•In

this

file

, the

spe

cial

sec

urit

y at

trib

utes

UID

, EU

ID,

GID

, and

EG

ID, s

peci

fy a

ttri

bute

s to

ad

d to

a p

roce

ssw

hen

it r

uns.

•O

nly

the

user

san

dro

les

assi

gned

acce

ssto

apa

rtic

ular

righ

ts p

rofi

le c

an r

un it

s as

soci

ated

com

man

ds

wit

hth

eir

spec

ial s

ecur

ity

attr

ibut

es.

Page 231: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 12

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

/etc/security/exec_attr

File

Com

man

ds

and

spe

cial

sec

urit

y at

trib

utes

for

the

Prin

ter

Man

agem

ent r

ight

s pr

ofile

are

list

ed a

s fo

llow

s:

#grep 'Printer Management' /etc/security/exec_attr

Printer Management:suser:cmd:::/etc/init.d/lp:euid=0;uid=0

Printer Management:suser:cmd:::/usr/bin/cancel:euid=lp;uid=lp

Printer Management:suser:cmd:::/usr/bin/lpset:egid=14

Printer Management:suser:cmd:::/usr/bin/lpstat:euid=0

Printer Management:suser:cmd:::/usr/lib/lp/local/accept:uid=lp

Printer Management:suser:cmd:::/usr/lib/lp/local/

lpadmin:uid=lp;gid=8

Printer Management:suser:cmd:::/usr/lib/lp/lpsched:uid=0

Printer Management:suser:cmd:::/usr/sbin/accept:euid=lp;uid=lp

...

Page 232: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 13

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Rol

es

If a

larg

e nu

mbe

r of

use

r ac

coun

ts r

equi

re th

e sa

me

confi

gura

tion

and

man

agem

ent o

f rig

hts

profi

les,

it c

an b

eea

sier

toas

sign

the

righ

tspr

ofile

sto

aro

lean

dgi

veth

eus

ers

acce

ss to

the

role

.

•C

reat

ing

a ro

leT

heroleadd

com

man

dcr

eate

sa

role

entr

yin

the

/etc/passwd

,/etc/shadow,

and/etc/user_attr

file

s.#roleadd -m -d /export/home/level1 -c "Level One Support" \

-P "Printer Management,Media Backup,Media Restore" level1

64 blocks

The

role

cann

otbe

use

du

ntil

ap

assw

ord

for

itis

set.

Page 233: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 14

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Rol

es

The

cha

nges

to th

e/etc/passwd

,/etc/shadow,

and

/etc/user_attr

file

s ar

e sh

own

as fo

llow

s:

#grep level1 /etc/passwd

level1:x:102:1:Level One Support:/export/home/level1:/bin/pfsh

#grep level1 /etc/shadow

level1:CUs8aQ64vTrZ.:12713::::::

#grep level1 /etc/user_attr

level1::::type=role;profiles=Printer Management,Media

Backup,Media

Restore

Page 234: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 15

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Rol

es

•M

odif

ying

a r

ole

Tom

odif

yth

elo

gin

info

rmat

ion

ofa

role

ona

syst

em,u

seth

erolemod

com

man

d.

Thi

sex

amp

lem

odif

ies

the

role

’sri

ghts

pro

file

s.#rolemod -P profile1,profile2 -s /usr/bin/pfksh level1

Page 235: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 16

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

ight

sP

rofil

esto

Rol

es

•Pu

rpos

e of

the

prof

ile s

hells

Ap

rofi

lesh

ell

isa

spec

ial

typ

eof

shel

lth

aten

able

sac

cess

toth

ep

rivi

lege

dri

ghts

that

are

assi

gned

toth

eri

ghts

pro

file

.T

hest

and

ard

UN

IXsh

ells

cann

otbe

use

d,a

sth

eyar

eno

taw

are

ofth

eR

BA

Cfi

les,

and

do

not

cons

ult

them

.T

hep

rofi

lesh

ells

arepfsh

,pfcsh

,and

pfksh

.

Page 236: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 17

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngR

oles

toU

sers

The

useradd

com

man

d o

r th

e So

lari

s M

anag

emen

t Con

sole

(SM

C) c

an b

e us

ed to

ass

ign

user

s to

rol

es.

The

exa

mpl

e sh

ows

theuseradd

com

man

d b

eing

use

d w

ith

the-R

opt

ion

to a

ssig

n ro

les:

#useradd -m -d /export/home/paul -R level1 paul

64 blocks

#

Thi

s ex

ampl

e as

soci

ates

thelevel1

rol

e w

ith

the

userchris

:

#usermod -R level1 chris

#

Page 237: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 18

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngR

oles

As

it is

not

pos

sibl

e to

dir

ectl

y lo

g in

to a

rol

e ac

coun

t, lo

g in

as a

reg

ular

use

r fir

st.

The

roles

com

man

d s

how

s th

e ro

les

avai

labl

e to

you

rac

coun

t. $id

uid=103(paul) gid=1(other)

$roles

level1

Swit

ch th

e us

er to

the

role

acc

ount

wit

h th

esu

com

man

d.

$su level1

Password:

$id

uid=102(level1) gid=1(other)

Page 238: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 19

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Aut

horiz

atio

ns

An

auth

oriz

atio

n gr

ants

acc

ess

to r

estr

icte

d fu

ncti

ons

inR

BA

C-c

ompl

iant

app

licat

ions

.

Som

e ap

plic

atio

ns a

nd c

omm

and

s in

the

Sola

ris

10 O

S ar

ew

ritt

en to

che

ck th

e au

thor

izat

ions

of t

he u

ser

calli

ng th

em.

The

pre

defi

ned

aut

hori

zati

ons

are

liste

d in

the

/etc/security/auth_attr

file

.

#cat /etc/security/auth_attr

(output omitted)

solaris.jobs.:::Job Scheduler::help=JobHeader.html

solaris.jobs.admin:::Manage All Jobs::help=AuthJobsAdmin.html

solaris.jobs.grant:::Delegate Cron & At

Administration::help=JobsGrant.html

...

Page 239: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 20

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Def

ault

Aut

horiz

atio

ns

All

user

s ha

ve th

eBasic Solaris User

profi

le b

y d

efau

lt.

#profiles chris

Printer Management

Basic Solaris User

All

The

Basic Solaris User

profil

e gr

ants

use

rs a

cces

s to

all

liste

d a

utho

riza

tion

s.

The

All

profil

e gr

ants

unr

estr

icte

d a

cces

s to

all

Sola

ris

OS

com

man

ds

that

hav

e no

t bee

n re

stri

cted

by

a d

efini

tion

in a

prev

ious

ly li

sted

aut

hori

zati

on.

Page 240: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 21

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngA

utho

rizat

ions

Aut

hori

zati

ons

can

be a

ssig

ned

to u

ser

acco

unts

.

Aut

hori

zati

ons

can

also

be

assi

gned

to r

oles

or

embe

dd

ed in

a ri

ghts

profil

e, w

hich

can

be

assi

gned

to a

use

r or

rol

e.

Aut

hori

zati

ons

may

be

assi

gned

from

the

com

man

d li

ne o

rw

ith

SMC

.

Thi

sex

ampl

esh

ows

theuseradd

com

man

dus

edw

ith

the-A

opti

on to

ad

d a

n au

thor

izat

ion

to a

use

r:

#usermod -A solaris.jobs.admin chris

Page 241: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 22

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngA

utho

rizat

ions

The

usermod

com

man

d a

utom

atic

ally

upd

ates

the

/etc/user_attr

file

wit

h th

is n

ew in

form

atio

n.

#grep chris /etc/user_attr

chris::::type=normal;auths=solaris.jobs.admin;profiles=Printer

Management

Page 242: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 23

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngA

utho

rizat

ions

toR

oles

If a

larg

e nu

mbe

r of

use

r ac

coun

ts r

equi

re th

e sa

me

confi

gura

tion

and

man

agem

ent o

f aut

hori

zati

ons,

it c

an b

eea

sier

toas

sign

the

auth

oriz

atio

nsto

aro

lean

dgi

veth

eus

ers

acce

ss to

the

role

.

You

can

assi

gn a

utho

riza

tion

s to

rol

es w

ith

theroleadd

com

man

d o

r w

ith

SMC

.

Page 243: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 24

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngA

utho

rizat

ions

toR

oles

Thi

sex

ampl

eus

esth

eroleadd-P

and-A

opti

ons

tocr

eate

aro

le c

alle

dlevel2

that

is a

ssig

ned

the

auth

oriz

atio

nsolaris.admin.usermgr.*

.

#roleadd -m -d /export/home/level2 -P "Mail Management" \

-A "solaris.admin.usermgr.*" level2

64 blocks

#

Page 244: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 25

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

igni

ngA

utho

rizat

ions

toR

ight

sP

rofil

es

A r

ight

s pr

ofile

usu

ally

incl

udes

a li

st o

f com

man

ds

and

spec

ial s

ecur

ity

attr

ibut

es, t

he r

ight

s, a

s d

efine

d in

the/etc/

security/exec_attr

file

.

It is

als

o po

ssib

le to

incl

ude

pred

efine

d a

utho

riza

tion

s fr

omth

e/etc/security/auth_attr

file

in th

e ri

ghts

profi

le b

yad

din

gth

eau

thor

izat

ions

toth

e/etc/security/prof_attr

file.

Page 245: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 26

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RB

AC

Config

urat

ion

File

Sum

mar

y

The

figu

re o

n th

is s

lide

show

s ho

w th

e fo

ur fi

les

used

by

RB

AC

are

inte

rrel

ated

.

���������

Use

rs

Rol

es

��������

Pro

files

��������

Priv

ilege

s

���������

Aut

horiz

atio

n

Page 246: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 27

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

RB

AC

Config

urat

ion

File

Sum

mar

yF

rom

the ��������������������

data

base

:

�� ��������������������

���

�������� �����������

Fro

m the �������������

data

base

:

������������������ ������� ���������

��������� � �������

���������!������

���������"

#������������������ ������� ����������������� ����������

Fro

m the ����������������������

data

base

:

!������

���������������

���������

�������

���� ����� ��$�!���"������� ������� ����������������������� ����

���������������������� ������������������� ���

Fro

m the ���������������%������

data

base

:

!������

���������������������������&�������������� �

!������

����������������������������&� �'������(

!������

��������������������������������� �������(

!������

��������������������������&��� ����������(

!������

�������������������������� �&� �� ����������(

Page 247: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 28

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gR

BA

CU

sing

the

Sol

aris

Man

agem

entC

onso

le

The

Sola

ris

Man

agem

entC

onso

lein

the

Sola

ris

10O

Sen

able

syo

u to

config

ure

RB

AC

feat

ures

usi

ng a

GU

I con

sole

.

Page 248: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 29

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gR

BA

CU

sing

the

Sol

aris

Man

agem

entC

onso

le

To s

et u

p pr

ivile

ged

acc

ess

usin

g SM

C, c

ompl

ete

the

follo

win

g st

eps:

1.B

uild

the

use

rac

cou

nts

that

will

beas

sign

edth

eR

BA

Cri

ghts

pro

file

san

dro

les.

2.B

uild

the

righ

tsp

rofi

les

need

edto

sup

por

tth

ep

rivi

lege

dac

cess

requ

irem

ents

.3.

Bu

ildth

ero

leth

atw

illp

rovi

de

acce

ssto

the

righ

tsp

rofi

les

for

des

igna

ted

use

rs.

Page 249: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 10

, slid

e 30

of 3

0C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

agin

gR

BA

CU

sing

the

Sol

aris

Man

agem

entC

onso

le

To a

cces

s R

BA

C fe

atur

es in

SM

C, c

ompl

ete

the

follo

win

gst

eps: 1.

Sele

ctM

anag

emen

tTo

ols.

2.C

lick

Thi

sC

omp

ute

r.3.

Clic

kSy

stem

Con

figu

rati

on.

4.D

oubl

e-cl

ick

the

Use

rsic

on.

Page 250: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

11

Con

figur

ing

Sys

tem

Mes

sagi

ng

Page 251: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 2

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

the

fund

amen

tals

of t

hesyslog

func

tion

•C

onfi

gure

the/etc/syslog.conf

file

•C

onfi

guresyslog

mes

sagi

ng•

Use

the

Sola

ris

Man

agem

ent C

onso

le lo

g vi

ewer

Page 252: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 3

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

syslog

Con

cept

The

syslog

func

tion

sen

ds

mes

sage

s ge

nera

ted

by

the

kernel

and

sys

tem

uti

litie

s an

d a

pplic

atio

ns to

thesyslogd

dae

mon

. Wit

h th

esyslog

func

tion

you

can

con

trol

mes

sage

logg

ing,

dep

end

ing

on th

e co

nfigu

rati

on o

f the

/etc/

syslog.conf

file

. The

dae

mon

can

:

•W

rite

mes

sage

s to

a s

yste

m lo

g•

Forw

ard

mes

sage

s to

a c

entr

aliz

ed lo

g ho

st•

Forw

ard

mes

sage

s to

a li

st o

f use

rs•

Wri

te m

essa

ges

to th

e sy

stem

con

sole

Page 253: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 4

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Th

e/etc/syslog.conf

File

A c

onfig

urat

ion

entr

y in

the/etc/syslog.conf

file

con

sist

sof

two

tab-

sepa

rate

d fi

eld

s: s

elec

tor

and

acti

on.

The

sel

ecto

r fie

ld h

as tw

o co

mpo

nent

s, afacility

and

alevel

wri

tten

asfacility.level

.

The

act

ion fie

ld d

eter

min

es w

here

to s

end

the

mes

sage

.

Page 254: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 5

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

syslogd

Dae

mon

and

them4

Mac

roP

roce

ssor

The

syslogd

dae

mon

,the

m4

mac

ropr

oces

sor,

and

the/etc/

syslog.conf

file

inte

ract

in c

once

ptua

l pha

ses

to d

eter

min

eth

e co

rrec

t mes

sage

rou

ting

.

The

se c

once

ptua

l pha

ses

are

des

crib

ed a

s:

1.T

hesyslogd

dae

mon

runs

them4

mac

rop

roce

ssor

.2.

The

m4

pro

cess

orre

ads

the/etc/syslog.conf

file

,p

roce

sses

anym4

stat

emen

tsin

the

inp

ut,

and

pas

ses

the

outp

ut

toth

esyslogd

dae

mon

.

Page 255: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 6

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

syslogd

Dae

mon

and

them4

Mac

roP

roce

ssor

3.T

hesyslogd

dae

mon

use

sth

eco

nfig

ura

tion

info

rmat

ion

outp

ut

byth

em4

pro

cess

orto

rou

tem

essa

ges

toth

eap

pro

pri

ate

pla

ces.

Page 256: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 7

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

e/etc/syslog.conf

File

The

targ

et lo

cati

ons

for

thesyslog

mes

sage

file

s ar

e d

efine

dw

ithi

n th

e/etc/syslog.conf

file

. You

mus

t res

tart

the

syslogd

dae

mon

whe

neve

ryou

mak

ean

ych

ange

sto

thisfi

le.

The

follo

win

g ex

cerp

t fro

m th

e/etc/syslog.conf

file

show

s ho

w v

ario

us e

vent

s ar

e lo

gged

by

the

syst

em.

*.err;kern.notice;auth.notice /dev/sysmsg

*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages

*.alert;kern.err;daemon.err operator

*.alert root

*.emerg *

Page 257: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 8

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

e/etc/syslog.conf

File

In L

ine

1, e

very

err

or e

vent

(*.err

) and

allkernel

and

auth

oriz

atio

nfacility

even

tsoflevelnotice

,whi

char

eno

ter

ror

cond

itio

nsbu

tmig

htre

quir

esp

ecia

lhan

dlin

g,w

illw

rite

am

essa

ge to

the/dev/sysmsg

file

.

InL

ine

2,ev

ery

erro

reve

nt(*.err

),al

lkernelfacility

even

tsofleveldebug

,all

dae

mon

facility

even

tsoflevelnotice

,an

d a

ll cr

itic

allevel

mai

l eve

nts

will

rec

ord

a m

essa

ge in

the/

var/adm/messages

file

. The

refo

re, e

rror

s ar

e lo

gged

to b

oth

files

.

Lin

e 3

ind

icat

es th

at a

llalertlevel

eve

nts,

incl

udin

g th

ekernel

erro

rlevel

and

dae

mon

erro

rlevel

even

ts,a

rese

ntto

the

useroperator

if th

is u

ser

is lo

gged

in.

Page 258: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 9

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

e/etc/syslog.conf

File

Lin

e4

ind

icat

esth

atal

lalertlevel

even

tsar

ese

ntto

theroot

user

if th

eroot

use

r is

logg

ed in

.

Lin

e 5

ind

icat

es th

at a

ny e

vent

that

the

syst

em in

terp

rets

as

anem

erge

ncy

will

belo

gged

toth

ete

rmin

alof

ever

ylo

gged

-in

user

.

Page 259: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 10

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sto

ppin

gan

dS

tart

ing

thesyslogd

Dae

mon

The

/lib/svc/method/system-log

file

sta

rts

thesyslogd

proc

ess

dur

ing

each

sys

tem

boo

t.

You

can

man

ually

stop

orst

artt

hesyslogd

dae

mon

,or

send

it arefresh

com

man

d, w

hich

cau

ses

the

dae

mon

to r

erea

dth

e/etc/syslog.conf

file

.

#svcadm disable svc:/system/system-log:default

To start the syslogd daemon, perform the command:

#svcadm enable svc:/system/system-log:default

To send a refresh to the syslogd daemon, perform the command:

#svcadm refresh svc:/system/system-log:default

Page 260: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 11

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gsyslog

Mes

sagi

ng

The

inetd

dae

mon

is th

e ne

twor

k lis

tene

r pr

oces

s fo

r m

any

netw

ork

serv

ices

. The

inetd

dae

mon

list

ens

for

serv

ice

requ

ests

onth

eT

CP

and

Use

rDat

agra

mPr

otoc

ol(U

DP)

port

sas

soci

ated

wit

h ea

ch o

f the

ser

vice

s lis

ted

in th

einetd

confi

gura

tion

file

.

The

inetd

dae

mon

is c

ontr

olle

d th

roug

h th

e us

e of

the

inetadm

com

man

d.

Page 261: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 12

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Mon

itorin

gasyslog

File

inR

ealT

ime

The

tail-f

com

man

d h

old

s th

e fil

e op

en s

o th

at y

ou c

anvi

ew m

essa

ges

bein

g w

ritt

en to

the fil

e by

thesyslogd

dae

mon

, for

exa

mpl

e:

# tail -f /var/adm/messages

Jun 14 13:15:39 host1 inetd[2359]:[ID 317013 daemon.notice] telnet[2361]

from 192.9.200.1 45800

1

7

25

63

4

8

Page 262: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 13

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

eS

olar

isM

anag

emen

tCon

sole

Log

Vie

wer

You

can

use

the

Sola

ris

Man

agem

ent C

onso

le L

og V

iew

erap

plic

atio

n to

vie

wsyslog

mes

sage

file

s. Y

ou c

an a

lso

use

this

app

licat

ion

to v

iew

and

cap

ture

info

rmat

ion

from

the

Man

agem

ent T

ool l

ogs.

To

open

the

view

er, p

erfo

rm th

efo

llow

ing

step

s:

1.U

seth

esmc

com

man

dto

open

the

Sola

ris

Man

agem

ent

Con

sole

:#

smc

&

The

Sola

ris

Man

agem

ent

Con

sole

app

licat

ion

lau

nche

s.

Page 263: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 11

, slid

e 14

of 1

4C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

eS

olar

isM

anag

emen

tCon

sole

Log

Vie

wer

2.Se

lect

Thi

sC

omp

ute

r(hostname

).3.

Sele

ctSy

stem

Stat

us.

4.Se

lect

Log

Vie

wer

.

The

init

ial L

og V

iew

er d

ispl

ay li

sts

Man

agem

ent T

ools

log

entr

ies

from

the/var/sadm/wbem/log

dir

ecto

ry.

Page 264: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

12

Usi

ng N

ame

Ser

vice

s

Page 265: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 2

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

the

nam

e se

rvic

e co

ncep

t•

Des

crib

e th

e na

me

serv

ice

swit

ch fi

le/etc/nsswitch.conf

•D

escr

ibe

the

nam

e se

rvic

e ca

che

dae

mon

(nscd

)•

Get

nam

e se

rvic

e in

form

atio

n

Page 266: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 3

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceC

once

pt

Nam

ese

rvic

esce

ntra

lize

the

shar

edin

form

atio

nin

ane

twor

k.

A s

ingl

e sy

stem

, the

nam

e se

rver

, mai

ntai

ns th

e in

form

atio

npr

evio

usly

mai

ntai

ned

on

each

ind

ivid

ual h

ost.

The

nam

e se

rver

s pr

ovid

e in

form

atio

n, s

uch

as h

ost n

ames

,In

tern

etPr

otoc

ol(I

P)ad

dre

sses

,use

rna

mes

,pas

swor

ds,

and

auto

mou

nt m

aps.

Oth

er h

osts

in th

e na

me

serv

ice

dom

ain

(cal

led

clie

nts)

,re

ques

t the

info

rmat

ion

from

the

nam

e se

rver

.

Thi

s na

me

serv

er s

yste

m r

espo

nds

to c

lient

s, a

nd tr

ansl

ates

,or

reso

lves

thei

rre

ques

tsfr

omit

sm

emor

y-ba

sed

(cac

hed

)or

dis

k-ba

sed

dat

abas

es.

Page 267: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 4

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceC

once

pt

����������������

���������

Clie

ntD

atab

ase

Nam

eS

erve

r

Loca

lF

ile

12

3

54

Page 268: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 5

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceC

once

pt

The

nam

e se

rvic

e co

ncep

t pro

vid

es th

e fo

llow

ing

benefi

ts:

•A

sin

gle

poin

t of a

dm

inis

trat

ion

for

nam

e se

rvic

e d

ata

•C

onsi

sten

t nam

e se

rvic

e in

form

atio

n fo

r sy

stem

sw

ithi

n th

e d

omai

n•

All

clie

nts

have

acc

ess

to c

hang

ed d

ata

•A

ssur

ance

that

clie

nts

do

not m

iss

upd

ates

•Se

cond

ary

serv

ers

prev

ent a

sin

gle

poin

t-of

-fai

lure

Page 269: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 6

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dom

ain

Nam

eS

yste

m(D

NS

)

•D

omai

n N

ame

Syst

em (D

NS)

is a

n In

tern

et-w

ide

nam

ing

syst

em fo

r re

solv

ing

host

nam

es to

IPad

dre

sses

and

IP a

dd

ress

es to

hos

t nam

es.

•D

NS

supp

orts

nam

e re

solu

tion

for

both

loca

l and

rem

ote

host

s,an

dus

esth

eco

ncep

tofd

omai

nsto

allo

who

sts

wit

hth

esa

me

nam

eto

coex

isto

nth

eIn

tern

et,s

olo

ng a

s th

ey a

re in

dif

fere

nt d

omai

ns.

•Fo

r ex

ampl

e:www.sun.com

andwww.microsoft.com

Page 270: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 7

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dom

ain

Nam

eS

yste

m(D

NS

)

•T

he c

olle

ctio

n of

net

wor

ked

sys

tem

s th

at u

se D

NS

isre

ferr

ed to

as

the

DN

S na

mes

pace

.•

The

DN

S na

mes

pace

is d

ivid

ed in

to a

hie

rarc

hy o

fd

omai

ns.

•E

ach

dom

ain

is u

sual

ly s

uppo

rted

by

two

or m

ore

nam

e se

rver

s, a

mas

ter

nam

e se

rver

, and

one

or

mor

esl

ave

nam

e se

rver

s.•

Eac

hse

rver

impl

emen

tsD

NS

byru

nnin

gth

ein.named

dae

mon

.

Page 271: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 8

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dom

ain

Nam

eS

yste

m(D

NS

)

•O

n th

e cl

ient

’s s

ide,

DN

S is

impl

emen

ted

thro

ugh

the

reso

lver

. The

res

olve

r lib

rary

res

olve

s us

ers’

que

ries

.•

The

DN

S na

me

serv

ers

stor

e th

e ho

st a

nd IP

ad

dre

ssin

form

atio

n in

file

s ca

lled

zon

e fi

les.

•T

hesvc:/network/dns/server:default

ser

vice

star

ts th

e D

NS

serv

er d

urin

g th

e bo

ot p

roce

ss if

the

DN

S se

rver

has

bee

n co

nfig

ured

.

Page 272: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 9

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Net

wor

kIn

form

atio

nS

ervi

ce(N

IS)

•N

etw

ork

Info

rmat

ion

Serv

ice

(NIS

) was

dev

elop

edin

dep

end

entl

y of

DN

S an

d h

as a

slig

htly

dif

fere

ntfo

cus.

•N

ISst

ores

info

rmat

ion

abou

thos

tnam

es,I

Pad

dre

sses

,us

ers,

gro

ups,

and

oth

ers.

•T

his

colle

ctio

nof

netw

ork

info

rmat

ion

isre

ferr

edto

asth

e N

IS n

ames

pace

.•

NIS

nam

espa

cein

form

atio

nis

stor

edin

file

sca

lled

NIS

map

s.•

NIS

map

s w

ere

des

igne

d to

sup

plem

ent m

any

of th

eU

NIX

/etc

file

s.

Page 273: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 10

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Net

wor

kIn

form

atio

nS

ervi

ce(N

IS)

•N

ISm

aps

are

dat

abas

efi

les

crea

ted

from

sour

cefi

les

inth

e/etc

dir

ecto

ry (o

r in

a d

irec

tory

that

you

spe

cify

).•

By

def

ault

, the

se m

aps

are

stor

ed in

the

/var/yp/domainname

dir

ecto

ry o

n N

IS s

erve

rs.

•N

IS u

ses

dom

ains

to d

efin

e w

ho c

an a

cces

s th

e ho

stna

mes

,use

rinf

orm

atio

n,an

dot

hera

dm

inis

trat

ive

dat

ain

its

nam

espa

ce.

•H

owev

er,N

ISd

oes

notu

sea

dom

ain

hier

arch

yto

stor

eit

s d

ata.

The

refo

re, t

he N

IS n

ames

pace

is fl

at.

Page 274: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 11

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Net

wor

kIn

form

atio

nS

ervi

ce(N

IS)

•R

eplic

ated

NIS

serv

ers

prov

ide

serv

ices

toN

IScl

ient

s.•

The

pri

ncip

al s

erve

r is

cal

led

a m

aste

r se

rver

, and

, for

relia

bilit

y, it

has

a b

acku

p, o

r a

slav

e se

rver

.•

Eac

h se

rver

impl

emen

ts N

IS b

y ru

nnin

g th

eypserv

dae

mon

.•

All

NIS

clie

nts

and

ser

vers

mus

t run

theypbind

dae

mon

.•

The

svc:/network/nis/server:default

ser

vice

star

ts th

e N

IS s

erve

r d

urin

g th

e bo

ot p

roce

ss.

Page 275: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 12

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Net

wor

kIn

form

atio

nS

ervi

ceP

lus

(NIS

+)

•N

etw

ork

Info

rmat

ion

Serv

ice

Plus

(NIS

+) i

s si

mila

r to

NIS

, but

pro

vid

es m

any

mor

e fe

atur

es.

•N

IS+

ena

bles

you

to s

tore

info

rmat

ion

abou

t mac

hine

add

ress

es, s

ecur

ity

info

rmat

ion,

mai

l inf

orm

atio

n,E

ther

net i

nter

face

s, a

nd n

etw

ork

serv

ices

in c

entr

allo

cati

ons.

•T

his

conf

igur

atio

n of

net

wor

k in

form

atio

n is

ref

erre

dto

as

the

NIS

+ n

ames

pace

.•

The

NIS

+ n

ames

pace

is h

iera

rchi

cal a

nd is

sim

ilar

inst

ruct

ure

to th

e U

NIX

dir

ecto

ry tr

ee.

Page 276: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 13

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Net

wor

kIn

form

atio

nS

ervi

ceP

lus

(NIS

+)

•A

n N

IS+

nam

espa

ce c

an b

e d

ivid

ed in

to m

ulti

ple

dom

ains

that

can

be

adm

inis

tere

d in

dep

end

entl

y.•

NIS

+us

esa

clie

nt-s

erve

rmod

elto

stor

ean

dga

inac

cess

to th

e in

form

atio

n co

ntai

ned

in a

n N

IS+

nam

espa

ce.

•T

he p

rinc

ipal

ser

ver

is c

alle

d th

e ro

ot s

erve

r, a

nd th

eba

ckup

ser

vers

are

cal

led

rep

lica

serv

ers.

•B

oth

root

and

repl

ica

serv

ers

run

NIS

+se

rver

soft

war

e,as

wel

l as

mai

ntai

n co

pies

of N

IS+

tabl

es.

Page 277: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 14

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Net

wor

kIn

form

atio

nS

ervi

ceP

lus

(NIS

+)

•N

IS+

incl

udes

a s

ophi

stic

ated

sec

urit

y sy

stem

topr

otec

t the

str

uctu

re o

f the

nam

espa

ce a

nd it

sin

form

atio

n.•

NIS

+ u

ses

auth

enti

cati

on a

nd a

utho

riza

tion

to v

erif

yw

heth

er a

clie

nt’s

req

uest

for

info

rmat

ion

shou

ld b

efu

lfill

ed.

•E

ach

serv

er im

plem

ents

NIS

+ b

y ru

nnin

g th

erpc.nisd

dae

mon

.•

The

svc:/network/rpc/nisplus:default

ser

vice

star

ts th

e N

IS+

nam

e se

rvic

e d

urin

g th

e bo

ot p

roce

ss.

Page 278: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 15

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ligh

twei

ghtD

irect

ory

Acc

ess

Pro

toco

l(L

DA

P)

•L

DA

P is

the

prot

ocol

clie

nts

use

to c

omm

unic

ate

wit

ha

dir

ecto

ry s

erve

r.•

Itis

ave

ndor

-ind

epen

den

tpro

toco

land

can

beus

edon

com

mon

TC

P/IP

net

wor

ks.

•T

he S

olar

is 1

0 O

S co

mes

wit

h an

LD

AP

clie

nt a

ndL

DA

P se

rver

.•

The

LD

AP

Dir

ecto

ry S

erve

r is

cal

led

the

Sun

Java

™Sy

stem

Dir

ecto

ry S

erve

r.

Page 279: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 16

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ligh

twei

ghtD

irect

ory

Acc

ess

Pro

toco

l(L

DA

P)

•A

dir

ecto

ry s

erve

r st

ores

info

rmat

ion

in a

Dir

ecto

ryIn

form

atio

n T

ree

(DIT

).•

Clie

nts

can

quer

y th

e d

irec

tory

ser

ver

for

info

rmat

ion

or m

ake

chan

ges

to th

e in

form

atio

n st

ored

on

the

serv

er.

•T

he h

iera

rchy

of t

he d

irec

tory

tree

str

uctu

re is

sim

ilar

to th

at o

f the

UN

IX fi

le s

yste

m.

•E

ntri

es a

re n

amed

acc

ord

ing

to th

eir

posi

tion

in th

istr

ee s

truc

ture

by

a d

isti

ngui

shed

nam

e (D

N).

Page 280: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 17

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ligh

twei

ghtD

irect

ory

Acc

ess

Pro

toco

l(L

DA

P)

•T

he D

N is

sim

ilar

to a

n ab

solu

te p

ath

nam

e in

UN

IX.

•A

Rel

ativ

e D

isti

ngui

shed

Nam

e (R

DN

) is

sim

ilar

to a

rela

tive

pat

h na

me

in U

NIX

.•

Ad

irec

tory

entr

yis

com

pose

dof

attr

ibut

esth

atha

vea

type

, and

one

or

mor

e va

lues

.•

Sim

ilart

oth

eD

NS

nam

espa

ce,L

DA

Pna

mes

star

twit

hth

e le

ast s

igni

fica

nt c

ompo

nent

and

pro

ceed

to th

em

ost s

igni

fica

nt.

Page 281: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 18

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceS

witc

hF

ile

•T

he n

ame

serv

ice

swit

ch fi

le d

eter

min

es w

hich

nam

ese

rvic

esa

syst

emus

esto

sear

chfo

rinf

orm

atio

n,an

din

whi

ch o

rder

the

nam

e se

rvic

e re

ques

t is

reso

lved

.•

All

Sola

ris

OS

syst

ems

use

the/etc/nsswitch.conf

file

as

the

nam

e se

rvic

e sw

itch

file

.•

The

nsswitch.conf

file

islo

aded

wit

hth

eco

nten

tsof

ate

mpl

ate

file

dur

ing

the

inst

alla

tion

ofth

eSo

lari

sO

S,d

epen

din

g on

the

nam

e se

rvic

e th

at is

sel

ecte

d.

•T

he/etc/nsswitch.conf

file

incl

udes

a li

st o

fd

atab

ases

that

are

sou

rces

of i

nfor

mat

ion

abou

t IP

add

ress

es, u

sers

, and

gro

ups.

Page 282: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 19

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceS

witc

hF

ile

•T

he fo

llow

ing

entr

ies

are

from

the

/etc/nsswitch.conf

file

con

figu

red

to s

uppo

rt th

eN

IS n

ame

serv

ice:

...

passwd: files nis

group: files nis

# consult /etc "files" only if nis is down.

hosts: nis [NOTFOUND=return] files

...

networks: nis [NOTFOUND=return] files

protocols: nis [NOTFOUND=return] files

rpc: nis [NOTFOUND=return] files

ethers: nis [NOTFOUND=return] files

netmasks: nis [NOTFOUND=return] files

bootparams: nis [NOTFOUND=return] files

publickey: nis [NOTFOUND=return] files

...

Page 283: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 20

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceS

witc

hF

ile

•T

he in

form

atio

n so

urce

s in/etc/nsswitch.conf

are

liste

d in

the

ord

er th

at th

ey a

re s

earc

hed

.•

Info

rmat

ion

sour

ces

•files

•nisplus

•nis

•dns

•ldap

•user

If tw

o or

mor

e so

urce

s ar

e lis

ted

, the

firs

t lis

ted

sour

ceis

sear

ched

befo

rem

ovin

gto

the

next

sour

ce.

Page 284: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 21

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceS

witc

hF

ile

•W

hen

a na

me

serv

ice

is r

efer

ence

d, t

he a

ttem

pt to

sear

chth

isso

urce

can

retu

rnon

eof

the

follo

win

gst

atus

cod

es:

•SUCCESS

•UNAVAIL

•NOTFOUND

•TRYAGAIN

•Fo

r ea

ch s

tatu

s co

de,

two

acti

ons

are

poss

ible

:•

return

•continue

Page 285: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 22

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Nam

eS

ervi

ceS

witc

hF

ile

•W

hen

the

acti

on is

not

exp

licit

ly s

peci

fied

, the

def

ault

acti

onis

toco

ntin

ueth

ese

arch

usin

gth

ene

xtsp

ecif

ied

info

rmat

ion

sour

ce, a

s fo

llow

s:•

SUCCESS = return

•UNAVAIL = continue

•NOTFOUND = continue

•TRYAGAIN = continue

Page 286: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 23

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ame

Ser

vice

Cac

heD

aem

on(nscd)

•T

henscd

dae

mon

•T

henscd

dae

mon

isa

proc

ess

that

prov

ides

aca

che

for

the

mos

t com

mon

nam

e se

rvic

e re

ques

ts.

•T

henscd

dae

mon

sta

rts

dur

ing

mul

tius

er b

oot.

•T

he/etc/nscd.conf

confi

gura

tionfi

leco

ntro

lsth

ebe

havi

or o

f the

nscd

dae

mon

.•

The

nscd

dae

mon

prov

ides

cach

ing

for

thepasswd

,group

,hosts

,ipnodes

,exec_attr,prof_attr,

anduser_attr

dat

abas

es.

Page 287: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 24

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ame

Ser

vice

Cac

heD

aem

on(nscd)

•C

onfi

guri

ng th

enscd

dae

mon

•T

he/etc/nscd.conffil

eco

ntai

nsth

eco

nfigu

rati

onin

form

atio

n fo

r th

enscd

dae

mon

.•

Eac

hlin

esp

ecifi

esei

ther

anat

trib

ute

and

ava

lue,

oran

att

ribu

te, a

cac

he n

ame,

and

a v

alue

.•

An

exam

ple

ofan

attr

ibut

ean

da

valu

eis

asfo

llow

s:logfile /var/adm/nscd.log

•A

n ex

ampl

e of

an

attr

ibut

e, a

cac

he n

ame,

and

ava

lue

is a

s fo

llow

s:enable-cache hosts no

Page 288: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 25

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ame

Ser

vice

Cac

heD

aem

on(nscd)

•St

oppi

ng a

nd s

tart

ing

thenscd

dae

mon

•T

henscd

dae

mon

’sca

che

mig

htbe

com

eou

tofd

ate

due

to v

ario

us a

bnor

mal

cir

cum

stan

ces.

•A

com

mon

way

tofo

rce

thenscd

dae

mon

toup

dat

eit

s ca

che

is to

sto

p an

d s

tart

the

dae

mon

.•

Res

tart

ing

thenscd

dae

mon

Cle

arin

gth

eca

che

byre

star

ting

the

dae

mon

can

behe

lpfu

lin

rem

ovin

gol

dca

ched

dat

a:#svcadm restart system/name-service-cache:default

Page 289: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 26

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ret

rievi

ngN

ame

Ser

vice

Info

rmat

ion

•T

hegetent

com

man

dYo

uca

nqu

ery

nam

ese

rvic

ein

form

atio

nso

urc

esw

ith

spec

ific

tool

s,su

chas

theypcat

,nslookup

,niscat

,and

ldaplist

com

man

ds.

How

ever

,the

nsswitch.conf

file

isno

tre

fere

nced

byth

ese

com

man

ds.

The

getent

com

man

dha

sth

efo

llow

ing

adva

ntag

es:

•T

hegetent

sear

ches

the

info

rmat

ion

sour

ces

inth

eor

der

list

ed in

the

nam

e se

rvic

e sw

itch

file

.•

By

usin

g th

e na

me

serv

ice

swit

ch fi

le, t

he d

efine

dst

atus

mes

sage

cod

es a

nd a

ctio

ns a

re te

sted

as

they

are

curr

entl

y co

nfigu

red

.

Page 290: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 12

, slid

e 27

of 2

7C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ret

rievi

ngN

ame

Ser

vice

Info

rmat

ion

•U

sing

thegetent

com

man

dT

hegetent

com

man

dre

trie

ves

alis

tof

entr

ies

from

the

adm

inis

trat

ive

dat

abas

esp

ecif

ied

bydatabase

.T

heso

urc

esfo

rth

ed

atab

ase

are

spec

ifie

din

the

/etc/nsswitch.conf

file

.The

synt

axis

asfo

llow

s:getent

database

[key]...

Page 291: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

13

Con

figur

ing

Nam

e S

ervi

ce C

lient

s

Page 292: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 2

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•C

onfi

gure

a D

NS

clie

nt•

Con

figu

re a

n L

DA

P cl

ient

Page 293: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 3

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

ga

DN

SC

lient

Nam

e re

solu

tion

usi

ng th

e In

tern

et d

omai

n na

me

syst

embe

gins

wit

h th

e cl

ient

-sid

e re

solv

er.

The

clie

nt r

esol

ver

cod

e is

con

trol

led

by

the

follo

win

g fi

les:

•/etc/resolv.conf

•/etc/nsswitch.conf

Page 294: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 4

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eD

NS

Clie

ntD

urin

gIn

stal

latio

n

Dur

ing

the

syst

em id

entific

atio

n ph

ase

of a

Sol

aris

10

OS

inst

alla

tion

, use

the

follo

win

g:

•T

heN

ame

Serv

ice

win

dow

,to

sele

ctD

NS

asth

ena

me

serv

ice

•T

heD

omai

nN

ame

win

dow

,to

ente

rth

eD

NS

dom

ain

nam

e to

whi

ch th

e cl

ient

will

bel

ong

•T

he D

NS

Serv

er A

dd

ress

win

dow

, to

ente

r th

e IP

add

ress

esof

upto

thre

eD

NS

serv

ers

that

the

clie

ntw

illus

e fo

r lo

okup

s

Page 295: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 5

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eD

NS

Clie

ntD

urin

gIn

stal

latio

n

Dur

ing

the

syst

em id

entific

atio

n ph

ase

of a

Sol

aris

10

OS

inst

alla

tion

, use

the

follo

win

g:

•T

he D

NS

Sear

ch L

ist w

ind

ow, t

o en

ter

sear

ch s

uffi

xes

to s

uppl

emen

t sea

rche

s fo

r na

mes

that

are

not

fully

qual

ifie

d•

The

Con

firm

Info

rmat

ion

win

dow

, to

veri

fy th

at y

ouha

ve p

rovi

ded

acc

urat

e in

form

atio

n

Page 296: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 6

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

DN

SC

lient

Config

urat

ion

File

s

Tous

eD

NS

wit

han

othe

rna

me

serv

ice,

such

asN

ISor

LD

AP,

you

mus

t man

ually

mod

ify

confi

gura

tion

file

s.

•E

dit

ing

the/etc/resolv.conf

file

The

/etc/resolv.conf

file

cont

ains

conf

igu

rati

ond

irec

tive

sfo

rth

eD

NS

reso

lver

.The

dir

ecti

ves

incl

ud

eth

efo

llow

ing:

•nameserver

•domain

•search

Page 297: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 7

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

DN

SC

lient

Config

urat

ion

File

s

The

follo

win

gresolv.conf

exam

ple

show

stw

ona

me

serv

ers

for

thesuned.sun.com

dom

ain.

Ital

sosp

ecif

ies

two

dom

ain

nam

es,

training.sun.com

andsun.com

,to

app

end

toan

yre

ques

tsre

ceiv

edth

atar

eno

tfu

llyqu

alif

ied

.#cat /etc/resolv.conf

nameserver 192.168.10.11

nameserver 192.168.20.88

domain suned.sun.com training.sun.com sun.com

Page 298: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 8

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

DN

SC

lient

Config

urat

ion

File

s

•C

opyi

ng th

e/etc/nsswitch.dns

file

to th

e/etc/nsswitch.conf

file

•To

confi

gure

acl

ient

tous

eD

NS

inco

mbi

nati

onw

ith

the

syst

em’s

loca

l file

s, c

opy

the

/etc/nsswitch.dns

file

to th

e/etc/nsswitch.conf

file

.•

Thi

s ac

tion

onl

y ch

ange

s th

ehosts

ent

ry.

Page 299: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 9

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Set

ting

Up

anLD

AP

Clie

nt

Nat

ive

LD

AP

isth

ecl

ient

impl

emen

tati

onof

the

LD

AP

nam

ese

rvic

e.

An

LD

AP

serv

er,s

uch

asth

eSu

nJa

vaD

irec

tory

Serv

erth

atis

bund

led

wit

h th

e So

lari

s 10

OS,

mus

t exi

st o

n th

e ne

twor

k.

Page 300: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 10

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Clie

ntA

uthe

ntic

atio

n

An

LD

AP

clie

ntm

uste

stab

lish

ase

ssio

nw

ith

anL

DA

Pse

rver

.

Thi

s au

then

tica

tion

pro

cess

is k

now

n as

bin

din

g.

Aft

era

clie

ntis

auth

enti

cate

d,i

tcan

then

perf

orm

oper

atio

ns,

such

as

“sea

rch

and

mod

ify,

” on

the

dat

a.

Page 301: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 11

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Clie

ntA

uthe

ntic

atio

n

Det

ails

on

how

the

clie

nt is

aut

hent

icat

ed a

nd w

hat d

ata

the

clie

nt is

aut

hori

zed

to a

cces

s is

mai

ntai

ned

on

the

LD

AP

serv

er.

Toav

oid

havi

ngto

reen

ter

the

sam

ein

form

atio

nfo

rea

chan

dev

ery

clie

nt, a

sin

gle

clie

nt p

rofil

e is

cre

ated

on

the

dir

ecto

ryse

rver

.

Page 302: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 12

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Clie

ntP

rofil

ean

dP

roxy

Acc

ount

A s

ingl

e cl

ient

profil

e d

efine

s th

e co

nfigu

rati

on p

aram

eter

sfo

r a

grou

p of

Sol

aris

OS

clie

nts

allo

wed

to a

cces

s th

e L

DA

Pd

atab

ase.

Clie

nt p

rofil

e:

•C

onta

ins

the

clie

nt’s

cre

den

tial

info

rmat

ion

•D

escr

ibes

how

aut

hent

icat

ion

is to

take

pla

ce•

Prov

ides

the

clie

nt w

ith

vari

ous

conf

igur

atio

npa

ram

eter

s

Apr

oxy

acco

unti

scr

eate

dto

allo

wm

ulti

ple

clie

nts

tobi

ndto

the

serv

er w

ith

the

sam

e ac

cess

pri

vile

ges.

Page 303: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 13

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Clie

ntIn

itial

izat

ion

•T

hecl

ient

prof

ilean

dpr

oxy

acco

unta

recr

eate

das

part

of th

e Su

n Ja

va D

irec

tory

Ser

ver

setu

p pr

oced

ures

on

the

Sola

ris

10 O

S.•

By

def

ault

, the

clie

nt p

rofi

le n

amed

default

and

the

prox

yac

coun

tproxyagent

are

crea

ted

und

era

spec

ial

prof

ile d

irec

tory

ent

ry.

•W

hen

the

Sola

ris

LD

AP

clie

nt is

init

ializ

ed, a

cop

y of

the

clie

ntpr

ofile

isre

trie

ved

from

the

serv

eran

dst

ored

on d

isk.

Page 304: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 14

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eLD

AP

Clie

ntD

urin

gIn

stal

latio

n

To c

onfig

ure

the

LD

AP

clie

nt, c

ompl

ete

the

follo

win

g st

eps:

•In

the

Nam

eSe

rvic

ew

ind

ow,s

elec

tLD

AP

asth

ena

me

serv

ice.

•In

the

Dom

ain

Nam

ew

ind

ow,e

nter

the

dom

ain

nam

ew

here

the

syst

em is

loca

ted

.•

In th

e L

DA

P Pr

ofile

win

dow

, ent

er th

e pr

ofile

nam

ean

d s

erve

r IP

ad

dre

ss.

•In

the

LD

AP

Prox

y B

ind

win

dow

, sel

ect N

o.•

In th

e C

onfi

rm In

form

atio

n w

ind

ow, v

erif

y th

at y

ouha

ve p

rovi

ded

acc

urat

e in

form

atio

n.

Page 305: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 15

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Initi

aliz

ing

the

Nat

ive

LDA

PC

lient

You

exec

ute

theldapclient

com

man

d o

n th

e cl

ient

sys

tem

once

to in

itia

te th

e cl

ient

as

a na

tive

LD

AP

clie

nt.

The

follo

win

gex

ampl

ed

escr

ibes

aty

pica

lclie

ntin

itia

lizat

ion:

#ldapclient init -a proxyPassword=proxy\

-a proxyDN=cn=proxyagent,ou=profile,dc=suned,dc=sun,dc=com\

-a domainname=suned.sun.com 192.168.0.100

System successfully configured

Page 306: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 16

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cop

ying

the/etc/nsswitch.ldap

File

toth

e/etc/nsswitch.conf

File

Dur

ing

LD

AP

clie

nt in

itia

lizat

ion,

the

/etc/nsswitch.ldap

file

is c

opie

d o

ver

to th

e/etc/nsswitch.conf

file

.

Page 307: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 17

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

List

ing

LDA

PE

ntrie

s

You

use

theldaplist

com

man

d to

list

the

nam

ing

info

rmat

ion

from

the

LD

AP

serv

ers.

Wit

hout

any

arg

umen

ts, t

heldaplist

com

man

d r

etur

ns a

llof

the

cont

aine

rs in

the

curr

ent s

earc

h ba

se D

N.

Page 308: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 13

, slid

e 18

of 1

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Unc

onfig

urin

gan

LDA

PC

lient

To u

nconfig

ure

an L

DA

P cl

ient

, use

theldapclient

com

man

d w

ith

theuninit

opt

ion.

Thi

s co

mm

and

rem

oves

the

clie

nt fi

les

from

the

/var/ldap

dir

ecto

ry a

nd r

esto

res

the

prev

ious

/etc/nsswitch.conf

file

.

#ldapclient uninit

System successfully unconfigured

Page 309: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

14

Con

figur

ing

the

Net

wor

k In

form

atio

nS

ervi

ce (

NIS

)

Page 310: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 2

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

NIS

fund

amen

tals

•C

onfi

gure

the

nam

e se

rvic

e sw

itch

file

•D

escr

ibe

NIS

sec

urit

y•

Con

figu

re a

n N

IS d

omai

n•

Bui

ld c

usto

m N

IS m

aps

•T

roub

lesh

oot N

IS

Page 311: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 3

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Fun

dam

enta

ls

NIS

faci

litat

esth

ecr

eati

onof

serv

ersy

stem

sth

atac

tas

cent

ral

repo

sito

ries

for

seve

ral o

f the

ad

min

istr

ativ

e fi

les

foun

d o

nU

NIX

sys

tem

s.

The

ben

efits

of N

IS in

clud

e th

e fo

llow

ing:

•C

entr

aliz

ed a

dm

inis

trat

ion

of c

onfi

gura

tion

file

s•

Bet

ter

scal

ing

of c

onfi

gura

tion

file

ad

min

istr

atio

n as

netw

orks

gro

w

NIS

is o

rgan

ized

into

nam

ed a

dm

inis

trat

ive

dom

ains

.

Wit

hin

each

dom

ain

ther

e is

one

NIS

mas

ter

serv

er, z

ero

orm

ore

slav

e se

rver

s, a

nd o

ne o

r m

ore

clie

nts.

Page 312: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 4

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Nam

espa

ceIn

form

atio

n

NIS

sto

res

info

rmat

ion

abou

t hos

t nam

es a

nd th

eir

IPad

dre

sses

, use

rs, g

roup

s, a

nd o

ther

s.

NIS

map

s ca

n re

plac

e or

be

used

wit

h th

e co

nfigu

rati

on fi

les

that

exi

st o

n ea

ch U

NIX

sys

tem

.

NIS

map

sare

loca

ted

inth

e/var/yp/domainname

dir

ecto

ryon

NIS

ser

vers

.

Page 313: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 5

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Map

Con

tent

san

dS

ortK

eys

Eac

h m

ap c

onta

ins

a ke

y an

d v

alue

pai

r.

The

key

rep

rese

nts

dat

a us

ed to

per

form

the

look

up in

the

map

, whi

le th

e va

lue

repr

esen

ts d

ata

retu

rned

aft

er a

succ

essf

ul lo

okup

.

For

exam

ple,

for

the

dom

ain

nam

etraining

, the

NIS

map

files

list

for

thehosts

map

are

as

follo

ws:

•T

he/var/yp/training/hosts.byname.pag

file

•T

he/var/yp/training/hosts.byname.dir

file

•T

he/var/yp/training/hosts.byaddr.pag

file

•T

he/var/yp/training/hosts.byaddr.dir

file

Page 314: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 6

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Com

man

dsto

Rea

dM

aps

You

can

use

two

com

man

ds

to r

ead

map

s:

•ypcat [ -k ]mname

•ypmatch [ -k ]value mname

#ypcat hosts

192.168.30.30 instructor instructor. loghost

192.168.30.30 instructor instructor. loghost

127.0.0.1 localhost

...

#ypmatch sys44 hosts

sys44: 192.168.30.44 sys44 loghost

#ypmatch usera passwd

usera: usera:LojyTdiQev5i2:3001:10::/export/home/usera:/bin/ksh

Page 315: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 7

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Dom

ains

An

NIS

dom

ain

is a

col

lect

ion

of h

osts

and

inte

rcon

nect

ing

netw

orks

that

are

org

aniz

ed in

to a

sin

gle

adm

inis

trat

ive

auth

orit

y.

Eac

h N

IS d

omai

n co

ntai

ns:

•O

ne N

IS m

aste

r se

rver

•N

IS s

lave

ser

vers

(opt

iona

l)•

NIS

clie

nts

Page 316: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 8

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Mas

terS

erve

r

Wit

hin

each

dom

ain,

the

NIS

mas

ter

serv

erha

sth

efo

llow

ing

char

acte

rist

ics:

•C

onta

ins

the

orig

inal

sou

rce

ASC

II fi

les

used

to b

uild

the

NIS

map

s•

Con

tain

s th

e N

IS m

aps

gene

rate

d fr

om th

e A

SCII

file

s•

Prov

ides

a s

ingl

e po

int-

of-c

ontr

ol fo

r th

e en

tire

NIS

dom

ain

Page 317: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 9

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Sla

veS

erve

rs

Wit

hin

each

dom

ain,

the

NIS

slav

ese

rver

sha

veth

efo

llow

ing

char

acte

rist

ics:

•D

o no

t con

tain

the

orig

inal

sou

rce

ASC

II fi

les

used

tobu

ild th

e N

IS m

aps

•C

onta

in c

opie

s of

the

NIS

map

s co

pied

from

the

NIS

mas

ter

serv

er•

Prov

ide

a ba

ckup

for

NIS

map

info

rmat

ion

•Pr

ovid

e re

dun

dan

cy in

cas

e of

ser

ver

failu

res

•Pr

ovid

e lo

ad s

hari

ng o

n la

rge

netw

orks

Page 318: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 10

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Clie

nts

Wit

hin

each

dom

ain,

the

NIS

clie

nts

have

the

follo

win

gch

arac

teri

stic

s:

•D

o no

t con

tain

the

orig

inal

sou

rce

ASC

II fi

les

used

tobu

ild th

e N

IS m

aps

•D

o no

t con

tain

any

NIS

map

s•

Bin

d to

the

mas

ter

serv

er o

r to

a s

lave

ser

ver

to o

btai

nac

cess

toth

ead

min

istr

ativ

efi

lein

form

atio

nco

ntai

ned

in th

at s

erve

r’s

NIS

map

s•

Dyn

amic

ally

rebi

ndto

anot

her

serv

erin

case

ofse

rver

failu

re•

Mak

e al

l app

ropr

iate

sys

tem

cal

ls a

war

e of

NIS

Page 319: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 11

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Pro

cess

es

The

mai

nd

aem

ons

invo

lved

inth

eru

nnin

gof

anN

ISd

omai

nar

e as

follo

ws:

•T

heypserv

dae

mon

•T

heypbind

dae

mon

•T

herpc.yppasswdd

dae

mon

•T

heypxfrd

dae

mon

•T

herpc.ypupdated

dae

mon

Page 320: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 12

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ame

Ser

vice

Sw

itch

Whe

nyo

use

lect

NIS

asth

ena

me

serv

ice

dur

ing

inst

alla

tion

,th

e/etc/nsswitch.nis

config

urat

ion fil

e lo

ads

into

the

def

ault/etc/nsswitch.conf

file

.

•C

hang

ing

look

up r

eque

sts

to g

o fr

om fi

les

to N

ISE

ntri

esin

/etc/nsswitch.conf

wit

hth

efo

llow

ing

form

cau

sere

ques

tsto

sear

chfi

les

firs

t,an

dth

enN

IS:

passwd: files nis

•C

hang

ing

look

up r

eque

sts

to g

o fr

om N

IS to

file

sE

ntri

esin

/etc/nsswitch.conf

wit

hth

efo

llow

ing

form

cau

sere

ques

tsto

sear

chN

ISfi

rst,

and

then

file

s:hosts: nis [NOTFOUND=return] files

Page 321: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 13

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

NIS

Sec

urity

Just

asN

ISm

akes

the

netw

ork

info

rmat

ion

mor

em

anag

eabl

e,it

can

als

o cr

eate

inad

vert

ent s

ecur

ity

hole

s.

Two

met

hod

s of

clo

sing

thes

e se

curi

ty h

oles

are

usi

ng th

esecurenets

file

to r

estr

ict a

cces

s to

a s

ingl

e ho

st o

r to

asu

bnet

wor

k, a

nd u

sing

thepasswd.adjunct

file

to li

mit

acce

ss to

the

pass

wor

d in

form

atio

n ac

ross

the

netw

ork.

Page 322: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 14

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gan

NIS

Dom

ain

To g

ener

ate

NIS

map

s, y

ou n

eed

the

sour

ce fi

les.

You

canfin

dso

urcefil

esin

the/etc

dir

ecto

ryon

the

mas

ter

serv

er.

Do

notk

eep

the

sour

cefil

esin

the/etc

dir

ecto

ry,b

ecau

seth

eco

nten

ts o

f the

map

s ar

e th

en th

e sa

me

as th

e co

nten

ts o

f the

loca

l file

s th

at c

ontr

ol a

cces

s to

the

mas

ter

serv

er.

Thi

s is

a s

peci

al p

robl

em fo

r th

e/etc/passwd

and

/etc/shadow

file

s.

Page 323: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 15

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gan

NIS

Dom

ain

•T

o lo

cate

the

sour

ce fi

les

in a

noth

er d

irec

tory

, mod

ify

the/var/yp/Makefile

file

:•

Cha

nge

theINETDIR

line

toDIR=/your-choice

•C

hang

e th

eDIR=/etc

line

toDIR=/your-choice

•C

hang

e th

ePWDIR=/etc

line

toPWDIR=/your-choice

•C

opy

file

sfr

om/etc

,/etc/inet

,and

/etc/services

toDIR=/your-choice

•B

efor

e yo

u m

ake

any

mod

ific

atio

ns to

the

/var/yp/Makefile

file

, sav

e a

copy

of t

he o

rigi

nal

Makefile

file

.

Page 324: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 16

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Gen

erat

ing

NIS

Map

s

The

NIS

config

urat

ion

scri

pt,/usr/sbin/ypinit

, and

the

make

uti

lity

gene

rate

NIS

map

s.

The

ypinit

com

man

d r

ead

s th

e/var/yp/Makefile

file

for

sour

cefil

elo

cati

ons,

and

conv

erts

ASC

IIso

urcefi

les

into

NIS

map

s.

For

secu

rity

reas

ons

and

topr

even

tuna

utho

rize

dro

otac

cess

,th

efil

esth

atbu

ildth

eN

ISpa

ssw

ord

map

ssh

ould

notc

onta

inan

ent

ry fo

r th

e ro

ot u

ser.

Tom

ake

sure

ofth

is,c

opy

thefil

esto

anal

tern

ativ

ed

irec

tory

,an

d m

odif

y th

ePWDIR

ent

ry in

theMakefile

file

.

Page 325: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 17

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Loca

ting

Sou

rce

File

s

•T

heso

urce

file

sar

elo

cate

din

the/etc

dir

ecto

ryon

the

mas

ter

serv

er, b

ut th

e fi

les

can

be c

opie

d in

to a

noth

erd

irec

tory

, suc

h as/etc/yp_dir

.•

The

/etc/defaultdomain

file

set

s th

e N

IS d

omai

nna

me

dur

ing

syst

em b

oot.

•T

heypinit

scr

ipt c

alls

the

prog

rammake

, whi

ch u

ses

theMakefile

file

loca

ted

in th

e/var/yp

dir

ecto

ry.

Page 326: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 18

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Loca

ting

Sou

rce

File

s

•T

he/var/yp

dir

ecto

ryco

ntai

nsa

subd

irec

tory

nam

edaf

ter

the

NIS

dom

ain

nam

e. T

hisdomainname

dir

ecto

ry is

the

repo

sito

ry fo

r th

e N

IS m

aps.

•T

he/var/yp/binding/domainname

dir

ecto

ryco

ntai

nsth

eypservers

file

whe

reth

ena

mes

ofth

eN

ISm

aste

r se

rver

and

NIS

sla

ve s

erve

rs a

re s

tore

d.

•T

he/usr/lib/netsvc/yp

dir

ecto

ry c

onta

ins

the

ypstop

and

ypstart

com

man

ds

that

sto

p an

d s

tart

NIS

ser

vice

s, r

espe

ctiv

ely.

Page 327: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 19

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Con

vert

ing

AS

CII

Sou

rce

File

sIn

toN

ISM

aps

To b

uild

new

map

s on

the

mas

ter

serv

er, p

erfo

rm th

efo

llow

ing

com

man

d:

#/usr/sbin/ypinit -m

The

ypinit

com

man

dpr

ompt

sfo

ra

listo

foth

erm

achi

nes

tobe

com

e N

IS s

lave

ser

vers

.

Page 328: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 20

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISM

aste

rSer

ver

To s

et u

p th

e N

IS n

ame

serv

ice

mas

ter

serv

er, c

ompl

ete

the

follo

win

g st

eps:

1.D

eter

min

ew

hich

mac

hine

son

you

rne

twor

kd

omai

nw

illbe

NIS

serv

ers.

2.C

hoos

ean

NIS

dom

ain

nam

e.3.

Use

thedomainname

com

man

dto

set

the

loca

lN

ISd

omai

n.4.

Cre

ate

an/etc/defaultdomain

file

that

cont

ains

the

dom

ain

nam

e.

Page 329: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 21

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISM

aste

rSer

ver

5.If

the

file

sd

ono

tal

read

yex

ist,

use

thetouch

com

man

dto

crea

teze

ro-l

engt

hfi

les

wit

hth

efo

llow

ing

nam

es:/etc/ethers

,/etc/bootparams

,/etc/locale

,/etc/timezone

,/etc/netgroup

,and

/etc/netmasks

.6.

Inst

all

anu

pd

ated

Makefile

file

inth

e/var/yp

dir

ecto

ryif

you

inte

ndto

use

NIS

onth

esy

stem

that

func

tion

sas

you

rJu

mp

Star

tso

ftw

are

serv

er.

7.C

reat

eor

pop

ula

teth

e/etc/locale

file

,and

mak

ean

entr

yfo

rea

chd

omai

non

you

rne

twor

k.

Page 330: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 22

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISM

aste

rSer

ver

8.In

itia

lize

the

mas

ter

serv

erby

usi

ngth

elo

cal/etc

file

s.E

nter

theypinit

-m

com

man

d.

a.W

hen

the

pro

gram

pro

mp

tsyo

ufo

ra

list

ofsl

ave

serv

ers,

and

afte

ryo

uco

mp

lete

you

rlis

t,p

ress

Control-D

.b.

The

pro

gram

asks

ifyo

uw

ant

tote

rmin

ate

iton

the

firs

tfa

tal

erro

r.9.

Cop

yth

e/etc/nsswitch.nis

file

toth

e/etc/nsswitch.conf

file

.10

.Sta

rtth

eN

ISd

aem

ons

onth

em

aste

rse

rver

wit

hth

efo

llow

ing

com

man

d:

#svcadm enable svc:/network/nis/server:default

Page 331: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 23

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Test

ing

the

NIS

Ser

vice

The

re a

re a

num

ber

of c

omm

and

s th

at y

ou c

an u

se to

obt

ain

info

rmat

ion

from

and

abo

ut th

e N

IS d

atab

ase.

The

mos

t com

mon

ly u

sed

NIS

com

man

ds

are

as fo

llow

s:

•ypcat

•ypmatch

•ypwhich

Page 332: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 24

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISC

lient

To c

onfig

ure

the

NIS

clie

nt, c

ompl

ete

the

follo

win

g st

eps:

1.E

dit

the/etc/inet/hosts

file

toen

sure

that

the

NIS

mas

ter

serv

eran

dal

lsl

ave

serv

ers

have

been

def

ined

.2.

Exe

cute

thedomainname

domainname

com

man

dto

set

the

loca

lN

ISd

omai

n.3.

Cre

ate

orp

opu

late

the/etc/defaultdomain

file

wit

hth

ed

omai

nna

me.

Page 333: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 25

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISC

lient

4.To

init

ializ

eth

esy

stem

asan

NIS

clie

nt,p

erfo

rmth

efo

llow

ing

com

man

d:

#ypinit

-c

5.W

hen

the

syst

emp

rom

pts

you

for

alis

tof

NIS

serv

ers,

ente

rth

ena

mes

ofth

eN

ISm

aste

ran

dal

lsl

ave

serv

ers.

6.C

opy

the/etc/nsswitch.nis

file

toth

e/etc/nsswitch.conf

file

.7.

Star

tN

ISw

ith

the

follo

win

gco

mm

and

:#svcadm

enable

svc:/network/nis/

client:default

Page 334: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 26

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISS

lave

Ser

ver

Toco

nfigu

rean

NIS

slav

ese

rver

,com

plet

eth

efo

llow

ing

step

son

the

syst

em th

at y

ou w

ant t

o d

esig

nate

as

the

slav

e se

rver

:

1.E

dit

the/etc/inet/hosts

file

toen

sure

that

the

NIS

mas

ter

serv

eran

dal

lsl

ave

serv

ers

have

been

def

ined

.2.

Exe

cute

thedomainname

domainname

com

man

dto

set

the

loca

lN

ISd

omai

n.3.

Cre

ate

orp

opu

late

the/etc/defaultdomain

file

wit

hth

ed

omai

nna

me.

Page 335: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 27

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISS

lave

Ser

ver

4.To

init

ializ

eth

esy

stem

asan

NIS

clie

nt,p

erfo

rmth

efo

llow

ing

com

man

d:

#ypinit

-c

5.W

hen

the

syst

emp

rom

pts

for

alis

tof

NIS

serv

ers,

ente

rth

eN

ISm

aste

rho

stfo

llow

edby

the

nam

eof

the

loca

lho

stan

dal

lot

her

NIS

slav

ese

rver

son

the

loca

lne

twor

k.6.

Cop

yth

e/etc/nsswitch.nis

file

toth

e/etc/nsswitch.conf

file

.7.

On

the

NIS

mas

ter,

ensu

reth

atth

eypserv

pro

cess

isru

nnin

g.

Page 336: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 28

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gth

eN

ISS

lave

Ser

ver

8.O

nth

ep

rop

osed

NIS

slav

esy

stem

,sta

rtth

eypbind

dae

mon

.#svcadm enable svc:/network/nis/client:default

9.In

itia

lize

the

syst

emas

anN

ISsl

ave

byp

erfo

rmin

gth

efo

llow

ing

com

man

d:

#ypinit -smaster

10.B

efor

est

arti

ngth

eypserv

dae

mon

onth

esl

ave

serv

er,s

top

the

clie

ntw

ith

the

follo

win

gco

mm

and

:#svcadm disable svc:/network/nis/client:default

11.W

hen

the

NIS

serv

eris

star

ted

,it

also

star

tsth

eypbind

client

dae

mon

.#svcadm enable svc:/network/nis/server:default

Page 337: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 14

, slid

e 29

of 2

9C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Upd

atin

gth

eN

ISM

ap

Bec

ause

dat

abas

e fil

es c

hang

e w

ith

tim

e, y

ou m

ust u

pdat

eyo

ur N

IS m

aps.

To

upd

ate

the

NIS

map

s (o

n th

e m

aste

rse

rver

), co

mpl

ete

the

follo

win

g st

eps:

1.U

pd

ate

the

text

file

sin

you

rso

urc

ed

irec

tory

.2.

Cha

nge

toth

e/var/yp

dir

ecto

ry.

#cd

/var/yp

3.R

efre

shth

eN

ISd

atab

ase

map

su

sing

themake

uti

lity.

#/usr/ccs/bin/make

Page 338: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

15

Intr

oduc

tion

to Z

ones

Page 339: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 2

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•Id

enti

fy th

e d

iffe

rent

zon

es fe

atur

es•

Und

erst

and

how

and

why

zon

e pa

rtit

ioni

ng is

use

d•

Con

figu

re z

ones

•In

stal

l zon

es•

Boo

t zon

es•

Ad

min

iste

r pa

ckag

es w

ith

zone

s•

Upg

rad

e th

e So

lari

s 10

OS

wit

h in

stal

led

zon

es

Page 340: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 3

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Zon

es

Sola

ris

zone

s te

chno

logy

ena

bles

sof

twar

e pa

rtit

ioni

ng o

f aSo

lari

s 10

OS

to s

uppo

rt m

ulti

ple

inst

ance

s of

the

oper

atin

gsy

stem

ser

vice

s w

ith

ind

epen

den

t pro

cess

spa

ce, a

lloca

ted

reso

urce

s, a

nd u

sers

.

Zon

espr

ovid

evi

rtua

lope

rati

ngsy

stem

serv

ices

that

look

like

dif

fere

nt S

olar

is in

stan

ces

to u

sers

and

app

licat

ions

.

Sola

ris

zone

s al

low

ad

min

istr

ator

s to

ded

icat

e sy

stem

reso

urce

s to

ind

ivid

ual z

ones

.

Eac

hzo

neex

ists

wit

hse

para

tepr

oces

san

dfi

lesy

stem

spac

e,an

d c

an o

nly

mon

itor

and

inte

ract

wit

h lo

cal p

roce

sses

.

Page 341: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 4

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eF

eatu

res

•Se

curi

ty•

Isol

atio

n•

Vir

tual

izat

ion

•G

ranu

lari

ty•

Tra

nspa

renc

y

Page 342: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 5

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eTy

pes

The

Sol

aris

Ope

rati

ng S

yste

m s

uppo

rts

two

type

s of

zon

es:

•G

loba

l•

Non

-glo

bal

Page 343: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 6

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Glo

balZ

ones

Eve

ry S

olar

is s

yste

m c

onta

ins

a gl

obal

zon

e.

The

glo

bal z

one

has

two

func

tion

s:

•It

is th

e d

efau

lt z

one

for

the

syst

em.

•It

is th

e zo

ne u

sed

for

syst

em-w

ide

adm

inis

trat

ive

cont

rol.

The

glo

bal z

one

is th

e on

ly z

one

from

whi

ch a

non

-glo

bal

zone

can

be

confi

gure

d, i

nsta

lled

, man

aged

, or

unin

stal

led

.

The

glob

alzo

neco

ntai

nsa

com

plet

ein

stal

lati

onof

the

Sola

ris

syst

em s

oftw

are

pack

ages

.

Page 344: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 7

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Glo

balZ

ones

Eac

hzo

ne,i

nclu

din

gth

egl

obal

zone

,isa

ssig

ned

azo

nena

me.

The

glo

bal z

one

alw

ays

uses

the

nam

eglobal

. Non

-glo

bal

zone

s m

ust h

ave

user

-defi

ned

nam

es.

The

sys

tem

alw

ays

assi

gns

zone

ID 0

to th

e gl

obal

zon

e.

The

sys

tem

ass

igns

non

-zer

o zo

ne ID

s to

non

-glo

bal z

ones

whe

n th

ey b

oot.

Page 345: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 8

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Non

-Glo

balZ

ones

Non

-glo

balz

ones

cont

ain

anin

stal

led

subs

etof

the

com

plet

eSo

lari

s O

pera

ting

Sys

tem

sof

twar

e pa

ckag

es.

The

yca

nal

soco

ntai

nSo

lari

sso

ftw

are

pack

ages

shar

edfr

omth

e gl

obal

zon

e an

d a

dd

itio

nal i

nsta

lled

sof

twar

e pa

ckag

esno

t sha

red

from

the

glob

al z

one.

Non

-glo

bal z

ones

sha

re o

pera

tion

und

er th

e So

lari

s ke

rnel

boot

ed fr

om th

e gl

obal

zon

e.

Non

-glo

bal z

ones

are

not

aw

are

that

any

oth

er z

ones

exi

st.

Page 346: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 9

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eD

aem

ons

The

sys

tem

use

s tw

o d

aem

ons

to c

ontr

ol z

one

oper

atio

n,zoneadmd

and

zsched

.

The

zoneadmd

dae

mon

is th

e pr

imar

y pr

oces

s fo

r m

anag

ing

the

zone

’s v

irtu

al p

latf

orm

.

The

zoneadmd

dae

mon

is r

espo

nsib

le fo

r th

e fo

llow

ing:

•M

anag

ing

zone

boo

ting

and

shu

ttin

g d

own

•A

lloca

ting

the

zone

IDan

dst

arti

ngth

ezsched

syst

empr

oces

s•

Sett

ing

zone

-wid

e re

sour

ce c

ontr

ols

•Pr

epar

ing

the

zone

’s d

evic

es a

s sp

ecif

ied

in th

e zo

neco

nfig

urat

ion

Page 347: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 10

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eD

aem

ons

The

zoneadmd

dae

mon

is a

lso

resp

onsi

ble

for

the

follo

win

g:

•Pl

umbi

ng v

irtu

al n

etw

ork

inte

rfac

es•

Mou

ntin

g lo

opba

ck a

nd c

onve

ntio

nal f

ile s

yste

ms

The

zsched

pro

cess

invo

lves

the

follo

win

g:

•E

very

act

ive

zone

has

an

asso

ciat

ed k

erne

l pro

cess

,zsched

.•

The

zsched

pro

cess

ena

bles

the

zone

s su

bsys

tem

toke

ep tr

ack

of p

er-z

one

kern

el th

read

s.•

Ker

nel t

hrea

ds

doi

ng w

ork

on b

ehal

f of t

he z

one

are

owne

d b

yzsched

.

Page 348: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 11

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eF

ileS

yste

ms

The

rear

etw

om

odel

sfo

rpo

pula

ting

rootfi

lesy

stem

spac

ein

non-

glob

al z

ones

, the

spa

rse

root

mod

el a

nd th

e w

hole

roo

tm

odel

.

Page 349: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 12

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eF

ileS

yste

ms

•Sp

arse

roo

t mod

el•

The

spar

sero

otm

odel

inst

alls

am

inim

alnu

mbe

rof

files

from

the

glob

al z

one

whe

n yo

u in

itia

lize

ano

n-gl

obal

zon

e.•

File

s th

at n

eed

to b

e sh

ared

bet

wee

n a

non-

glob

alzo

ne a

nd th

e gl

obal

zon

e ar

e m

ount

ed th

roug

hre

ad-o

nly

loop

back

file

sys

tem

s.•

By

def

ault

, in

the

spar

se r

oot m

odel

, the

dir

ecto

ries

/lib

,/platform

,/sbin

, and

/usr

are

mou

nted

inth

is m

anne

r.

Page 350: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 13

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eF

ileS

yste

ms

•W

hole

roo

t mod

el•

The

who

le r

oot m

odel

pro

vid

es th

e m

axim

umco

nfigu

rabi

lity.

•A

llof

the

requ

ired

and

any

sele

cted

opti

onal

Sola

ris

pack

ages

are

inst

alle

din

toth

epr

ivat

efi

lesy

stem

sof

the

zone

.•

The

dis

k re

quir

emen

ts fo

r th

is m

odel

are

det

erm

ined

byth

ed

isk

spac

eus

edby

the

pack

ages

curr

entl

y in

stal

led

in th

e gl

obal

zon

e.

Page 351: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 14

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eN

etw

orki

ng

•E

ach

non-

glob

al z

one

that

req

uire

s ne

twor

kco

nnec

tivi

ty h

as o

ne o

r m

ore

ded

icat

ed IP

ad

dre

sses

.•

The

se a

dd

ress

es a

re a

ssoc

iate

d w

ith

logi

cal n

etw

ork

inte

rfac

es th

at c

an b

e pl

aced

in a

zon

e by

usi

ng th

eifconfig

com

man

d.

•Fo

r ex

ampl

e, if

the

prim

ary

netw

ork

inte

rfac

e in

the

glob

al z

one

isce0

, the

n th

e no

n-gl

obal

’s lo

gica

lne

twor

k in

terf

ace

mig

ht b

ece0:1

.•

Log

ical

inte

rfac

es a

re a

utom

atic

ally

ass

igne

d th

e ne

xtav

aila

ble

iden

tifi

er, f

or e

xam

ple,ce0:2

,ce0:3

.

Page 352: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 15

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eS

tate

s

As

you

confi

gure

a n

on-g

loba

l zon

e, b

ring

it in

to o

pera

tion

,us

e th

e zo

ne, r

eboo

t, or

shu

t it d

own,

the

stat

e th

at th

ezoneadm

com

man

d r

epor

ts fo

r th

at z

one

chan

ges.

The

zoneadm

com

man

d r

epor

ts th

e fo

llow

ing

zone

sta

tes:

•U

ndef

ined

•C

onfi

gure

d•

Inco

mpl

ete

•In

stal

led

•R

ead

y•

Run

ning

•Sh

utti

ng d

own

and

Dow

n

Page 353: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 16

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urin

gZ

ones

Config

urin

g a

zone

req

uire

s co

mpl

etin

g th

e fo

llow

ing

task

s:

•Id

enti

fyin

gth

eco

mpo

nent

sth

atw

illm

ake

upth

ezo

ne•

Con

figu

ring

the

zone

wit

h th

ezonecfg

com

man

d•

Ver

ifyi

ng a

nd c

omm

itti

ng th

e co

nfig

ured

zon

e

Page 354: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 17

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Iden

tifyi

ngZ

one

Com

pone

nts

Whe

n pl

anni

ng z

ones

for

your

env

iron

men

t, yo

u m

ust

cons

ider

the

com

pone

nts

that

mak

e up

eac

h zo

ne’s

confi

gura

tion

. The

se c

ompo

nent

s in

clud

e th

e fo

llow

ing:

•A

zon

e na

me

•A

pat

h to

the

zone

’s r

oot

•T

he z

one

netw

ork

inte

rfac

es•

The

file

sys

tem

s m

ount

ed in

zon

es•

The

con

figu

red

dev

ices

in z

ones

Page 355: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 18

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Allo

catin

gF

ileS

yste

mS

pace

The

rear

eno

limit

son

how

muc

hd

isk

spac

eca

nbe

cons

umed

by a

zon

e.

The

natu

reof

the

pack

ages

inst

alle

din

the

glob

alzo

neaf

fect

sth

e sp

ace

requ

irem

ents

of t

he n

on-g

loba

l zon

es th

at a

recr

eate

d.

•A

s a

gene

ral g

uid

elin

e, a

bout

100

meg

abyt

es o

f fre

ed

isk

spac

e pe

r no

n-gl

obal

zon

e us

ing

the

spar

se r

oot

mod

el is

req

uire

d.

•B

y d

efau

lt, a

ny a

dd

itio

nal p

acka

ges

inst

alle

d in

the

glob

al z

one

also

pop

ulat

e th

e no

n-gl

obal

zon

es.

Page 356: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 19

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezonecfg

Com

man

d

You

can

perf

orm

the

follo

win

g op

erat

ions

wit

hzonecfg

:

•Y

ou c

an c

reat

e or

del

ete

a zo

ne c

onfi

gura

tion

.•

You

can

ad

d r

esou

rces

to a

par

ticu

lar

conf

igur

atio

n.•

You

can

set

pro

pert

ies

for

reso

urce

s ad

ded

to a

conf

igur

atio

n.•

You

can

rem

ove

reso

urce

s fr

om a

par

ticu

lar

conf

igur

atio

n.•

You

can

que

ry o

r ve

rify

a c

onfi

gura

tion

.•

You

can

com

mit

to a

con

figu

rati

on.

•Y

ou c

an r

ever

t to

a pr

evio

us c

onfi

gura

tion

.

Page 357: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 20

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezonecfg

Com

man

d

•T

o si

mpl

ify

the

user

inte

rfac

e,zonecfg

uti

lizes

the

conc

ept o

f asc

ope.

•T

he d

efau

lt s

cope

isglobal

.•

The

zonecfg

inte

ract

ive

com

man

dpr

ompt

chan

ges

tore

flec

t the

cur

rent

sco

pe.

•Y

ou c

an u

se th

eadd

and

select

sub

com

man

ds

tose

lect

a s

peci

fic

reso

urce

, at w

hich

poi

nt th

e sc

ope

chan

ges

to th

at r

esou

rce.

•T

heend

andcancel

subc

omm

and

sca

use

the

scop

eto

reve

rt to

global

.

Page 358: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 21

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

zonecfg

Sub

com

man

ds

•Su

bcom

man

ds

wit

hin

thezonecfg

uti

lity

are

used

toco

nfig

ure

and

pro

visi

on z

ones

.•

The

zonecfg

prom

ptin

dic

ates

ifth

esc

ope

isgl

obal

oris

con

fine

d to

a p

arti

cula

r re

sour

ce.

Not

e:T

hezonecfg

subc

omm

and

sar

ed

emon

stra

ted

inth

e“Z

one

Con

figu

rati

onW

alk-

Thr

ough

”se

ctio

n,la

ter

inth

ism

odu

le.

Page 359: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 22

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

zonecfg

Res

ourc

eP

aram

eter

s

Res

ourc

e ty

pes

wit

hin

thezonecfg

uti

lity

incl

ude

the

follo

win

g:

•zonename

•zonepath

•autoboot

•pool

•fs

•inherit-pkg-dir

•net

•device

•rctl

•attr

Page 360: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 23

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

zonecfg

Res

ourc

eP

aram

eter

s

Para

met

ers

asso

ciat

ed w

ith

thefs

res

ourc

e in

clud

e th

efo

llow

ing:

•dir

•special

•raw

•type

•options

Page 361: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 24

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eC

onfig

urat

ion

Wal

k-T

hrou

gh

Tocr

eate

azo

ne,y

oum

ustl

ogin

toth

egl

obal

syst

emasroot

or a

rol

e-ba

sed

acc

ess

cont

rol (

RB

AC

)-al

low

ed u

ser.

The

follo

win

gsh

owsa

nex

ampl

eof

confi

guri

nga

zone

nam

edwork-zone

:

1 global#zonecfg -z work-zone

2 zonecfg:work-zone>create

3 zonecfg:work-zone>set zonepath=/export/work-zone

4 zonecfg:work-zone>set autoboot=true

5 zonecfg:work-zone>set pool=pool_default

6 zonecfg:work-zone>add fs

7 zonecfg:work-zone:fs>set dir=/mnt

8 zonecfg:work-zone:fs>set special=/dev/dsk/c0t0d0s7

Page 362: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 25

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eC

onfig

urat

ion

Wal

k-T

hrou

gh

9 zonecfg:work-zone:fs>set raw=/dev/rdsk/c0t0d0s7

10 zonecfg:work-zone:fs>set type=ufs

11 zonecfg:work-zone:fs> add options [logging]

12 zonecfg:work-zone:fs>end

13 zonecfg:work-zone>add inherit-pkg-dir

14 zonecfg:work-zone:inherit-pkg-dir>set dir=/opt/sfw

15 zonecfg:work-zone:inherit-pkg-dir>end

16 zonecfg:work-zone>add net

17 zonecfg:work-zone:net>set physical=ce0

18 zonecfg:work-zone:net>set address=192.168.0.1

19 zonecfg:work-zone:net>end

20 zonecfg:work-zone>add device

21 zonecfg:work-zone:device>set match=/dev/sound/*

Page 363: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 26

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Zon

eC

onfig

urat

ion

Wal

k-T

hrou

gh

22 zonecfg:work-zone:device>end

28 zonecfg:work-zone:attr>set name=comment

29 zonecfg:work-zone:attr>set type=string

30 zonecfg:work-zone:attr>set value="The work zone."

31 zonecfg:work-zone:attr>end

32 zonecfg:work-zone>verify

33 zonecfg:work-zone>commit

34 zonecfg:work-zone>exit

Page 364: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 27

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Vie

win

gth

eZ

one

Config

urat

ion

You

can

use

thezonecfg

com

man

d to

vie

w th

e zo

neco

nfigu

rati

on.

#zonecfg -z work-zone info

zonepath: /export/work-zone

autoboot: true

pool: pool_default

inherit-pkg-dir:

dir: /lib

inherit-pkg-dir:

dir: /platform

inherit-pkg-dir:

dir: /sbin

inherit-pkg-dir:

dir: /usr

...

Page 365: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 28

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezoneadm

Com

man

d

The

zoneadm

com

man

dis

the

prim

ary

tool

used

toin

stal

land

adm

inis

ter

non-

glob

al z

ones

.

Ope

rati

ons

usin

g th

ezoneadm

com

man

d m

ust b

e ru

n fr

omth

e gl

obal

zon

e.

Page 366: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 29

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezoneadm

Com

man

d

The

follo

win

g ta

sks

can

be p

erfo

rmed

usi

ng th

ezoneadm

com

man

d:

•V

erif

y a

zone

’s c

onfi

gura

tion

•In

stal

l a z

one

•B

oot a

zon

e•

Reb

oot a

zon

e•

Dis

play

info

rmat

ion

abou

t a r

unni

ng z

one

•U

nins

tall

a zo

ne

Page 367: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 30

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezoneadm

Com

man

d

•V

erif

ying

a c

onfi

gure

d z

one

You

can

veri

fya

zone

befo

reyo

uin

stal

lit

.If

you

skip

this

pro

ced

ure

,the

veri

fica

tion

isp

erfo

rmed

auto

mat

ical

lyw

hen

you

inst

all

the

zone

.global#zoneadm -z work-zone verify

Warning: /export/work-zone does not exist, so it cannot be verified. When

zoneadm install is run, install will try to create /export/work-zone, and

verify will be tried again, but the verify may fail if: the parent

directory of /export/work-zone is group- or other-writable or

/export/work-zone overlaps with any other installed zones.

Page 368: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 31

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezoneadm

Com

man

d

•In

stal

ling

a co

nfig

ured

zon

eYo

uu

seth

ezoneadm

-z

zone_name

install

com

man

dto

inst

all

ano

n-gl

obal

zone

.global#zoneadm -z work-zone install

Zon

ein

stal

lati

onta

kes

tim

eto

com

ple

te.

•B

ooti

ng a

zon

eB

ooti

nga

zone

pla

ces

the

zone

inth

eru

nnin

gst

ate.

global# zoneadm -z work-zone boot

global#zoneadm list -v

ID NAME STATE PATH

0 global running /

1 work-zone running /export/work-zone

Page 369: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 32

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezoneadm

Com

man

d

•H

alti

ng a

zon

eT

hezoneadmhalt

com

man

dis

use

dto

rem

ove

both

the

app

licat

ion

envi

ronm

enta

ndth

evi

rtu

alp

latf

orm

for

azo

ne.

global#zoneadm -z work-zone halt

global#zoneadm list -v

ID NAME STATE PATH

0 global running /

- work-zone installed /export/work-zone

•R

eboo

ting

a z

one

The

zoneadm

reboot

com

man

dis

use

dto

rebo

ota

zone

.global#zoneadm -z work-zone reboot

Page 370: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 33

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezoneadm

Com

man

d

•L

oggi

ng in

to th

e zo

ne c

onso

leA

fter

you

boot

the

zone

for

the

firs

tti

me,

itis

imp

orta

ntto

conn

ect

toth

ezo

ne’s

virt

ual

cons

ole

and

com

ple

teth

ezo

ne’s

syst

emid

enti

fica

tion

befo

reyo

uca

nbe

gin

usi

ngth

ezo

ne.

Use

thezlogin

com

man

dw

ith

the-C

opti

on.

global#zlogin -C work-zone

The

firs

tti

me

that

you

conn

ect

toth

ezo

ne’s

virt

ual

cons

ole,

the

syst

emid

enti

fica

tion

pro

cess

star

tsau

tom

atic

ally

.T

he~.

(tild

ed

ot)

char

acte

rse

quen

cete

rmin

ates

the

cons

ole

conn

ecti

on.

Page 371: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 34

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngth

ezoneadm

Com

man

d

•D

elet

ing

a zo

neT

hefo

llow

ingzoneadm

exam

ple

rem

oves

azo

ne:

#zoneadm list -cp

0:global:running:/

3:work-zone:running:/export/work-zone

#zoneadm -z work-zone halt

#zoneadm list -cp

0:global:running:/

-:work-zone:installed:/zones/work-zone

#zoneadm -z work-zone uninstall

Are you sure you want to uninstall zone work-zone (y/[n])?y

#zoneadm list -cp

0:global:running:/

-:work-zone:configured:/export/work-zone

#zonecfg -z work-zone delete

Are you sure you want to delete zone work-zone (y/[n])?y

#zoneadm list -cp

0:global:running:/

Page 372: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 35

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gP

acka

ges

inZ

ones

The

stan

dar

dSo

lari

spac

kage

man

agem

entt

ools

,for

exam

ple,

pkgadd

and

pkgrm

, are

use

d to

ad

min

iste

r pa

ckag

es in

the

zone

s en

viro

nmen

t.

Pack

age

para

met

ers

liste

d in

thepkginfo

file

for

a pa

ckag

eco

ntro

l how

the

Sola

ris

pack

age

tool

s ca

n ad

min

iste

r th

epa

ckag

e.

Cur

rent

ly, t

hree

pac

kage

par

amet

ers

cont

rol h

ow p

acka

ges

are

adm

inis

tere

d. T

hey

are

as fo

llow

s:

•SUNW_PKG_ALLZONES

•SUNW_PKG_HOLLOW

•SUNW_PKG_THISZONE

Page 373: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 36

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gP

acka

ges

inZ

ones

You

can

list p

aram

eter

s fo

r pa

ckag

es u

sing

thepkgparam

com

man

d.

#pkgparam -v SUNWzoneu

CLASSES='none'

BASEDIR='/'

LANG='C'

(output omitted)

EMAIL=''

SUNW_PKGVERS='1.0'

SUNW_PKG_ALLZONES='true'

SUNW_PKG_HOLLOW='false'

PSTAMP='gaget20050121155950'

PKGINST='SUNWzoneu'

PKGSAV='/var/sadm/pkg/SUNWzoneu/save'

INSTDATE='Jan 26 2005 10:21'

Page 374: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 37

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gP

acka

ges

inZ

ones

•T

he-G

opt

ion

to th

epkgadd

com

man

d c

ause

spkgadd

to a

dd

a p

acka

ge to

the

curr

ent z

one

only

.•

Pack

age

oper

atio

ns p

ossi

ble

in th

e gl

obal

zon

eIf

the

pac

kage

isno

tcu

rren

tly

inst

alle

din

the

glob

alzo

nean

dno

tcu

rren

tly

inst

alle

din

any

non-

glob

alzo

ne,t

hep

acka

geca

nbe

inst

alle

dac

cord

ing

toth

efo

llow

ing

guid

elin

es:

•O

nly

in th

e gl

obal

zon

e, if

SUNW_PKG_ALLZONES=false

•In

the

glob

al z

one

and

all

non-

glob

al z

ones

Page 375: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 38

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gP

acka

ges

inZ

ones

Ifth

epa

ckag

eis

curr

entl

yin

stal

led

inth

egl

obal

zone

only

,the

follo

win

g gu

idel

ines

app

ly:

•T

he p

acka

ge c

an b

e in

stal

led

in a

ll no

n-gl

obal

zon

es.

•T

he p

acka

ge c

an b

e re

mov

ed fr

om th

e gl

obal

zon

e.

Page 376: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 39

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gP

acka

ges

inZ

ones

If a

pac

kage

is c

urre

ntly

inst

alle

d in

the

glob

al z

one

and

curr

entl

y in

stal

led

in o

nly

a su

bset

of t

he n

on-g

loba

l zon

es,

the

follo

win

g gu

idel

ines

app

ly:

•SUNW_PKG_ALLZONES

mus

t be

set t

ofalse

.•

The

pac

kage

can

be

inst

alle

d in

all

non-

glob

al z

ones

.E

xist

ing

inst

ance

sin

any

non-

glob

alzo

near

eup

dat

edto

the

revi

sion

bei

ng in

stal

led

.•

The

pac

kage

can

be

rem

oved

from

the

glob

al z

one.

•T

hepa

ckag

eca

nbe

rem

oved

from

the

glob

alzo

nean

dfr

om a

ll no

n-gl

obal

zon

es.

Page 377: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 40

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gP

acka

ges

inZ

ones

If a

pac

kage

is c

urre

ntly

inst

alle

d in

the

glob

al z

one

and

curr

entl

yin

stal

led

inal

lnon

-glo

balz

ones

,the

pack

age

can

bere

mov

edfr

omth

egl

obal

zone

and

from

alln

on-g

loba

lzon

es.

The

se r

ules

ens

ure

the

follo

win

g:

•Pa

ckag

esth

atar

ein

stal

led

inth

egl

obal

zone

are

eith

erin

stal

led

in th

e gl

obal

zon

e on

ly, o

r in

stal

led

in th

egl

obal

zon

e an

d a

ll no

n-gl

obal

zon

es.

•Pa

ckag

es th

at a

re in

stal

led

in th

e gl

obal

zon

e an

d a

lso

inst

alle

din

any

non-

glob

alzo

near

eth

esa

me

acro

ssal

lzo

nes.

Page 378: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 41

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gP

acka

ges

inZ

ones

•If

apa

ckag

eis

notc

urre

ntly

inst

alle

din

the

non-

glob

alzo

ne, t

he p

acka

ge c

an b

e in

stal

led

onl

y if

SUNW_PKG_ALLZONES=false

.•

If a

pac

kage

is c

urre

ntly

inst

alle

d in

the

non-

glob

alzo

ne, t

he fo

llow

ing

guid

elin

es a

pply

:•

The

pac

kage

can

be

inst

alle

d o

ver

the

exis

ting

inst

ance

of t

he p

acka

ge o

nly

ifSUNW_PKG_ALLZONES=false

.•

The

pac

kage

can

be

rem

oved

from

the

non-

glob

alzo

ne o

nly

ifSUNW_PKG_ALLZONES=false

.

Page 379: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 42

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Upg

radi

ngS

olar

is10

OS

With

Inst

alle

dN

on-G

loba

lZon

es

The

nor

mal

upg

rad

e pa

th fr

om S

olar

is 1

0 to

Sol

aris

10

01/

06is

not

ava

ilabl

e if

inst

alle

d z

ones

are

pre

sent

. The

re a

re th

ree

opti

ons:

•U

nins

tall

the

zone

s, u

pgra

de

the

OS,

and

rei

nsta

ll th

ezo

nes.

•R

eins

tall

the

enti

re O

S fr

om a

n in

itia

l ins

tall,

wit

h th

elo

ss o

f exi

stin

g zo

nes

conf

igur

atio

n.•

Use

the

new

feat

ures

of S

olar

is 1

0 up

dat

e 01

/06

toup

grad

e th

e O

S an

d a

ny in

stal

led

zon

es.

Page 380: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 43

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sol

aris

Inst

allM

edia

Sup

port

•T

he n

ew u

pgra

de

met

hod

for

Sola

ris

10 u

pdat

e 01

/06

is o

nly

avai

labl

e on

the

DV

D m

edia

.•

If n

o D

VD

rea

der

is a

vaila

ble,

a n

etw

ork

inst

alla

tion

mus

t be

used

.

Page 381: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 44

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Upg

radi

ngth

eS

olar

is10

OS

•B

oot t

he s

yste

m to

be

inst

alle

d.

ok

boot

net

-install

•Se

lect

Sta

ndar

d in

stal

l.•

Cho

ose

Upg

rad

e op

tion

.•

If in

stal

led

zon

es a

re p

rese

nt, t

he u

pgra

de

cont

inue

sw

ith

the

new

met

hod

.

Page 382: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 15

, slid

e 45

of 4

5C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

ngC

usto

mJu

mps

tart

•C

usto

m ju

mps

tart

can

be

used

to u

pgra

de

Sola

ris

10up

dat

e 01

/06

wit

h in

stal

led

zon

es.

•O

nly

two

prof

ile k

eyw

ord

s sh

ould

be

used

:•

install_type

•root_device

•O

ther

keyw

ord

swill

beig

nore

dor

will

caus

eju

mps

tart

to fa

il.•

Igno

red

:cluster,geo

,locale

,package

,patch

•C

ause

s fa

ilure

:backup_media

,layout_constraint

Page 383: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

16

Des

crib

ing

the

Cus

tom

Jum

pSta

rt™

Con

figur

atio

ns

Page 384: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 2

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

the

Jum

pSta

rt c

onfi

gura

tion

s•

Impl

emen

t a b

asic

Jum

pSta

rt s

erve

r•

Set u

p Ju

mpS

tart

con

figu

rati

on a

lter

nati

ves

•T

roub

lesh

oot t

he Ju

mpS

tart

con

figu

rati

ons

•C

onfi

gure

a n

amin

g se

rvic

e to

sup

port

Jum

pSta

rt

Page 385: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 3

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Jum

pSta

rt™

Sof

twar

eC

onfig

urat

ions

Jum

pSta

rt s

oftw

are

is a

n au

tom

atic

inst

alla

tion

pro

cess

avai

labl

e in

the

Sola

ris

10 O

S.

Jum

pSta

rt s

oftw

are

enab

les

you

to in

stal

l the

Sol

aris

OS

auto

mat

ical

ly a

nd c

onfig

ure

it d

iffe

rent

ly, d

epen

din

g on

the

char

acte

rist

ics

of c

lient

sys

tem

s.

Jum

pSta

rt s

oftw

are

uses

thes

e id

enti

fyin

g ch

arac

teri

stic

s to

sele

ct th

e co

rrec

t config

urat

ion

for

each

clie

nt s

yste

m.

Page 386: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 4

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Pur

pose

ofJu

mpS

tart

Sof

twar

e

The

ad

vant

ages

of u

sing

Jum

pSta

rt s

oftw

are

incl

ude

the

follo

win

g:

•It

lets

sys

tem

ad

min

istr

ator

s av

oid

the

leng

thy

ques

tion

-and

-ans

wer

ses

sion

that

is p

art o

f the

inte

ract

ive

inst

alla

tion

pro

cess

.•

It le

ts s

yste

m a

dm

inis

trat

ors

inst

all d

iffe

rent

type

s of

syst

ems

easi

ly.

•It

allo

ws

auto

mat

icin

stal

lati

onof

the

Sola

ris

10O

San

dun

bund

led

sof

twar

e.•

It s

impl

ifie

s ad

min

istr

atio

n ta

sks

whe

n w

idel

y us

edap

plic

atio

ns m

ust b

e up

dat

ed fr

eque

ntly

.

Page 387: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 5

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Pur

pose

ofJu

mpS

tart

Sof

twar

e

Four

mai

n se

rvic

es s

uppo

rt th

e so

ftw

are

inst

alla

tion

pro

cess

usin

g Ju

mpS

tart

sof

twar

e:

•B

oot s

ervi

ces

•Id

enti

fica

tion

ser

vice

s•

Con

figu

rati

on s

ervi

ces

•In

stal

lati

on s

ervi

ces

Page 388: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 6

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Boo

tSer

vice

s

•T

obo

otth

ecl

ient

usin

gJu

mpS

tart

soft

war

e(J

umpS

tart

clie

nt)u

sing

the

netw

ork,

clie

nts

requ

ire

supp

ortf

rom

a se

rver

that

can

res

pond

to th

eir

Rev

erse

Ad

dre

ssR

esol

utio

n Pr

otoc

ol (R

AR

P), T

rivi

al F

ile T

rans

fer

Prot

ocol

(TFT

P), a

nd B

OO

TPA

RA

MS

requ

ests

.•

A s

yste

m th

at p

rovi

des

thes

e se

rvic

es is

cal

led

a b

oot

serv

er.

•Y

ou c

an c

onfi

gure

a b

oot s

erve

r to

pro

vid

e an

y of

the

othe

r re

quir

ed Ju

mpS

tart

sof

twar

e se

rvic

es, o

r to

onl

ypr

ovid

e bo

ot s

ervi

ces.

Page 389: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 7

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Boo

tSer

vice

s

For

boot

ope

rati

ons

to p

roce

ed, t

he fo

llow

ing

mus

t be

prop

erly

config

ured

on

the

boot

ser

ver:

•T

he/etc/ethers

file

•T

he/etc/inet/hosts

file

•T

he/tftpboot

dir

ecto

ry•

The

/etc/bootparams

file

•T

he/etc/dfs/dfstab

file

•T

he T

FTP

serv

ice

inSMF/INETD

Page 390: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 8

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Iden

tifica

tion

Ser

vice

s

•Ju

mpS

tart

clie

nts

requ

ire

supp

ort f

rom

a s

erve

r to

auto

mat

ical

ly g

et th

e an

swer

s to

sys

tem

iden

tifi

cati

onqu

esti

ons

that

the

clie

nt s

yste

ms

issu

e.•

The

iden

tifi

cati

on s

ervi

ce is

oft

en p

rovi

ded

by

a bo

otse

rver

,but

the

serv

ice

can

bepr

ovid

edby

any

netw

ork

serv

er c

onfi

gure

d to

pro

vid

e id

enti

fica

tion

.•

Con

figu

ring

ase

rver

topr

ovid

eid

enti

fica

tion

serv

ices

is, f

or th

e m

ost p

art,

a m

anua

l pro

cess

.

Page 391: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 9

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Iden

tifica

tion

Ser

vice

s

Jum

pSta

rt c

lient

s ca

n ob

tain

iden

tific

atio

n in

form

atio

n fr

omd

iffe

rent

sou

rces

, inc

lud

ing

the

follo

win

g:

•T

he/etc/inet/hosts

file

on

the

boot

ser

ver

•T

hesysidcfg

file

•A

nam

e se

rvic

e, s

uch

as th

e fo

llow

ing:

•N

IS (N

etw

ork

Info

rmat

ion

Serv

ice)

•N

IS+

(Net

wor

k In

form

atio

n Se

rvic

e Pl

us)

•L

DA

P (L

ight

wei

ght D

irec

tory

Acc

ess

Prot

ocol

)

Page 392: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 10

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urat

ion

Ser

vice

s

•Ju

mpS

tart

clie

nts

requ

ire

supp

ort f

rom

a s

erve

r to

obta

inan

swer

sfo

rsys

tem

conf

igur

atio

nqu

esti

ons

that

they

issu

e.•

A s

yste

m th

at p

rovi

des

this

ser

vice

is c

alle

d a

conf

igur

atio

n se

rver

.•

On

the

conf

igur

atio

nse

rver

,file

skn

own

aspr

ofile

file

sst

ore

the

conf

igur

atio

n in

form

atio

n.•

A fi

le c

alle

drules.ok

on

the

conf

igur

atio

n se

rver

allo

wsJ

umpS

tart

clie

ntst

ose

lect

anap

prop

riat

epr

ofile

file

.

Page 393: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 11

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Config

urat

ion

Ser

vice

s

A c

onfig

urat

ion

serv

er p

rovi

des

info

rmat

ion

that

spe

cifi

esho

wth

eSo

lari

sOpe

rati

ngSy

stem

inst

alla

tion

proc

eed

son

the

Jum

pSta

rt c

lient

.

Config

urat

ion

info

rmat

ion

can

incl

ude

the

follo

win

g:

•In

stal

lati

on ty

pe•

Syst

em ty

pe•

Dis

k pa

rtit

ioni

ng a

nd fi

le s

yste

m s

peci

fica

tion

s•

Con

figu

rati

on c

lust

er s

elec

tion

•So

ftw

are

pack

age

add

itio

ns o

r d

elet

ions

Page 394: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 12

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Ass

ocia

ting

aC

onfig

urat

ion

With

aC

lient

A c

onfig

urat

ion

serv

er s

hare

s a

dir

ecto

ry, f

or e

xam

ple,

the

/export/config

dir

ecto

ry, t

hat m

inim

ally

con

tain

s th

efo

llow

ing fil

es:

•T

herules

file

•T

he p

rofi

le (c

lass

) file

s•

The

check

scr

ipt

•T

herules.ok

file

•O

ptio

nal b

egin

and

fini

sh s

crip

ts

Page 395: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 13

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

alla

tion

Ser

vice

s

•Ju

mpS

tart

clie

nts

requ

ire

supp

ortf

rom

ase

rver

tofi

ndan

imag

e of

the

Sola

ris

OS

to in

stal

l.•

A s

yste

m th

at p

rovi

des

this

ser

vice

is c

alle

d a

n in

stal

lse

rver

.•

An

inst

all s

erve

r sh

ares

a S

olar

is O

S im

age

from

aC

D-R

OM

, DV

D, o

r lo

cal d

isk.

•Ju

mpS

tart

clie

nts

use

the

NFS

ser

vice

to m

ount

the

inst

alla

tion

imag

e d

urin

g th

e in

stal

lati

on p

roce

ss.

Page 396: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 14

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

alla

tion

Ser

vice

s

•So

urce

s of

the

oper

atin

g sy

stem

imag

eA

nin

stal

lse

rver

pro

vid

esth

eSo

lari

sO

per

atin

gSy

stem

imag

eby

shar

ing

one

ofth

efo

llow

ing:

•T

he S

olar

is 1

0 O

S So

ftw

are

1 C

D-R

OM

•T

he S

olar

is 1

0 O

S So

ftw

are

DV

D•

Asp

oole

dim

age

ofth

eSo

lari

s10

Ope

rati

ngSy

stem

obta

ined

from

eit

her

the

CD

-RO

M o

r D

VD

med

ia•

A F

lash

inst

alla

tion

imag

e

Page 397: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 15

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Impl

emen

ting

aB

asic

Jum

pSta

rtS

erve

rA

Jum

pSta

rt s

erve

r co

nfigu

rati

on in

clud

es th

e fo

llow

ing:

•A

sin

gle

serv

er th

at p

rovi

des

boo

t, id

enti

fica

tion

,co

nfig

urat

ion,

and

inst

alla

tion

ser

vice

s•

Boo

t and

inst

alla

tion

ser

vice

s pr

ovid

ed b

y th

e So

lari

s10

OS

boot

and

inst

alla

tion

imag

essp

oole

dto

the

loca

ld

isk

of th

e se

rver

•Id

enti

fica

tion

ser

vice

s pr

ovid

ed b

y fi

les

on th

e se

rver

and

asysidcfg

file

, wit

h no

nam

e se

rvic

e in

pla

ce•

Con

figu

rati

on s

ervi

ces

prov

ided

by

a ru

les

file

that

cont

ains

an

entr

y fo

r a

sing

le Ju

mpS

tart

clie

nt, a

nd a

prof

ile fi

le th

at in

stal

ls th

e en

tire

Sol

aris

10

OS

dis

trib

utio

n in

to a

sin

gle

slic

e on

the

Jum

pSta

rt c

lient

Page 398: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 16

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Impl

emen

ting

aB

asic

Jum

pSta

rtS

erve

r

The

follo

win

g ta

sks

are

requ

ired

to c

onfig

ure

a si

ngle

Jum

pSta

rt s

erve

r to

pro

vid

e ba

sic

soft

war

e in

stal

lati

onse

rvic

es u

sing

Jum

pSta

rt:

1.Sp

ool

the

oper

atin

gsy

stem

imag

e.2.

Ed

itth

esysidcfg

file

.3.

Ed

itth

erules

andprofile

file

s.4.

Ru

nth

echeck

scri

pt.

5.R

un

theadd_install_client

scri

pt.

6.B

oot

the

clie

nt.

Page 399: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 17

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Spo

olin

gth

eO

pera

ting

Sys

tem

Imag

e

Spoo

ling

the

Sola

ris

OS

boot

and

inst

alla

tion

imag

eto

dis

kis

the

mos

tcom

mon

met

hod

ofsu

pply

ing

boot

and

inst

alla

tion

serv

ices

to Ju

mpS

tart

clie

nts.

You

can

spoo

l the

boo

t im

age

and

inst

alla

tion

imag

e to

dif

fere

nt s

erve

rs.

Whe

n yo

u us

e th

e So

lari

s 10

CD

-RO

M s

ourc

e m

edia

, you

mus

t use

thesetup_install_server

scr

ipt t

o sp

ool t

heSo

lari

s 10

OS

imag

e fr

om th

e So

lari

s 10

OS

Soft

war

e 1

CD

-RO

M. Y

ou m

ust a

lso

use

theadd_to_install_server

scri

pt to

spo

ol th

e So

lari

s 10

OS

imag

e fr

om th

e re

mai

ning

CD

-RO

Ms.

Page 400: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 18

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Spo

olin

gth

eO

pera

ting

Sys

tem

Imag

e

To s

pool

the

Sola

ris

10 O

S bo

ot a

nd in

stal

lati

on im

ages

to a

loca

l dis

k, c

ompl

ete

the

follo

win

g st

eps:

1.C

reat

ea

dir

ecto

ryw

ith

atle

ast

5G

byte

sof

spac

eav

aila

ble

toho

ldth

eSo

lari

sO

Sim

age.

Con

vent

iona

llyth

e/export/install

dir

ecto

ryis

use

d.

2.In

sert

the

Sola

ris

10O

SSo

ftw

are

1C

D-R

OM

inth

eC

D-R

OM

dri

veor

the

Sola

ris

10O

SD

VD

inth

eD

VD

dri

ve.

3.C

hang

eth

ed

irec

tory

toth

elo

cati

onof

the

setup_install_server

scri

pt.

#cd /cdrom/cdrom0/s0/Solaris_10/Tools

Page 401: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 19

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Spo

olin

gth

eO

pera

ting

Sys

tem

Imag

e

4.R

un

thesetup_install_server

scri

pt.

# ./setup_install_server /export/install

5.W

hen

thesetup_install_server

scri

pt

fini

shes

,ch

ange

the

dir

ecto

ryto

root

(/),

and

ejec

tth

eC

D-R

OM

orD

VD

.6.

Ifyo

uu

seC

D-R

OM

med

ia,i

nser

tth

eSo

lari

s10

OS

Soft

war

e2

CD

-RO

Min

the

CD

-RO

Md

rive

.7.

Cha

nge

the

dir

ecto

ryto

the

loca

tion

ofth

eadd_to_install_server

scri

pt.

#cd /cdrom/cdrom0/Solaris_10/Tools

Page 402: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 20

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Spo

olin

gth

eO

pera

ting

Sys

tem

Imag

e

8.R

un

theadd_to_install_server

scri

pt.

#./add_to_install_server /export/install

9.W

henadd_to_install_server

fini

shes

,cha

nge

the

dir

ecto

ryto

root

(/)

and

ejec

tth

eC

D-R

OM

.10

.Rep

eat

step

6fo

rth

ere

mai

ning

CD

-RO

Ms.

The

sam

e pr

oced

ure

is u

sed

if th

e L

angu

age

CD

-RO

M is

requ

ired

.

Page 403: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 21

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

thesysidcfg

File

Jum

pSta

rt c

lient

s us

e in

form

atio

n in

thesysidcfg

file

toan

swer

iden

tific

atio

n qu

esti

ons.

If th

e Ju

mpS

tart

clie

nt c

anno

t obt

ain

a re

spon

se fo

r an

iden

tific

atio

n qu

esti

on, t

he c

lient

inte

rrup

ts th

e au

tom

atic

iden

tific

atio

n pr

oces

s an

d a

sks

for

the

info

rmat

ion.

The

sysidcfg

file

can

con

tain

the

follo

win

g:

•Id

enti

fica

tion

info

rmat

ion

that

allJ

umpS

tart

clie

nts

can

use

•In

form

atio

n th

at is

clie

nt-s

peci

fic

Page 404: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 22

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

thesysidcfg

File

•L

ocat

ing

thesysidcfg

file

The

sysidcfg

file

cann

otbe

give

nan

yot

her

nam

e.Fo

rex

amp

le,y

ouw

ould

crea

tea

gene

ricsysidcfg

file

inth

e/export/config

dir

ecto

ryon

aJu

mp

Star

tse

rver

.T

hesysidcfg

file

sth

atco

ntai

ncl

ient

-sp

ecif

icin

form

atio

nm

ust

exis

tin

sep

arat

ed

irec

tori

es.

Whe

nyo

uru

nth

eadd_install_client

scri

pt

onth

ebo

otse

rver

,use

the-p

opti

on,a

ndsp

ecif

yth

ese

rver

and

pat

hw

here

thesysidcfg

file

isst

ored

.#./add_install_client -c server1:/export/config -p

server1:/export/config client1 sun4u

Page 405: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 23

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

thesysidcfg

File

•C

onst

ruct

ing

thesysidcfg

file

Ent

ries

inth

esysidcfg

file

mu

stco

nfor

mto

the

follo

win

gru

les:

•In

dep

end

ent k

eyw

ord

s ca

n be

list

ed in

any

ord

er.

•K

eyw

ord

s ar

e no

t cas

e se

nsit

ive.

•K

eyw

ord

valu

esca

nbe

opti

onal

lyen

clos

edin

sing

le(’

) or

dou

ble

(") q

uota

tion

mar

ks.

•D

epen

den

t key

wor

d v

alue

s m

ust b

e en

clos

ed in

curl

y br

aces

({}

) to

tie

them

to th

eir

asso

ciat

edin

dep

end

ent k

eyw

ord

.•

Onl

y th

e fi

rst i

nsta

nce

of a

key

wor

d is

val

id.

Page 406: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 24

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

thesysidcfg

File

•K

eyw

ord

s an

d a

rgum

ents

use

d in

con

stru

ctin

g th

esysidcfg

file

:•

name_service {domain_name}

•network_interface

,hostname

,ip_address

,netmask

•root_password

•security_policy

•system_locale

•terminal

•timezone

•timeserver

Page 407: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 25

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

thesysidcfg

File

An

exam

plesysidcfg

file

:

network_interface=hme0 { primary

protocol_ipv6=no

netmask=netmask_value

default_route=router_IP}

security_policy=none

name_service=none

timezone=timezone

system_locale=locale

timeserver=timeserver_IP

root_password=Hx23475vABDDM

Page 408: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 26

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

therules

and

Profil

eF

iles

•T

opr

ovid

eco

nfig

urat

ion

serv

ices

,the

Jum

pSta

rtse

rver

prov

ides

arules.ok

file

that

allo

ws

the

Jum

pSta

rtcl

ient

to s

elec

t a p

rofi

le fi

le.

•T

herules.ok

file

ena

bles

gro

ups

of c

lient

s w

ith

the

sam

e ch

arac

teri

stic

s to

be

grou

ped

toge

ther

as

a cl

ass.

Con

sequ

entl

y, th

e pr

ofile

file

is fr

eque

ntly

ref

erre

d to

as th

e cl

ass

file

.•

The

pro

file

file

mus

t con

tain

all

the

info

rmat

ion

norm

ally

pro

vid

ed d

urin

g in

tera

ctiv

e in

stal

lati

onab

out t

he d

isk

part

itio

ning

and

the

soft

war

e se

lect

ion

for

the

Jum

pSta

rt c

lient

.

Page 409: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 27

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

therules

and

Profil

eF

iles

•E

ach

entr

y in

therules.ok

file

list

s on

e or

mor

eid

enti

fyin

g ch

arac

teri

stic

s th

at Ju

mpS

tart

clie

nts

can

mat

ch.

•W

hen

a cl

ient

find

s an

ent

ry in

rules.ok

that

itm

atch

es, i

t use

s th

e pr

ofile

ass

ocia

ted

wit

h th

at e

ntry

.•

The

rules.ok

file

is g

ener

ated

from

therules

file

.•

The

rules

file

syn

tax

Ent

ries

inth

erules

file

conf

orm

toth

efo

llow

ing

synt

ax:

[!] match_key match_value [&& [!] match_key match_value]* \

begin profile finish

Page 410: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 28

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

therules

and

Profil

eF

iles

•T

he e

xam

plerules

file

:hostname

client1

-profile1

-

cau

ses

aJu

mp

Star

tcl

ient

calle

dclient1

tou

sea

pro

file

file

calle

dprofile1

.T

hed

ash

(-)

char

acte

rbe

fore

and

afte

rth

eprofile1

file

ind

icat

eth

atth

eclient1

syst

emd

oes

not

run

abe

gin

ora

fini

shsc

rip

t.•

Usu

ally

,the

/export/config

dir

ecto

ryho

lds

the

rule

sfi

le.

Page 411: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 29

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Edi

ting

therules

and

Profil

eF

iles

A s

impl

e pr

ofile

file

can

con

tain

the

follo

win

g in

form

atio

n:

install_type initial_install

system_type standalone

partitioning explicit

filesys c0t0d0s0 free /

filesys c0t0d0s1 512 swap

cluster SUNWCXall

package SUNWman delete

Page 412: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 30

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Run

ning

thecheck

Scr

ipt

•B

efor

e a

Jum

pSta

rt c

lient

can

use

a c

onfi

gura

tion

prov

ided

by

a Ju

mpS

tart

ser

ver,

you

mus

t run

the

check

scr

ipt t

o pr

oduc

e th

e fi

le c

alle

drules.ok

.•

The

check

scr

ipt v

alid

ates

the

synt

ax o

f the

rules

file

and

the

prof

ile fi

les.

•If

the

valid

atio

n co

mpl

etes

suc

cess

fully

, the

check

scri

pt c

reat

es th

erules.ok

file

.#cd /export/config

#./check

Validating rules...

Validating profile profile1...

The custom JumpStart configuration is ok.

#

Page 413: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 31

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Run

ning

theadd_install_client

Scr

ipt

•T

headd_install_client

scr

ipt c

onfi

gure

s th

e bo

otse

rver

to p

rovi

de

the

netw

ork

boot

ser

vice

s th

atJu

mpS

tart

clie

nts

requ

ire.

•O

ptio

nsto

theadd_install_client

scri

ptal

sole

tyou

spec

ify

wha

t ser

vers

and

wha

t dir

ecto

ries

off

erid

enti

fica

tion

, con

figu

rati

on, a

nd in

stal

lati

on s

ervi

ces.

•B

efor

eyo

uru

nth

eadd_install_clientscript

,ed

itth

e/etc/inet/hosts

and

/etc/ethers

file

s on

the

boot

ser

ver,

and

ad

d a

Jum

pSta

rt c

lient

ent

ry to

eac

hfi

le.

Page 414: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 32

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Run

ning

theadd_install_client

Scr

ipt

The

add_install_client

scr

ipt o

ptio

ns a

nd a

rgum

ents

mus

t mat

ch h

ow y

ou h

ave

confi

gure

d th

e se

rvic

es o

n th

ese

rver

s th

at y

ou in

tend

to u

se.

Run

theadd_install_client

scr

ipt o

nly

on th

e se

rver

that

prov

ides

the

boot

imag

e.

You

mus

t run

theadd_install_client

scr

ipt o

nce

for

each

Jum

pSta

rt c

lient

.

Page 415: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 33

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Run

ning

theadd_install_client

Scr

ipt

For

this

bas

ic Ju

mpS

tart

config

urat

ion

proc

edur

e, th

eadd_install_client

scr

ipt r

equi

res

the

follo

win

g:

•T

he s

erve

r an

d p

ath

whe

re th

e ru

les

and

pro

file

file

sar

e lo

cate

d (t

he-c

opt

ion)

•T

hese

rver

and

path

whe

reth

esysidcfg

file

islo

cate

d(t

he-p

opt

ion)

•T

he in

stal

lati

on s

erve

r•

The

nam

e of

the

clie

nt•

The

ker

nel a

rchi

tect

ure

of th

e cl

ient

Page 416: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 34

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Run

ning

theadd_install_client

Scr

ipt

•A

nadd_install_client

scr

ipt e

xam

ple:

#cd /export/install/Solaris_10/Tools

#./add_install_client -c server1:/export/config -p

server1:/export/config client1 sun4u

•T

headd_install_client

scri

ptau

tom

atic

ally

mak

esth

e ch

ange

s re

quir

ed to

sup

port

RA

RP,

TFT

P, th

ebootparams

file

,and

NFS

requ

ests

from

the

clie

nt,b

utit

onl

y ca

uses

the

serv

er to

sha

re th

e in

stal

lati

ond

irec

tory

.•

You

mus

tman

ually

edit

the/etc/dfs/dfstab

file

and

add

an

entr

y to

sha

re th

e co

nfig

urat

ion

dir

ecto

ry. F

orex

ampl

e:share -o ro /export/config

Page 417: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 35

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Run

ning

theadd_install_client

Scr

ipt

•R

unth

esvcs

com

man

dto

chec

kth

atN

FSse

rvic

esar

een

able

d o

n th

e Ju

mpS

tart

ser

ver.

•U

seth

esvcadm

com

man

dto

enab

leth

eN

FSse

rvic

es,i

fre

quir

ed, o

n th

e Ju

mpS

tart

ser

ver:

#svcadm enable network/nfs/server:default

•V

erif

y th

at th

e/export/config

and

/export/

install

dir

ecto

ries

are

cur

rent

ly s

hare

d b

y th

eJu

mpS

tart

ser

ver.

#share

- /export/install ro,anon=0 ""

- /export/config ro ""

Page 418: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 36

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Boo

ting

the

Jum

pSta

rtC

lient

Aft

erth

eJu

mpS

tart

serv

erha

sbe

enco

nfigu

red

topr

ovid

eal

lof

the

requ

ired

ser

vice

s, y

ou c

an in

itia

te th

e in

stal

lati

onpr

oces

s on

the

Jum

pSta

rt c

lient

.

To b

oot t

he Ju

mpS

tart

clie

nt, c

ompl

ete

the

follo

win

g st

eps:

1.B

ring

the

Jum

pSt

art

clie

ntto

run

stat

e0.

#init 0

2.B

oot

the

clie

ntto

init

iate

the

soft

war

ein

stal

lati

onu

sing

Jum

pSt

art.

okboot net - install nowin

Page 419: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 37

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Set

ting

Up

Jum

pSta

rtS

oftw

are

Config

urat

ion

Alte

rnat

ives

Jum

pSta

rt s

uppo

rts

a ra

nge

of a

lter

nati

ve s

erve

r an

d c

lient

confi

gura

tion

s. F

or e

xam

ple,

you

can

do

the

follo

win

g:

•Se

t up

all J

umpS

tart

ser

vice

s on

a s

ingl

e se

rver

•C

onfi

gure

one

ser

ver

per

subn

et to

pro

vid

e bo

otse

rvic

es s

epar

atel

y fr

om th

e ot

her

Jum

pSta

rt s

ervi

ces

•C

onfi

gure

boo

t, id

enti

fica

tion

, con

figu

rati

on, a

ndin

stal

lati

on s

ervi

ces

on s

epar

ate

serv

ers

•C

onfi

gure

beg

in s

crip

ts a

nd fi

nish

scr

ipts

to fu

rthe

rcu

stom

ize

soft

war

e in

stal

lati

on o

n Ju

mpS

tart

clie

nts

•C

onfi

gure

a n

ame

serv

ice

to p

rovi

de

iden

tifi

cati

onin

form

atio

n

Page 420: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 16

, slid

e 38

of 3

8C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

gR

AID

-1V

olum

esU

sing

the

Profil

eF

ile

•T

hefilesys

keyw

ord

can

beus

edin

the

prof

ilefi

leto

crea

te R

AID

-1 v

olum

es o

n th

e cl

ient

sys

tem

.•

The

follo

win

g ex

ampl

e cr

eate

s a

mir

ror

calle

dd12

cons

isti

ng o

f tw

o co

mpo

nent

s: s

licec0t0d0s0

and

c1t3d0s0

.The

size

ofth

em

irro

ris8

50M

byte

sand

root

(/) i

s us

ed a

s th

e m

ount

poi

nt fo

r th

e ro

ot fi

le s

yste

m.

filesys

mirror:d12

c0t0d0s0

c1t3d0s0

850

/

•If

you

do

not s

peci

fy a

nam

e fo

r th

e m

irro

r, o

ne is

auto

mat

ical

ly p

rovi

ded

.

Page 421: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

m

Mod

ule

17

Per

form

ing

a F

lash

Inst

alla

tion

Page 422: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 2

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Obj

ectiv

es

•D

escr

ibe

the

Flas

h in

stal

lati

on fe

atur

e•

Man

ipul

ate

a Fl

ash

arch

ive

•U

se a

Fla

sh a

rchi

ve fo

r in

stal

lati

on•

WA

Nbo

ot F

lash

inst

alla

tion

Page 423: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 3

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

The

Fla

shIn

stal

latio

nF

eatu

re

The

Flas

hin

stal

lati

onfe

atur

ele

tsyo

ucr

eate

asi

ngle

refe

renc

ein

stal

lati

onof

the

Sola

ris

10O

Son

am

aste

rsy

stem

,and

then

repl

icat

e th

e in

stal

lati

on o

n ot

her

syst

ems

know

n as

clo

nes.

The

Fla

sh in

stal

lati

on u

tilit

ies

are

inst

alle

d a

s pa

rt o

f the

Sola

ris

10 O

S.

Bef

ore

the

Flas

h ar

chiv

e is

cre

ated

and

dep

loye

d, y

ou m

ust

dec

ide

how

to in

tegr

ate

the

inst

alla

tion

pro

cess

into

you

rsp

ecifi

c en

viro

nmen

t.

Hav

ing

a pl

anni

ng s

heet

ser

ves

as a

n im

port

ant t

ool t

o he

lpyo

um

ake

dec

isio

nsan

dto

doc

umen

tthe

arch

ive

crea

tion

and

inst

alla

tion

pro

cess

.

Page 424: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 4

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Fla

shIn

stal

latio

nF

eatu

reU

ses

•Y

ou c

an b

uild

mul

tipl

e cu

stom

ized

con

figu

rati

ons

onth

em

aste

rsys

tem

byus

ing

pack

ages

from

apr

edef

ined

pool

.•

Flas

hin

stal

lati

onis

sign

ific

antl

yfa

ster

than

the

curr

ent

Jum

pSta

rt s

oftw

are

or S

olar

is n

etw

ork

inst

alla

tion

met

hod

s.•

Flas

h al

low

s d

etai

led

cus

tom

izat

ion

of th

e So

lari

s O

S,ha

rdw

are

conf

igur

atio

n, a

nd th

ird

-par

ty s

oftw

are

pack

ages

pri

or to

the

crea

tion

of t

he c

lone

s.•

In a

dd

itio

n, F

lash

inst

alla

tion

can

act

as

anen

terp

rise

-lev

el d

isas

ter

reco

very

whe

n ne

cess

ary.

Page 425: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 5

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Fla

shD

eplo

ymen

tMet

hods

•T

he F

lash

inst

alla

tion

pro

cess

is in

tegr

ated

into

the

exis

ting

cus

tom

Jum

pSta

rt s

oftw

are

fram

ewor

k.•

The

Flas

hin

stal

lati

onpr

oces

sis

spec

ifie

dby

keyw

ord

sin

the

Jum

pSta

rt s

oftw

are

prof

ile o

n th

e Ju

mpS

tart

serv

er.

•T

he F

lash

inst

alla

tion

byp

asse

s pr

oced

ural

scr

ipts

inth

e pa

ckag

e-ba

sed

Jum

pSta

rt s

oftw

are

inst

alla

tion

,m

akin

g th

e pr

oces

s of

bui

ldin

g a

clon

e m

achi

neex

trem

ely

fast

.

Page 426: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 6

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Fla

shIn

stal

latio

nP

roce

ss

Flas

h in

stal

lati

on is

a th

ree-

stag

e pr

oces

s in

volv

ing

the

follo

win

g:

•In

stal

ling

and

cus

tom

izin

g th

e m

aste

r sy

stem

•C

reat

ing

a Fl

ash

arch

ive

on th

e m

aste

r sy

stem

•D

eplo

ying

the

Flas

h ar

chiv

e to

the

clon

e sy

stem

Page 427: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 7

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Inst

allin

gth

eM

aste

r

•T

heFl

ash

inst

alla

tion

feat

ure

uses

one

orm

ore

arch

ives

crea

ted

from

a m

aste

r sy

stem

that

act

s as

a r

efer

ence

conf

igur

atio

n.•

The

mas

ter

syst

emis

anin

stal

led

syst

emth

atha

sbe

encu

stom

ized

as

requ

ired

.•

Cus

tom

izat

ion

can

incl

ude

add

ing

or r

emov

ing

soft

war

e pa

ckag

es, a

dd

ing

thir

d-p

arty

or

unbu

ndle

dso

ftw

are

prod

ucts

, and

mod

ifyi

ng c

onfi

gura

tion

file

s.

Page 428: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 8

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

gth

eF

lash

Arc

hive

•T

he F

lash

arc

hive

is d

eriv

ed fr

om th

e cu

rren

tin

stal

lati

on o

n th

e m

aste

r sy

stem

.•

You

can

crea

teth

ear

chiv

ew

hen

the

syst

emis

runn

ing

in s

ingl

e-us

er m

ode,

mul

tius

er m

ode,

or

boot

ed fr

omth

e So

lari

s 10

OS

1 C

D-R

OM

or

DV

D.

•D

urin

gcl

one

inst

alla

tion

,you

mus

tspe

cify

ad

irec

tory

and

a lo

cati

on w

here

the

Flas

h ar

chiv

e re

sid

es.

Page 429: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 9

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Dep

loyi

ngth

eF

lash

Arc

hive

toth

eC

lone

•Y

ou c

an in

stal

l the

Fla

sh a

rchi

ve o

n to

the

clon

e us

ing

the

follo

win

g:•

An

inte

ract

ive

inst

all

•A

cus

tom

Jum

pSta

rt s

oftw

are

proc

edur

e•

The

inte

ract

ive

met

hod

requ

ires

you

tobo

otth

esy

stem

tobe

clon

edfr

omth

eSo

lari

s10

OS

1C

D-R

OM

orD

VD

.•

To

init

iate

the

Jum

pSta

rt s

oftw

are

proc

edur

e, th

ere

quir

ed Ju

mpS

tart

sof

twar

e se

rvic

es m

ust b

eco

nfig

ured

on

an a

ppro

pria

te s

erve

r.

Page 430: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 10

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Har

dwar

eR

equi

rem

ents

The

sys

tem

spe

cific

atio

ns fo

r a

Flas

h in

stal

lati

on a

re a

sfo

llow

s:

•A

SPA

RC

syst

emfo

rthe

clon

ean

da

SPA

RC

syst

emfo

rth

e m

aste

r (o

r an

Ult

raSP

AR

sys

tem

for

the

clon

ean

d a

n U

ltra

SPA

RC

sys

tem

for

the

mas

ter)

.•

The

mas

ter

and

the

clon

e m

ust h

ave

the

sam

e ke

rnel

arch

itec

ture

, suc

h as

sun

4u.

•B

efor

e yo

u cr

eate

the

arch

ive,

you

mus

t ins

tall

and

conf

igur

e th

e m

aste

r w

ith

the

exac

t sof

twar

e,ha

rdw

are,

and

per

iphe

ral d

evic

e pa

ckag

e th

at y

ouw

ant o

n th

e cl

one.

Page 431: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 11

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Sof

twar

eR

equi

rem

ents

The

sof

twar

e sp

ecifi

cati

ons

for

a Fl

ash

inst

alla

tion

are

as

follo

ws:

•T

he F

lash

uti

lity

com

es w

ith

Sola

ris

10 O

S an

d is

inst

alle

d a

s pa

rt o

f the

Sol

aris

OS.

•Fl

ash

utili

ties

are

als

o av

aila

ble

wit

h th

e m

inim

umSo

lari

s so

ftw

are

grou

p (S

UN

WC

user

).•

The

Ent

ire

Dis

trib

utio

n +

OE

M s

oftw

are

grou

p is

reco

mm

end

edfo

ryou

tobe

able

toin

clud

eal

lfile

san

dd

rive

r su

ppor

t whe

n cr

eati

ng th

e Fl

ash

arch

ive.

Page 432: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 12

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Man

ipul

atin

ga

Fla

shA

rchi

ve

The

Fla

sh in

stal

lati

on u

tilit

y ha

s tw

o co

mm

and

s:

•Y

ouca

nus

eth

e/usr/sbin/flarcreate

com

man

dto

crea

te a

n ar

chiv

e on

the

mas

ter.

•Y

ou c

an u

se th

e/usr/sbin/flar archive

adm

inis

trat

ion

com

man

d to

ext

ract

info

rmat

ion

from

an a

rchi

ve, t

o sp

lit a

n ar

chiv

e, o

r to

com

bine

arc

hive

s.

Page 433: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 13

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

Fla

shA

rchi

ve

The

syn

tax

for

theflar create

com

man

d is

as

follo

ws:

flar create -n name [-R root] [-A old_root] [-t [-p posn] [-b

blocksize]]

[-i date] [-u section [-d path ]] [-U key=value] [-m master]

[-H] [-S] [-c] [-M] [-I] [-f [ list_file | - ] [-F]]

[-a author] [-e descr | -E descr_file] [-T type]

[[-x exclude_dir/file][-x exclude_dir/file]...] [-X

list_file]

[[-y include_dir/file [-y include_dir/file]...]

[-z filter_list_file]

archive

Page 434: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 14

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

Fla

shA

rchi

ve

Exa

mpl

es in

clud

e th

e fo

llow

ing:

•T

he fo

llow

ing

exam

ple

show

s th

e cr

eati

on o

f a F

lash

arch

ive

used

to in

stal

l oth

er s

yste

ms.

#flar create -n flash_root_archive -c -R / -e root_archive\

-x /export/flash -a admin_operator -S /export/flash/\

flash_archive1

Determining which filesystems will be included in the archive...

Determining the size of the archive...

The archive will be approximately 517.98MB.

Creating the archive...

2034098 blocks

Archive creation complete.

Page 435: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 15

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Cre

atin

ga

Fla

shA

rchi

ve

•T

he fo

llow

ing

exam

ple

crea

tes

a Fl

ash

arch

ive

and

cust

omiz

es th

e fi

les

to b

e in

clud

ed in

the

arch

ive:

#flar create -n local_apps -x /usr/local/ -y\

/usr/local/custom_scripts local_archive

Page 436: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 16

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Diff

eren

tialA

rchi

ves

•If

you

hav

e pr

evio

usly

inst

alle

d a

clo

ne u

sing

a F

lash

arch

ive,

it is

now

pos

sibl

e to

upd

ate

that

sys

tem

wit

hch

ange

s by

usi

ng a

dif

fere

ntia

l arc

hive

.•

A d

iffe

rent

ial a

rchi

ve fa

ils if

the

clon

e ha

s be

enm

anua

llyup

dat

edaf

ter

itw

asFl

ash

inst

alle

dfr

omth

em

aste

r so

urce

.•

Ad

iffe

rent

iala

rchi

vere

quir

estw

oim

ages

toco

mpa

re:

aso

urce

mas

teri

mag

e,su

chas

the

orig

inal

mas

terf

lash

conf

igur

atio

n th

at h

as b

een

left

unt

ouch

ed, a

nd a

nup

dat

ed m

aste

r im

age.

Page 437: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 17

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Adm

inis

terin

ga

Fla

shA

rchi

ve

You

use

the/usr/sbin/flar

com

man

d to

per

form

arc

hive

adm

inis

trat

ion.

The

syn

tax

for

theflar

com

man

d is

as

follo

ws:

•flar -iarchive

•flar -carchive

•flar -sarchive

Tolis

tthe

head

erd

ata

that

iscr

eate

dw

ith

the

arch

ive,

use

the

flar -i

com

man

d:

#flar -i flash_archive1

archive_id=f67e46f0096ab9ac580cea5ba3ffeb72

...

Page 438: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 18

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

nga

Fla

shA

rchi

vefo

rIns

talla

tion

The

thir

d a

nd fi

nal s

tage

of t

he F

lash

inst

alla

tion

is th

ed

eplo

ymen

t of t

he a

rchi

ve o

nto

the

clon

e.

Thi

s pr

oces

s ca

n cr

eate

mul

tipl

e cl

ones

of t

he m

aste

r.

You

can

use

any

of th

e So

lari

s O

S in

stal

lati

on m

etho

ds

toin

stal

l Fla

sh a

rchi

ves.

•In

stal

l Fla

sh a

rchi

ves

wit

h th

e So

lari

s W

eb S

tart

prog

ram

.•

Inst

all F

lash

arc

hive

s w

ith

the

Sola

ris

OSsuninstall

prog

ram

.•

Inst

all F

lash

arc

hive

s w

ith

a Ju

mpS

tart

sof

twar

ein

stal

lati

on.

Page 439: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 19

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

nga

Fla

shA

rchi

veW

ithJu

mpS

tart

Sof

twar

e

•W

hen

you

use

Flas

h ar

chiv

es a

s th

e in

put s

ourc

e fo

rJu

mpS

tart

soft

war

e,yo

um

ustr

econ

figu

rea

few

ofth

eJu

mpS

tart

sof

twar

e co

nfig

urat

ion

file

s to

poi

nt to

the

Flas

h ar

chiv

e lo

cati

ons.

•N

etw

ork

file

s•

Whe

n yo

u us

e th

e Ju

mpS

tart

sof

twar

e m

etho

d to

dep

loy

an a

rchi

ve to

a c

lone

, the

clo

ne fo

llow

s a

stan

dar

d n

etw

ork

boot

pro

cess

.•

File

s th

at s

uppo

rt th

e cl

one’

s R

AR

P an

d T

FTP

requ

ests

mus

t be

confi

gure

d o

n th

e Ju

mpS

tart

serv

er.

Page 440: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 20

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

nga

Fla

shA

rchi

veW

ithJu

mpS

tart

Sof

twar

e

The

Jum

pSta

rt p

roce

ss u

ses

keyw

ord

s (a

dd

ed to

the

Jum

pSta

rt s

oftw

are

profi

le in

stal

lati

on fi

le) t

o d

eter

min

esp

ecifi

c co

nfigu

rati

ons

for

the

Jum

pSta

rt s

oftw

are

proc

ess.

The

Flas

hke

ywor

ds

new

toJu

mpS

tart

soft

war

ear

eas

follo

ws:

•install_type flash_install

•archive_location [retrieval_type]

[location]

Page 441: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 21

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Usi

nga

Fla

shA

rchi

veW

ithJu

mpS

tart

Sof

twar

e

Exa

mpl

e pr

ofile

file

:

#cat flash_S10

install_type flash_install

archive_location nfs 192.168.30.30:/flash/flash_archive1

partitioning explicit

filesys c0t0d0s1 512 swap

filesys c0t0d0s0 free /

Page 442: Sun Services

Sun

Ser

vice

s

Adv

ance

d S

yste

m A

dmin

istr

atio

n fo

r th

e S

olar

is™

10

Ope

ratin

g S

yste

mM

odul

e 17

, slid

e 22

of 2

2C

opyr

ight

200

6 S

un M

icro

syst

ems,

Inc.

All

Rig

hts

Res

erve

d. S

un S

ervi

ces,

Rev

isio

n B

Jum

psta

rtU

sing

aF

lash

Arc

hive

Use

eith

erth

einit0

orth

eshutdown

com

man

dto

brin

gth

ecl

one

to th

eok

pro

mpt

, and

then

boo

t the

clo

ne to

the

netw

ork. okboot net - install nowin