Sun Microsystems 10 用户手册

下载
页码 121
Version 3.1-en
  Solaris 10 Container Guide - 3.1   5. Cookbooks 
Effective: 30/11/2009
Next, the zone is to be transported to a sun4v system named bashful. To do so, the contents and 
the configuration are saved:
root@tiger [23] # cd /zone 
root@tiger [23] # tar cEvf u0.tar u0
    # zone sichern 
root@tiger [24] # zonecfg -z u0 export >u0.export  # Konfiguration 
The zone is created by means of the saved configuration:
root@bashful [40] # zonecfg -z u0v </net/tiger/zone/u0.export 
u0v: No such zone configured 
Use 'create' to begin configuring a new zone. 
The root of the zone is installed from the tar-archive:
root@bashful [41] # cd /zone 
root@bashful [42] # tar xEf /net/tiger/zone/u0.tar 
And the last step is adapting the HW-architecture:
root@bashful [43] # zoneadm -z u0v attach -u /zone/u0 
zoneadm: zone 'u0v': The zone was not properly detached. 
        Attempting to attach anyway. 
WARNING: package operation in progress on the following packages: 
    SUNWcsr SUNWcslr SUNWmlibk SUNWmlibl TSBWvplr FJSVs8brandr FJSVhea  
SUNWxwplt   SUNWxorg-cfg   SUNWxwinc   SUNWxorg-xkb   SUNWxorg-server 
SUNWxorg-client-docs   SUNWxorg-doc   SUNWxorg-devel-docs   SUNWxwpmn 
SUNWapchu   SUNWapchd   SUNWtcatu   SUNWapch2u   SUNWapch2d   SUNWcsl   SUNWcsu 
SUNWdtrc   SUNWPython   SUNWwbdev   SUNWdtcor   SUNWdtbas   SUNWnamdt 
SUNWupdatemgru   SUNWdtdte   SUNWdttsu   SUNWodtts   SUNWdtdst   SUNWdtma 
SUNWhea   SUNWcry   SUNWfirefox-devel   SUNWfmd   SUNWgnome-panel-devel 
SUNWiiimu   SUNWlxsl  SUNWlxml   SUNWprd  SUNWj5rt   SUNWj5rt:none  SUNWj5rtx 
SUNWj5dmo   SUNWj5dmx   SUNWj5dev   SUNWj5man   SUNWbzip   SUNWesu   SUNWmdu 
SUNWfirefox   SUNWnfssu   SUNWzfsu   SUNWkrbu   SUNWgnome-libs   SUNWipfu 
SUNWkdcu SUNWnisu SUNWdpl SUNWpsu SUNWmdb SUNWpr SUNWpprou SUNWppro-
plugin-sunos-base   SUNWpcu   SUNWsmcmd   SUNWlvma   SUNWsshcu   SUNWmcos 
SUNWgnome-desktop-prefs   SUNWxwice   SUNWxwfnt   SUNWxwopt   SUNWxwacx 
SUNWxim   SUNWxi18n   FJSVxwpsr   SUNWplow   SUNWtltkm   TSBWvplu   SUNWppm 
SUNWdclnt   SUNWwbmc   SUNWlvmg   SUNWwbapi   SUNWwbcou   SUNWmgapp   SUNWtlsu 
SUNWsfwhea   SUNWopenssl-include   SUNWimagick   SUNWsmbau   SUNWgnome-img-
editor SUNWgcmn SUNWxwrtl SUNWPython-share SUNWsfman SUNWgnome-panel-
share   SUNWgnome-desktop-prefs-share   SUNWbind   SUNWgnome-themes-share 
SUNWgnome-img-viewer-share   SUNWgnome-display-mgr-share   SUNWgnome-img-
editor-share   SUNWgnome-libs-share   SUNWjss   SUNWgnome-file-mgr-share 
SUNWgnome-session-share SUNWxvnc SUNWmctag SUNWmcon SUNWucbt SUNWxcu6 
Getting the list of files to remove 
Removing 5 files 
Remove 53 of 53 packages 
Installing 12 files 
Add 21 of 21 packages 
Updating editable files 
The file </var/sadm/system/logs/update_log> within the zone contains a 
log of the zone update. 
The last lines show the adaptation.
For this test, two additional packages had originally been installed on the computer "tiger" that had to 
be removed first (command pkgrm) for zoneadm  attach  -u to work. Thus, it is important for 
the package and the patch status to be identical if possible, or that the target system represents an 
upgrade and not a downgrade in any package, because the update process is not able to handle that.
103