Wer sich dafür interessiert, was ich außerhalb meiner Freizeit treibe – hier ein Beispiel, nämlich mein heutiger Tag:
Einrichtung Testsystem (Sun Fire T2000) für Neuentwicklung einer Branchensoftware (auf Basis Oracle 10g DB und Container/Zones)
P.S.
Ich bin allerdings heute nicht ganz fertig geworden
Installation Testsystem
Hardware: Sun Fire T2000
8x 1,2GHz T1-CPU
16GB RAM
2x 72GB SAS (RAID1)
2x 146GB SAS (RAID1)
ALOM konfigurieren
seriell per Notebook:
setsc netsc_dhcp false
setsc netsc_ipaddr x.x.x.x
setsc netsc_ipnetmask x.x.x.x
setsc netsc_ipgateway x.x.x.x
userpassword admin
useradd root
userperm cuar
userpassword root
resetsc
poweron
break
console -f
Hardware-RAID1 fuer Boot-Disk
OBP: boot -s cdrom
raidctl -c c0t0d0 c0t1d0
bash-3.00# raidctl -l c0t0d0
Volume Size Stripe Status Cache RAID
Sub Size Level
Disk
----------------------------------------------------------------
c0t0d0 68.3G N/A OPTIMAL N/A RAID1
0.3.0 68.3G GOOD
0.2.0 68.3G GOOD
Installation Solaris 10u4
Hostname: xxxtest
IP: x.x.x.x
Mask: x.x.x.x
GW: x.x.x.x
DNS: x.x.x.x
DNS-Suffix: xyz
DNS-Suche: xyz, zyx
NFSv4-Domain: dynamisch (default)
Locales:
C (Default)
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.UTF-8
en_US.ISO8859-1
en_US.ISO8859-15
en_US.UTF-8
Software-Cluster: gesamte Gruppe
Partitionierung:
s0 / 15G
s1 swap 8GB
s2 backup (gesamte Disk)
s3 (Liveupgrade) 15GB
s4 (Reserve fuer ZFS) restl. GB
s7 (Reserve fuer SVM/SDS-MetaDB)
Inst-Vz per NFS
vi /etc/vfstab
...
# Installationsverzeichnis
abc:/vol/vol1/instux - /instux nfs - yes rw,soft
mkdir /instux
mount /instux
Upgrade ALOM
cd /tmp
mkdir images
cd images
cp /instux/os/solaris/treiber/sun/t2000/firmware/127576-02/sysfwdownload .
cp /instux/os/solaris/treiber/sun/t2000/firmware/127576-02/Sun_System_Firmware-6_5_5-Sun_Fire_T2000.bin .
./sysfwdownload Sun_System_Firmware-6_5_5-Sun_Fire_T2000.bin
.......... (10%).......... (20%).......... (30%).......... (41%).......... (51%)
.......... (61%).......... (71%).......... (82%).......... (92%)........ (100%)
Download completed successfully.
init 0
#.
poweroff
flashupdate -s 127.0.0.1
...
Update complete. Reset device to use new software.
resetsc
Installation Patch-Cluster
ssh -X xxxtest
xterm
lu
> Einrichten des BE sol10u4
Erstellen des neuen BE sol10u4recpatch auf s3
luupgrade -n sol10u4recpatch -s /instux/os/solaris/recommended_patches/s10/sparc/10_Recommended/ -t `cat patch_order`
luactivate sol10u4recpatch
LSI-RAID1-Volumes nehmen die Identitt der ersten Disk an (Name und Hardwarepfad)
Als Default wird Slice0 gebootet, bei Liveupgrade muss der OBP unter Sparc angepasst werden.
bash-3.00# ls -l /dev/dsk/c0t0d0s0
lrwxrwxrwx 1 root root 49 Nov 22 11:45 /dev/dsk/c0t0d0s0 -> ../../devices/pci@780/pci@0/pci@9/scsi@0/sd@0,0:a
bash-3.00# ls -l /dev/dsk/c0t0d0s3
lrwxrwxrwx 1 root root 49 Nov 22 11:45 /dev/dsk/c0t0d0s3 -> ../../devices/pci@780/pci@0/pci@9/scsi@0/sd@0,0:d
init 0
OBP:
ok devalias
ttya /pci@7c0/pci@0/pci@1/pci@0/isa@2/serial@0,3f8
nvram /virtual-devices/nvram@3
net3 /pci@7c0/pci@0/pci@2/network@0,1
net2 /pci@7c0/pci@0/pci@2/network@0
net1 /pci@780/pci@0/pci@1/network@0,1
net0 /pci@780/pci@0/pci@1/network@0
net /pci@780/pci@0/pci@1/network@0
ide /pci@7c0/pci@0/pci@1/pci@0/ide@8
cdrom /pci@7c0/pci@0/pci@1/pci@0/ide@8/cdrom@0,0:f
disk3 /pci@780/pci@0/pci@9/scsi@0/disk@3
disk2 /pci@780/pci@0/pci@9/scsi@0/disk@2
disk1 /pci@780/pci@0/pci@9/scsi@0/disk@1
disk0 /pci@780/pci@0/pci@9/scsi@0/disk@0
disk /pci@780/pci@0/pci@9/scsi@0/disk@0
scsi /pci@780/pci@0/pci@9/scsi@0
virtual-console /virtual-devices/console@1
name aliases
ok nvalias disk0-slice3 /pci@780/pci@0/pci@9/scsi@0/disk@0,0:d
ok nvalias disk0-slice0 /pci@780/pci@0/pci@9/scsi@0/disk@0,0:a
ok nvstore
ok setenv boot-device disk0-slice3
ok printenv
Variable Name Value Default Value
ttya-rts-dtr-off false false
ttya-ignore-cd true true
keyboard-layout
reboot-command
security-mode none No default
security-password No default
security-#badlogins 0 No default
verbosity min min
pci-mem64? false false
diag-switch? true false
local-mac-address? true true
fcode-debug? false false
scsi-initiator-id 7 7
oem-logo No default
oem-logo? false false
oem-banner No default
oem-banner? false false
ansi-terminal? true true
screen-#columns 80 80
screen-#rows 34 34
ttya-mode 9600,8,n,1,- 9600,8,n,1,-
output-device virtual-console virtual-console
input-device virtual-console virtual-console
auto-boot-on-error? false false
load-base 16384 16384
auto-boot? true true
network-boot-arguments
boot-command boot boot
boot-file
boot-device disk0-slice3 disk net
multipath-boot? false false
boot-device-index 0 0
use-nvramrc? true false
nvramrc devalias disk0-slice0 /p ...
error-reset-recovery boot boot
ok boot
NTP
bash-3.00# vi /etc/inet/ntp.conf
#
# This is for /etc/inet/ntp.conf on domains
# Solaris 8 (uses XNTP Vn 3.5)
#
server ntp1
server ntp2
server 127.127.1.0
fudge 127.127.1.0 stratum 10
disable auth
driftfile /var/ntp/ntp.drift
requestkey 1
controlkey 1
touch /var/ntp/ntp.drift
svadm restart svc:/network/ntp:default
Automounter ausschalten
bash-3.00# vi /etc/auto_master
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)auto_master 1.8 03/04/28 SMI"
#
# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse
#/home auto_home -nobrowse
bash-3.00# svcadm restart svc:/system/filesystem/autofs:default
Hardware RAID1 fuer Solaris-Container/Zones
bash-3.00# raidctl -c c0t2d0 c0t3d0 bash-3.00# raidctl -l c0t2d0
Volume Size Stripe Status Cache RAID
Sub Size Level
Disk
----------------------------------------------------------------
c0t2d0 136.6G N/A OPTIMAL N/A RAID1
0.3.0 136.6G GOOD
0.2.0 136.6G GOOD
ZFS-Pools anlegen
bash-3.00# rmdir /home
bash-3.00# zpool create home c0t0d0s4
bash-3.00# zpool create xxx-pool c0t2d0
bash-3.00# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
home 30.8G 88K 30.7G 0% ONLINE -
xxx-pool 136G 88K 136G 0% ONLINE -
Oracle in Solaris Zones
Vorbereitung
Metalink: DocID Note:317257.1
Dateien laut Metalink-Artikel unter /batch anlegen
bash-3.00# zfs create xxx-pool/xxxtestdb
bash-3.00# zfs set quota=50GB xxx-pool/xxxtestdb
bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
home 85K 30.3G 24.5K /home
xxx-pool 116K 134G 26.5K /xxx-pool
xxx-pool/xxxtestdb 24.5K 50.0G 24.5K /xxx-pool/xxxtestdb
Kopie der Dateien unter /batch fuer DB in /batch/xxxtestdb erstellen
bash-3.00# vi setenv.sh
#!/usr/bin/sh
#host name for the zone
ZONE_NAME=xxxtestdb
#directory where to place root dir for the zone
ZONE_DIR=/xxx-pool/xxxtestdb
#IP for the zone (make sure netmask can be resolved for this IP according to
# the databases defined in nsswitch.conf)
NET_IP=x.x.x.x
#interface used by the zone
NET_PHYSICAL=e1000g0
#min and max CPUs for the pool bound to the zone
NUM_CPUS_MIN=4
NUM_CPUS_MAX=8
# do not make changes beyond this point
POOL_NAME=pool_$ZONE_NAME
PSET_NAME=ps_$ZONE_NAME
export ZONE_NAME ZONE_DIR NET_IP NET_PHYSICAL
export POOL_NAME PSET_NAME NUM_CPUS_MIN NUM_CPUS_MAX
Erstellung der Zone fuer DB
cd /batch/xxxtestdb
bash-3.00# ./create_container.sh
xxxtestdb was configured with this information:
---------------------------------------------------------
zonename: xxxtestdb
zonepath: /xxx-pool/xxxtestdb/xxxtestdb
brand: native
autoboot: true
bootargs:
pool: pool_xxxtestdb
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir: /usr/local
special: /opt/xxxtestdb/local
raw not specified
type: lofs
options: []
net:
address: x.x.x.x
physical: e1000g0
---------------------------------------------------------
Preparing to install zone <xxxtestdb>.
Creating list of files to copy from the global zone.
Copying <2561> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1108> packages on the zone.
Initializing package <589> of <1108>: percent complete: 53% ...
Initialized <1108> packages on zone.
Zone <xxxtestdb> is initialized.
The file </xxx-pool/xxxtestdb/xxxtestdb/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
to finish configuring your container please run: zlogin -C xxxtestdb
Dauer: ca. 10min
bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
home 85K 30.3G 24.5K /home
xxx-pool 155M 134G 26.5K /xxx-pool
xxx-pool/xxxtestdb 155M 49.8G 155M /xxx-pool/xxxtestdb
Erstes Einloggen in der Zone
bash-3.00# zlogin -C xxxtestdb
[Connected to zone 'xxxtestdb' console]
Select a Language
0. English
1. German
2. es
3. fr
Please make a choice (0 - 3), or press h or ? for help: 0
Select a Locale
0. English (C - 7-bit ASCII)
1. Canada (English) (UTF-8)
2. Canada-English (ISO8859-1)
3. Czech Republic (ISO8859-2)
4. Czech Republic (UTF-8 + euro)
5. Czech Republic (UTF-8)
6. Hungary (ISO8859-2)
7. Hungary (UTF-8)
8. Poland (ISO8859-2)
9. Poland (UTF-8)
10. Slovakia (ISO8859-2)
11. Slovakia (UTF-8)
12. U.S.A. (UTF-8)
13. U.S.A. (en_US.ISO8859-1)
14. U.S.A. (en_US.ISO8859-15)
15. Go Back to Previous Screen
Please make a choice (0 - 15), or press h or ? for help: 0
...
Abfragen zur Solaris-Konfiguration
...
System identification is completed.
rebooting system due to change(s) in /etc/default/init
[NOTICE: Zone rebooting]
SunOS Release 5.10 Version Generic_127111-03 64-bit Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: xxxtestdb
xxxtestdb console login: root
Password:
Nov 22 19:37:57 xxxtestdb login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#