Вы находитесь на странице: 1из 17

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

A BigAdmin Community Submission by Haim Tzadok and Cyril Plisko, Grigale Ltd. December !!"

Co#yrig$t % !!" Sun &icrosystems, 'nc., ()*! +et,ork Circle, Santa Clara, Cali-ornia .*!*(, /.S.A. All rig$ts reser0ed. /.S. Go0ernment 1ig$ts 2 Commercial so-t,are. Go0ernment users are sub3ect to t$e Sun &icrosystems, 'nc. standard license agreement and a##licable #ro0isions o- t$e 4A1 and its su##lements. /se is sub3ect to license terms. T$is distribution may include materials de0elo#ed by t$ird #arties. Parts o- t$e #roduct may be deri0ed -rom Berkeley BSD systems, licensed -rom t$e /ni0ersity o- Cali-ornia. /+'5 is a registered trademark in t$e /.S. and in ot$er countries, e6clusi0ely licensed t$roug$ 578#en Com#any, Ltd. 578#en is a registered trademark o- 578#en Com#any, Ltd. All SPA1C trademarks are used under license and are trademarks or registered trademarks o- SPA1C 'nternational, 'nc. in t$e /S and ot$er countries. Products bearing SPA1C trademarks are based u#on an arc$itecture de0elo#ed by Sun &icrosystems, 'nc. Sun, Sun &icrosystems, t$e Sun logo, Solaris, and SunSol0e are trademarks or registered trademarks o- Sun &icrosystems, 'nc. or its subsidiaries in t$e /nited States and ot$er countries. T$is #roduct is co0ered and controlled by /.S. 96#ort Control la,s and may be sub3ect to t$e e6#ort or im#ort la,s in ot$er countries. +uclear, missile, c$emical biological ,ea#ons or nuclear maritime end uses or end users, ,$et$er direct or indirect, are strictly #ro$ibited. 96#ort or ree6#ort to countries sub3ect to /.S. embargo or to entities identi-ied on /.S. e6#ort e6clusion lists, including, but not limited to, t$e denied #ersons and s#ecially designated nationals lists is strictly #ro$ibited. D8C/&9+TAT'8+ 'S P18:'D9D ;AS 'S; A+D ALL 95P19SS 81 '&PL'9D C8+D'T'8+S, 19P19S9+TAT'8+S A+D <A11A+T'9S, '+CL/D'+G A+= '&PL'9D <A11A+T= 84 &91CHA+TAB'L'T=, 4'T+9SS 481 A PA1T'C/LA1 P/1P8S9 81 +8+2'+41'+G9&9+T, A19 D'SCLA'&9D, 95C9PT T8 TH9 95T9+T THAT S/CH D'SCLA'&91S A19 H9LD T8 B9 L9GALL= '+:AL'D.

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

a!le of Contents
ntrod!"tion################################################################################################################################################$ S%stem Re&!irements#################################################################################################################################$ Prere&!isites######################################################################################################################################$ 'ist of Steps######################################################################################################################################$ Flo("hart and )iagram of the Pro"ess#############################################################################################* Step 1+ nstalling Solaris 'i,e Upgrade Pa"-ages on the Solaris 10 */08 Boot .n,ironment#########/ Step 2+ Creating Boot .n,ironment Called sol10u6_stage1 0Still on UFS1############################2 Step 3+ Using Solaris 'i,e Upgrade to Upgrade sol10u6_stage1 to Solaris 10 10/08 OS######4 Step $+ A"ti,ating sol10u6_stage1#########################################################################################10 Step *+ Creating Boot .n,ironment Called sol10u6_stage2 on ZFS Pool 0rpool1#############10 Step /+ A"ti,ating sol10u6_stage2 ############################################################################################1$ 0Optional1 Step 2+ A"ti,ating ZFS 5irroring#################################################################################1* A6o!t the A!thors####################################################################################################################################1/

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

"ntrod#$tion
ZFS 6oot is a !ni&!e feat!re introd!"ed in the Solaris75 10 10/08 Operating S%stem 0also -no(n as 8Update /81# 7o a no,i"e s%stem administrator9 performing a fresh install of the Solaris 10 10/08 OS might seem easier than !pgrading the Solaris OS and mo,ing from the Solaris 10 UFS root file s%stem to ZFS 6oot9 6!t (e (ill e:plain the pro"ess# 7his paper sho(s ho( to !pgrade from the Solaris 10 */08 release to Solaris 10 10/08 0for SPARC; platforms19 !sing the Solaris 'i,e Upgrade pro"ess9 (hile man!all% "reating a ZFS root pool9 "op%ing the UFS root file s%stem into the ZFS root pool9 and a"ti,ating ZFS mirroring# Note: 7his pro"ed!re has 6een s!""essf!ll% tested on the Solaris 10 */08 and Solaris 10 8/02 releases9 6!t not on pre,io!s !pdates#

S%stem Re&#irements
7o perform this !pgrade9 %o! (ill need the follo(ing+ 1# )<) or SO file+ Solaris 10 10/08 OS for SPARC platforms 2# 7(o s%stem dis-s9 one o""!p%ing the "!rrent Solaris 10 UFS root file s%stem9 and another one free for !se

Prerequisites
Before %o! perform the !pgrade9 (e re"ommend that %o! do the follo(ing+

5a-e s!re %o! ha,e the most re"entl% !pdated pat"h list 6% "ons!lting the S!nSol,e (e6 site# Other(ise9 the !pgrade pro"ess might en"o!nter pro6lems# For more information9 sear"h for info do" 22044 on the S!nSol,e site# Consolidate all %o!r /9 /var9 and /opt file s%stems to one single file s%stem# f %o! !se Solaris <ol!me 5anager for mirroring9 it is re"ommended that %o! remo,e all Solaris <ol!me 5anager "onfig!ration# Perform a f!ll 6a"-!p of %o!r root file s%stem for safet% reasons#
S5

List of Steps
=ere are the steps %o! (ill follo( to perform the !pgrade+

Step 1+ nstalling Solaris 'i,e Upgrade Pa"-ages on the Solaris 10 */08 Boot .n,ironment Step 2+ Creating Boot .n,ironment Called sol10u6_stage1 0Still on UFS1 Step 3+ Using Solaris 'i,e Upgrade to Upgrade sol10u6_stage1 to Solaris 10 10/08 OS Step $+ A"ti,ating sol10u6_stage1 Step *+ Creating Boot .n,ironment Called sol10u6_stage2 on ZFS Pool 0rpool1 Step /+ A"ti,ating sol10u6_stage2 0Optional1 Step 2+ A"ti,ating ZFS 5irroring
$

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

Flowchart and Diagram of the Process


7he !pgrade and file s%stem migration "an 6e ,is!ali>ed as sho(n in Fig!re 1 and Fig!re 2# 4igure )> 4lo,c$art o- t$e Process

4igure > Diagram o- t$e Process

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

Step 1: Installing Solaris Live Upgrade Pac ages on the Solaris 1! "#!$ %oot &nvironment
Solaris 'i,e Upgrade 0'U1 pa"-ages are a,aila6le on the Solaris 10 10/08 OS for SPARC platforms )<) or SO file# 5o!nt %o!r )<) or SO file and install the pa"-ages 6% t%ping+
/cdrom/cdrom0/s0/installer

f %o! ha,e a""ess to ?@Ser,er9 a AU (indo( is openedB other(ise9 the pro"ess "ontin!es in C' mode# .:ample C' installation+
Ca,a A""essi6ilit% Bridge for ADO5. loaded# Solaris Ee6 Start (ill assist %o! in installing soft(are for Solaris 10 Soft(are# FPress . D7. R to "ontin!eG &'(&) 5POR7AD7 DO7 C. Pat"hes Deeded to R!n Solaris 'i,e Upgrade Corre"t operation of Solaris 'i,e Upgrade re&!ires that a limited set of pat"h re,isions 6e installed for a gi,en OS ,ersion# Before installing or r!nning 'i,e Upgrade9 %o! are re&!ired to install a limited set of pat"h re,isions# 5a-e s!re %o! ha,e the most re"entl% !pdated pat"h list 6% "ons!lting s!nsol,e#s!n#"om# Sear"h for the info do" 22044 on the S!nSol,e0 tm1 (e6 site# 'i,e Upgrade ma% fail to (or- properl% if the latest limited set of pat"h re,isions are not installed on this s%stem# FPress . D7. R to "ontin!eG &'(&) Please sele"t the t%pe of install to perform from the follo(ing "hoi"es+ 7%pi"al @ Soft(are (ill 6e installed (ith the most "ommon options# Re"ommended for most !sers# C!stom @ Ho! ma% "hoose the options %o! (ant to install# Re"ommended for ad,an"ed !sers# 1# 7%pi"al 2# C!stom Ehat (o!ld %o! li-e to do I1JK Che"-ing dis- spa"e# 7he follo(ing items (ill 6e installed+ Prod!"t+ 'i,e Upgrade 'o"ation+ / Si>e+ 2#$4 5B @@@@@@@@@@@@@@@@@@@@@ 'i,e Upgrade 0 root1 1#22 5B 'i,e Upgrade 0 !sr1 1#21 5B 'i,e Upgrade 0 "onfig1 12#2/ LB Read% to nstall 1# nstall Do( 2# Start O,er 3# . :it nstallation Ehat (o!ld %o! li-e to do I1JK &'(&)

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

Step *: +reating %oot &nvironment +alled sol10u6_stage1 ,Still on UFSAs a first stage9 !pgrade to the Solaris 10 10/08 OS on a UFS file s%stem# Ho!r "!rrent Solaris 10 */08 6oot en,ironment (ill 6e "alled base# Ho!r ne( Solaris 10 10/08 6oot en,ironment on a UFS file s%stem (ill 6e "alled sol10u6_stage1# Cop% the <ol!me 7a6le of Contents 0<7OC1 of the "!rrent root dis- to the free dis-# For e:ample9 if c1t1d0s2 is the root dis- and c1t2d0s2 is the free dis-9 t%pe+
prtvtoc /dev/rdsk/c1t1d0s2 | fmthard -s /dev/rdsk/c1t2d0s2

Create base and sol10u6_stage1 6oot en,ironments 6% t%ping+


lucreate -c base -m /:/dev/dsk/c1t2d0s0:ufs -m -:/dev/dsk/c1t2d0s1:swap -n sol10u6_stage1

7his step might ta-e a s!6stantial amo!nt of time depending on the "apa"it% of %o!r s%stem# O!tp!t e:ample+
0 rootM61000+ / 1N l!"reate @" 6ase @m /+/de,/ ds-/ "1t2d0s0+!fs @m @+/de,/ ds-/ "1t2d0s1+s(ap @n sol10!/Ostage1 )is"o,ering ph%si"al storage de,i"es )is"o,ering logi"al storage de,i"es Cross referen"ing storage de,i"es (ith 6oot en,ironment "onfig!rations )etermining t%pes of file s%stems s!pported <alidating file s%stem re&!ests Preparing logi"al storage de,i"es Preparing ph%si"al storage de,i"es Config!ring ph%si"al storage de,i"es Config!ring logi"al storage de,i"es Anal%>ing s%stem "onfig!ration# Do name for "!rrent 6oot en,ironment# C!rrent 6oot en,ironment is named F6aseG# Creating initial "onfig!ration for primar% 6oot en,ironment F6aseG# 7he de,i"e F/ de,/ds-/"1t1d0s0G is not a root de,i"e for an% 6oot en,ironmentB "annot get B. )# PB. "onfig!ration s!""essf!l+ PB. name F6aseG PB. Boot )e,i"e F/ de,/ds-/"1t1d0s0G# Comparing so!r"e 6oot en,ironment F6aseG file s%stems (ith the file s%stem0 s1 %o! spe"ified for the ne( 6oot en,ironment# )etermining (hi"h file s%stems sho!ld 6e in the ne( 6oot en,ironment# Updating 6oot en,ironment des"ription data6ase on all B. s# Sear"hing /de, for possi6le 6oot en,ironment files%stem de,i"es

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

Contin!ed o!tp!t e:ample+


Updating s%stem "onfig!ration files# 7he de,i"e F/de,/ ds-/ "1t2d0s0G is not a root de,i"e for an% 6oot en,ironmentB "annot get B. )# Creating "onfig!ration for 6oot en,ironment Fsol10!/Ostage1G# So!r"e 6oot en,ironment is F6aseG# Creating 6oot en,ironment Fsol10!/Ostage1G# Creating file s%stems on 6oot en,ironment Fsol10!/Ostage1G# Creating F!fsG file s%stem for F/ G in >one Fglo6alG on F/de,/ ds-/ "1t2d0s0G# 5o!nting file s%stems for 6oot en,ironment Fsol10!/Ostage1G# Cal"!lating re&!ired si>es of file s%stems for 6oot en,ironment Fsol10!/Ostage1G# Pop!lating file s%stems on 6oot en,ironment Fsol10!/Ostage1G# Che"-ing sele"tion integrit%# ntegrit% "he"- OL# Pop!lating "ontents of mo!nt point F/G# Cop%ing# Creating shared file s%stem mo!nt points# Creating "ompare data6ases for 6oot en,ironment Fsol10!/Ostage1G# Creating "ompare data6ase for file s%stem F/ G# Updating "ompare data6ases on 6oot en,ironment Fsol10!/Ostage1G# 5a-ing 6oot en,ironment Fsol10!/Ostage1G 6oota6le# Pop!lation of 6oot en,ironment Fsol10!/Ostage1G s!""essf!l# Creation of 6oot en,ironment Fsol10!/Ostage1G s!""essf!l#

Che"- that %o! ha,e t(o 6oot en,ironments 6% t%ping+


lustatus

O!tp!t e:ample+
(root@b1000: /)# lustatus Boot Environment Name -------------------------base sol10u6_stage1 Is Complete -------yes yes Active Now -----yes no Active On Reboot --------yes no Can Delete -----no yes Copy Status ----------

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

Step .: Using Solaris Live Upgrade to Upgrade sol10u6_stage1 to Solaris 1! 1!#!$ /S


Perform the Solaris 'i,e Upgrade pro"ess to !pgrade sol10u6_stage1 6% t%ping+
luupgrade -u -n sol10u6_stage1 -s /net/pronto/export/install/sparc/s10u6

O!tp!t e:ample+
0 rootM61000+ /1N l!!pgrade @! @n sol10!/Ostage1 @s /net/pronto/ e:port/ install/spar"/s10!// $2042 6lo"-s miniroot files%stem is FlofsG 5o!nting miniroot at F/ net/ pronto/e:port/install/ spar"/ s10!// /SolarisO10/7ools/BootG <alidating the "ontents of the media F/net/pronto/ e:port/ install/spar"/s10!//G# 7he media is a standard Solaris media# 7he media "ontains an operating s%stem !pgrade image# 7he media "ontains FSolarisG ,ersion F10G# Constr!"ting !pgrade profile to !se# 'o"ating the operating s%stem !pgrade program# Che"-ing for e:isten"e of pre,io!sl% s"hed!led 'i,e Upgrade re&!ests# Creating !pgrade profile for B. Fsol10!/Ostage1G# )etermining pa"-ages to install or !pgrade for B. Fsol10!/Ostage1G# Performing the operating s%stem !pgrade of the B. Fsol10!/Ostage1G# CAU7 OD+ nterr!pting this pro"ess ma% lea,e the 6oot en,ironment !nsta6le or !n6oota6le# Upgrading Solaris+ 100P "ompleted nstallation of the pa"-ages from this media is "omplete# Updating pa"-age information on 6oot en,ironment Fsol10!/Ostage1G# Pa"-age information s!""essf!ll% !pdated on 6oot en,ironment Fsol10!/Ostage1G# Adding operating s%stem pat"hes to the B. Fsol10!/Ostage1G# 7he operating s%stem pat"h installation is "omplete# DFOR5A7 OD+ 7he file F/ ,ar/ sadm/s%stem/ logs/!pgradeOlogG on 6oot en,ironment Fsol10!/Ostage1G "ontains a log of the !pgrade operation# DFOR5A7 OD+ 7he file F/ ,ar/ sadm/s%stem/ data/!pgradeO"lean!pG on 6oot en,ironment Fsol10!/Ostage1G "ontains a log of "lean!p operations re&!ired# EARD DA+ F$G pa"-ages failed to install properl% on 6oot en,ironment Fsol10!/Ostage1G# DFOR5A7 OD+ 7he file F/ ,ar/ sadm/s%stem/ data/!pgradeOfailedOp-gaddsG on 6oot en,ironment Fsol10!/Ostage1G "ontains a list of pa"-ages that failed to !pgrade or install properl%# DFOR5A7 OD+ Re,ie( the files listed a6o,e# Remem6er that all of the files are lo"ated on 6oot en,ironment Fsol10!/Ostage1G# Before %o! a"ti,ate 6oot en,ironment Fsol10!/Ostage1G9 determine if an% additional s%stem maintenan"e is re&!ired or if additional media of the soft(are distri6!tion m!st 6e installed# 7he Solaris !pgrade of the 6oot en,ironment Fsol10!/Ostage1G is partiall% "omplete#

Note: 7he reason for this (arning is that pat"hing a s%stem from earlier !pdates sometimes 6rings some pa"-ages to a higher re,ision then the re,ision that "omes on Solaris 10 10/08 OS# n s!"h a "ase9 the !pdated pa"-ages (ill not 6e !pgraded9 sin"e the% are alread% in a higher re,ision#

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

Step 0: 1ctivating sol10u6_stage1


7o a"ti,ate sol10u6_stage19 t%pe+
luactivate sol10u6_stage1 init 6

Step ": +reating %oot &nvironment +alled sol10u6_stage2 on 2FS Pool ,rpoolDo( (e need to delete the base 6oot en,ironment 6% t%ping+
ludelete base

O!tp!t e:ample+
0 rootM61000+ Prod!"t1N l!delete 6ase )etermining the de,i"es to 6e mar-ed free# Updating 6oot en,ironment "onfig!ration data6ase# Updating 6oot en,ironment des"ription data6ase on all B. s# Updating all 6oot en,ironment "onfig!ration data6ases# Boot en,ironment F6aseG deleted#

Do(9 (e need to "reate a ne( <7OC 0partition ta6le1 to the first dis-9 so it (ill ha,e onl% partition 09 (hi"h is a "op% of partition 2 0the 6a"-!p partition1# All other partitions sho!ld 6e empt%# Ee (ill do this 6% t%ping the follo(ing+
format

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

10

Follo( the instr!"tions sho(n in the follo(ing o!tp!t e:amples+


0 rootM61000+ /1N format Sear"hing for dis-s###done A<A 'AB'. ) SL S. '. C7 ODS+ 0# "1t1d0 FSUD3/A "%l 2$/20 alt 2 hd 22 se" 102G / p"iM89/00000/ SUDE9&l"M$/ fpM090/ssdM(2100002032e363af90 1# "1t2d0 FSUD3/A "%l 2$/20 alt 2 hd 22 se" 102G / p"iM89/00000/ SUDE9&l"M$/ fpM090/ssdM(210000203262d/1290 Spe"if% dis- 0 enter its n!m6er1+ 0 &'(&) p 34 &'(&) p 34 &'(&) partitionG modif% Sele"t partitioning 6ase+ 0# C!rrent partition ta6le 0 original1 1# All Free =og Choose 6ase 0 enter n!m6er1 I0JK 1 Part 7ag Flag C%linders 0 root (m 0 0 1 s(ap (! 0 0 2 6a"-!p (! 0 @ 2$/14 3 !nassigned (m 0 $ !nassigned (m 0 * !nassigned (m 0 / !sr (m 0 0 2 !nassigned (m 0 Si>e Blo"-s 0 0/ 0/01 0 0 0/0/ 01 0 33#42AB 0 2$/20/0/ 01 21122180 0 0 0/0/ 01 0 0 0 0/0/ 01 0 0 0 0/0/ 01 0 0 0/ 0/01 0 0 0 0/ 0/01 0

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

11

Contin!ed o!tp!t e:ample+

)o %o! (ish to "ontin!e "reating a ne( partition ta6le 6ased on a6o,e ta6leI%esJK &'(&) )o %o! (ish to "ontin!e "reating a ne( partition ta6le 6ased on a6o,e ta6leI%esJK Free =og partitionI/JK ! . nter si>e of partition Q1Q I069 0"9 0#00m69 0#00g6J+ 0 . nter si>e of partition Q3Q I069 0"9 0#00m69 0#00g6J+ 0 . nter si>e of partition Q$Q I069 0"9 0#00m69 0#00g6J+ 0 . nter si>e of partition Q*Q I069 0"9 0#00m69 0#00g6J+ 0 . nter si>e of partition Q/Q I069 0"9 0#00m69 0#00g6J+ 0 . nter si>e of partition Q2Q I069 0"9 0#00m69 0#00g6J+ 0 Part 7ag Flag C%linders 0 root (m 0 @ 2$/14 1 s(ap (! 0 0 2 6a"-!p (! 0 @ 2$/14 3 !nassigned (m 0 $ !nassigned (m 0 * !nassigned (m 0 / !sr (m 0 0 2 !nassigned (m 0 Si>e Blo"-s 33#42AB 0 2$/20/ 0/01 21122180 0 0/0/ 01 0 33#42AB 0 2$/20/0/ 01 21122180 0 0 0/0/ 01 0 0 0 0/0/ 01 0 0 0 0/0/ 01 0 0 0/ 0/01 0 0 0 0/ 0/01 0

O-a% to ma-e this the "!rrent partition ta6leI%esJK &'(&) . nter ta6le name 0 remem6er &!otes1+ test Read% to la6el dis-9 "ontin!eK % partitionG q 34 &'(&) q 34 &'(&)

Do(9 "onfirm that the "!rrent ZFS pool s!pports the ZFS 6oot feat!re 6% identif%ing the bootfs pool propert% in the zpool upgrade -v o!tp!t+
zpool upgrade -v

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

12

O!tp!t e:ample+
0 rootM61000+ /1N >pool !pgrade @, 7his s%stem is "!rrentl% r!nning ZFS pool ,ersion 10# 7he follo(ing ,ersions are s!pported+ <. R ). SCR P7 OD @@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1 nitial ZFS ,ersion 2 )itto 6lo"-s 0 repli"ated metadata1 3 =ot spares and do!6le parit% RA )@Z $ >pool histor% * Compression !sing the g>ip algorithm / 6ootfs pool propert% 2 Separate intent log de,i"es 8 )elegated administration 4 ref&!ota and refreser,ation properties 10 Ca"he de,i"es For more information on a parti"!lar ,ersion9 in"l!ding s!pported releases9 see+ http+/ /(((#opensolaris#org/os/ "omm!nit%/ >fs/ ,ersion/D Ehere QDQ is the ,ersion n!m6er#

f %o! see that %o! ha,e the bootfs pool propert%9 %o! "an pro"eed to "reate a root pool 6% t%ping+
zpool create rpool c1t1d0s0

Che"- that rpool (as "reated 6% t%ping+


zpool list

O!tp!t e:ample+
0 rootM61000+ /1N >pool list DA5. S Z. US. ) A<A ' CAP =. A'7= A'7ROO7 rpool 33#8A 111L 33#2A 0P OD' D. @

Pro"eed to "reate the Solaris 'i,e Upgrade en,ironment on rpool 6% t%ping+


lucreate -c sol10u6_stage1 -n sol10u6_stage2 -p rpool

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

13

O!tp!t e:ample+
0 rootM61000+ / 1N l!"reate @" sol10!/Ostage1 @n sol10!/Ostage2 @p rpool Anal%>ing s%stem "onfig!ration# Comparing so!r"e 6oot en,ironment Fsol10!/Ostage1G file s%stems (ith the file s%stem0 s1 %o! spe"ified for the ne( 6oot en,ironment# )etermining (hi"h file s%stems sho!ld 6e in the ne( 6oot en,ironment# Updating 6oot en,ironment des"ription data6ase on all B. s# Updating s%stem "onfig!ration files# 7he de,i"e F/ de,/ds-/"1t1d0s0G is not a root de,i"e for an% 6oot en,ironmentB "annot get B. )# Creating "onfig!ration for 6oot en,ironment Fsol10!/Ostage2G# So!r"e 6oot en,ironment is Fsol10!/Ostage1G# Creating 6oot en,ironment Fsol10!/Ostage2G# Creating file s%stems on 6oot en,ironment Fsol10!/Ostage2G# Creating F>fsG file s%stem for F/G in >one Fglo6alG on Frpool/ROO7/sol10!/Ostage2G# Pop!lating file s%stems on 6oot en,ironment Fsol10!/Ostage2G# Che"-ing sele"tion integrit%# Pop!lating "ontents of mo!nt point F/ G# Cop%ing# Creating shared file s%stem mo!nt points# Creating "ompare data6ases for 6oot en,ironment Fsol10!/Ostage2G# Creating "ompare data6ase for file s%stem F/rpool/ROO7G# Creating "ompare data6ase for file s%stem F/G# Updating "ompare data6ases on 6oot en,ironment Fsol10!/Ostage2G# 5a-ing 6oot en,ironment Fsol10!/Ostage2G 6oota6le# Creating 6ootOar"hi,e for / #aalt#tmp#6@o'#mnt !pdating /#alt#tmp#6@o'#mnt/ platform/ s!n$!/ 6ootOar"hi,e Pop!lation of 6oot en,ironment Fsol10!/Ostage2G s!""essf!l# Creation of 6oot en,ironment Fsol10!/Ostage2G s!""essf!l#

Step 5: 1ctivating sol10u6_stage2 Che"- the stat!s of sol10u6_stage2 6% t%ping+


lustatus

O!tp!t e:ample+
0 rootM61000+ /1N l!stat!s Boot . n,ironment s A"ti,e A"ti,e Can Cop% Dame Complete Do( On Re6oot )elete Stat!s @@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@ @@@@@@ @@@@@@@@@ @@@@@@ @@@@@@@@@@ sol10!/Ostage1 %es %es %es no @ sol10!/Ostage2 %es no no %es @

f e,er%thing is OL9 a"ti,ate sol10u6_stage2 6% t%ping+


luactivate sol10u6_stage2 init 6

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

1$

After performing the re6oot9 "he"- to see that %o!r s%stem is indeed !sing ZFS 6oot 6% t%ping+
zpool list zfs list

O!tp!t e:ample+
0 rootM61000+ /1N >pool list DA5. S Z. US. ) A<A ' CAP =. A'7= A'7ROO7 rpool 33#8A 11#1A 22#/A 32P OD' D. @ 0 rootM61000+ /1N >fs list DA5. US. ) A<A ' R. F. R 5OUD7PO D7 rpool 1*#0A 18#2A 21#*L /rpool rpool/ ROO7 4#12A 18#2A 18L / rpool/ ROO7 rpool/ ROO7/ sol10!/Ostage2 4#12A 18#2A 4#12A / rpool/ d!mp 2#01A 18#2A 2#01A @ rpool/ s(ap 3#41A 22#1A 1/L @

Do( %o! ha,e %o!r s%stem !pgraded to the Solaris 10 10/08 OS (ith ZFS 6oot#

,/ptional- Step 6: 1ctivating 2FS 7irroring


After "he"-ing that e,er%thing is r!nning and (or-ing9 delete the old 6oot en,ironment9 sol10u6_stage19 6% t%ping+
ludelete sol10u6_stage1

O!tp!t e:ample+
)etermining the de,i"es to 6e mar-ed free# Updating 6oot en,ironment "onfig!ration data6ase# Updating 6oot en,ironment des"ription data6ase on all B. s# Updating all 6oot en,ironment "onfig!ration data6ases# Boot en,ironment Fsol10!/Ostage1G deleted#

f %o! (ant to a"ti,ate mirroring9 "op% the first dis-Qs <7OC to the se"ond dis- 6% t%ping+
prtvtoc /dev/rdsk/c1t1d0s2 |fmthard -s - /dev/rdsk/c1t2d0s2

Add c1t2d0s0 to the rpool pool 6% t%ping+


zpool attach rpool c1t1d0s0 c1t2d0s0

Do( "he"- that rpool is in the mirror state 6% t%ping+


zpool status

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

1*

O!tp!t e:ample+
0 rootM61000+ /1N >pool stat!s pool+ rpool state+ OD' D. stat!s+ One or more de,i"es is "!rrentl% 6eing resil,ered# 7he pool (ill "ontin!e to f!n"tion9 possi6l% in a degraded state# a"tion+ Eait for the resil,er to "omplete# s"r!6+ resil,er in progress for 0h0m9 2#3/P done9 0h2*m to go "onfig+ DA5. S7A7. rpool OD' D. mirror OD' D. "1t1d0s0 OD' D. "1t2d0s0 OD' D. errors+ Do -no(n data errors R. A) ER 7. CLSU5 0 0 0 0 0 0 0 0 0 0 0 0

Eait for the resil,ering 0"op% pro"ess1 to finish# n order to 6oot from the se"ond dis-9 "reate a ZFS 6oot 6lo"- !nder the se"ond dis- 6% t%ping+
installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t2d0s0

7o allo( OpenBoot PRO5 to 6oot from the first and the se"ond dis-9 %o! need to !pdate the bootdevice ,aria6le# n the follo(ing e:ample9 (e "onsider disk1 and disk2 to 6e de,i"e aliases of c1t1d0s2 and c1t2d0s29 respe"ti,el%# 7o !pdate the OpenBoot PRO5 boot-device ,aria6le from the Solaris en,ironment9 t%pe+
eeprom "boot-device=disk1 disk2"

7o !pdate the OpenBoot PRO5 boot-device ,aria6le from OpenBoot PRO5 ok prompt9 t%pe+
ok> setenv boot-device disk1 disk2

Do( %o! ha,e a mirror "onfig!ration on %o!r s%stem !sing ZFS#

A!o#t the A#thors


=aim 7>ado- and C%ril Plis-o are the o(ners of Arigale 'td#9 a soft(are firm spe"iali>ing in Solaris and OpenSolaris administration9 de,elopment and training# 7he a!thors parti"ipate in man% OpenSolaris "omm!nities# 7he% "an 6e rea"hed at+ info at grigale dot "om#

'i$ensing and Other "nformation


/nless ot$er,ise s#eci-ied, t$e use o- t$is so-t,are is aut$orized #ursuant to t$e terms o- t$e license -ound at http://www.sun.com/bigadmin/common/berkeley_license.html.

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

1/

T$e in-ormation and links on t$is #age $a0e been #ro0ided by a BigAdmin user. T$e submitter is solely res#onsible -or suc$ in-ormation and links. Sun is not res#onsible -or t$e a0ailability o- e6ternal sites or resources, and does not endorse and is not res#onsible or liable -or any content, ad0ertising, #roducts, or ot$er materials on or a0ailable -rom suc$ sites or resources. Sun ,ill not be res#onsible or liable, directly or indirectly, -or any actual or alleged damage or loss caused by or in connection ,it$ use o- or reliance on t$e in-ormation #osted $ere, or goods or ser0ices a0ailable on or t$roug$ any e6ternal site or resource.

Upgrading to the Solaris 10 10/08 OS for SPARC Platforms and From UFS Boot to ZFS Boot

12

Вам также может понравиться