Upload
alora
View
217
Download
0
Embed Size (px)
Citation preview
7/31/2019 BrandedZone Setup Oracle Solaris
1/5
Installing a Branded Solaris 8 zone on an Oracle (Sun) T-5120 system:
Verify that the base SUNWs8brandr and SUNWs8brandu packages are installed.
(The SUNWs8brandr and SUNWs8brandu packages should be installed on your system during the
Solaris system installation. If not already installed, the packages are available from the Solaris 1010/09 media in the NFS repository /nfs/install/sol10_1009/Solaris_10/Product.)
(globalZ)# pkginfo | grep -i SUNWs8brand
system SUNWs8brandr Solaris 8 Containers: solaris8 brand support (Root)
system SUNWs8brandu Solaris 8 Containers: solaris8 brand support (Usr)
Verify that the kernel patch 127111-01 or later is installed
(globalZ)# cd /nfs/install/legacytools/1.0.1/Product
Installing the Solaris 8 Containers 1.0.1 Software(globalZ)# pkgadd -d . SUNWs8brandk
Verify if the kernel patch 127111-01 or later is installed(globalZ)# patchadd -p | grep 127111
Use the zonecfg command to create the Solaris 8 zone.
(globalZ)# zonecfg -z newbrandz
newbrandz: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:newbrandz> create -t SUNWsolaris8
zonecfg:newbrandz> set zonepath=/z/hostroot/newbrandzzonecfg:newbrandz> set autoboot=true
zonecfg:newbrandz> add net
zonecfg:newbrandz:net> set address=128.56.11.201
zonecfg:newbrandz:net> set physical=nxge0
zonecfg:newbrandz:net> end
zonecfg:newbrandz> add attr
zonecfg:newbrandz:attr> set name=machine
zonecfg:newbrandz:attr> set type=string
zonecfg:newbrandz:attr> set value=sun4u
zonecfg:newbrandz:attr> end
zonecfg:newbrandz> verify
zonecfg:newbrandz> commit
zonecfg:newbrandz> exit
# Verify that the newly created Branded Zone configuration
globalZ)# zonecfg -z newbrandz info
zonename: newbrandz
zonepath: /z/hostroot/newbrandz
brand: solaris8
autoboot: true
7/31/2019 BrandedZone Setup Oracle Solaris
2/5
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 128.56.11.201physical: nxge0
defrouter not specified
attr:
name: machine
type: string
value: sun4u
Verify the Branded Zone configuration file
(globalZ)# cat /etc/zones/newbrandz.xml
Format partition 6 as 18GB on the boot drives for the zone root
(globalZ)# format c1t1d0 c1t0d0 c1t2d0
AVAILABLE DISK SELECTIONS:
0. c1t0d0 /pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c1t1d0
/pci@0/pci@0/pci@2/scsi@0/sd@1,0
2. c1t2d0
/pci@0/pci@0/pci@2/scsi@0/sd@2,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
/dev/dsk/c1t0d0s0 is part of SVM volume stripe:d101. Please see metaclear(1M).
/dev/dsk/c1t0d0s1 is part of SVM volume stripe:d111. Please see metaclear(1M).
/dev/dsk/c1t0d0s3 is in use by dump. Please see dumpadm(1M)./dev/dsk/c1t0d0s7 contains an SVM mdb. Please see metadb(1M).
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
7/31/2019 BrandedZone Setup Oracle Solaris
3/5
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labelssave - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> p
partition> p
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 825 - 3298 24.01GB (2474/0/0) 50350848
1 swap wu 0 - 824 8.01GB (825/0/0) 16790400
2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624
3 unassigned wm 3299 - 4123 8.01GB (825/0/0) 16790400
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 root wm 4126 - 5980 18.00GB (1855/0/0) 37752960
7 unassigned wm 4124 - 4125 19.88MB (2/0/0) 40704
Create the Zone Root directory
(globalZ)# mkdir p /z/hostroot/newbrandz
Create metadevices for the Zone root devices
(globalZ)# metainit d801 1 1 c1t0d0s4
(globalZ)# metainit d802 1 1 c1t1d0s4
(globalZ)# metainit d803 1 1 c1t2d0s4
Create a 1 Way Mirror
(globalZ)# metainit d800 -m d801
Create a filesystem on the Zone root device
(globalZ)# newfs /dev/md/rdsk/d80
#
(globalZ)# mount /dev/md/dsk/d80 /z/hostroot/newbrandz
(globalZ)# chmod 700 /z/hostroot/newbrandz
7/31/2019 BrandedZone Setup Oracle Solaris
4/5
Check the status of the Zones(globalZ)# zoneadm list -iv
Check the availability of the flash archive file for solaris8S
(globalZ)# ls -l /nfs/archives_rep/solaris8S/solaris8S_Sun-Fire-V240_sol5.8_117350-55.flar
Install the configured zone s8-zone by using the zoneadm command with the install -a option andthe path to the archive.
You will see various messages as the installation completes. This can take some time.
To remove the system identity from a system image that you created without altering the image,
use the -u option. The sys-unconfig occurs to the target zone.
(globalZ)# zoneadm -z newbrandz install -u -a /nfs/archives_rep/solaris8S/solaris8S_Sun-Fire-
V240_sol5.8_117350-55.flar
Verify that the zone is installing
ls -l /z/hostroot/newbrandzls -l /z/hostroot/newbrandz/root
Verify Zone Status
zoneadm list -iv
Boot Zone
zoneadm -z newbrandz boot
Verify Zone Statuszoneadm list -iv
Log into the new Branded zone
(globalZ)#zlogin newbrandz
# Update the network identify files to reflect the new zone name
(newbrandz)# vi /etc/resolv.conf # Copy from the Global Zone
(newbrandz)# vi /etc/nodename
(newbrandz)# vi /etc/nsswitch.conf # Copy from the Global Zone
(newbrandz)# vi /etc/net/ticlts/hosts
(newbrandz)# vi /etc/net/ticots/hosts
(newbrandz)# vi /etc/net/ticotsord/hosts
(newbrandz)# vi /etc/hosts
# Exit Zone
(newbrandz)# exit
7/31/2019 BrandedZone Setup Oracle Solaris
5/5
Log into the new Branded zone(globalZ)# zlogin newbrandz
# Mount the NFS server nasappl(newbrandz)# dfshares nasappl | grep /nfs/appl
nasappl:/nfs/appl nasappl - -
(newbrandz)# mount nasappl:/nfs/appl /mnt
Install NIS(newbrandz)# # Install NIS
Check the Automounter
Remove all the STANDARD packages and reinstall the required ones
Additional Reference:
http://download.oracle.com/docs/cd/E19455-01/820-2914/gftqt/index.html