www.etomer.com
etomer 2013
Fokus:
Ansatz:
Ttigkeit:
Kompetenz:
www.etomer.com
etomer 2013
Agenda.
What's new ?
Das Getriebe.
Services/Konfigurationsfiles/Logs/Locks/Doors
Zusammenfassung.
www.etomer.com
etomer 2013
IPS-basierende Installation
www.etomer.com
etomer 2013
Delegierte Administration
Bootenvironments
Immutable Zones
www.etomer.com
etomer 2013
ZoSS
zonestat
Neues Resource-Control
zone.max-processes
www.etomer.com
etomer 2013
Relevante Services
Service
svc:/system/zones:default
Konfigurationsfiles
Konfigurationsfiles/Templates in
/etc/zones
Verwendung
SUNWdefault.xml->./SYSdefault.xml
SYSsolaris.xml->./SYSdefault.xml
SYSdefault-shared-ip.xml
index
SYSsolaris10.xml
SYSblank.xml
SYSdefault.xml
www.etomer.com
etomer 2013
Log-Files
Logfile
/var/log/zones/zoneadm.<dateTime>.<zonename>.install
/var/log/zones/zoneadm.<dateTime>.<zonename>.uninstall
/var/log/zones/zoneadm.<dateTime>.<zonename>.install
g
g
l
Install-Logdatei
Uninstall-Logdatei
Install-Logdatei
/var/sadm/system/logs/install_log
detaillierte Install-Logdatei
Lock's/Door's
Lock's/Door's
/var/run/zones/<zonename>.zoneadm.lock
/var/run/zones/<zonename>.zoneadmd_do
or
www.etomer.com
etomer 2013
Automatische Installation
www.etomer.com
etomer 2013
globale Zone
# ll /var/run/zoneproxy_door
Drw------1 root
root
# pgrep -lf zoneproxy
1945 /usr/lib/zones/zoneproxyd
lokale Zone
# ls -laF /var/run/zoneproxy_door
Drw------1 root
root
0 Nov 19 20:02 /var/run/zoneproxy_door>
# pkg publisher solaris
...
http://localhost:1008/solaris/e7632014025b2087fecdde1c533dfed93538f0ff/
...
# pgrep -lf proxy
3947 /usr/lib/zones/zoneproxy-client -s localhost:1008
www.etomer.com
etomer 2013
Bereitstellung Zonentemplate/Manifest/SC-Profil
SC-Profil
Manifest
/usr/share/auto_install/manifest/zone_default.xml
Modifizierte Kopie/Template eines vorhandenen Manifest
Zonentemplate
www.etomer.com
/usr/share/auto_install/sc_profiles/static_network.xml
sysconfig(1M)
Modifizierte Kopie/Template eines vorhandenen SC-Profil
zonecfg(1M)
Modifizierte Kopie/Template eines vorhandenen Zonentemplate
etomer 2013
Einmalige Aufwnde
Installation/Bereitstellung
Fertig !
www.etomer.com
etomer 2013
Umfangreiche Konfigurationsmglichkeiten
www.etomer.com
etomer 2013
Zonenkonfiguration
Konfiguration/Limitation VNIC
VLAN-Tagging
vlan-id: 12
...
Bandbreitenlimitierung
maxbw: 1024m
...
www.etomer.com
etomer 2013
Sinnvolle Default-Resourcecontrols
www.etomer.com
etomer 2013
Vorraussetzungen
www.etomer.com
etomer 2013
zonepath usw.
www.etomer.com
etomer 2013
www.etomer.com
etomer 2013
Fibre Channel
iSCSI
rootzpool
zpool
www.etomer.com
etomer 2013
www.etomer.com
etomer 2013
suriadm(1M)
suri(5)
Setup Zonenkonfiguration
# zonecfg -z zone1
create -b
...
add rootzpool
add storage lu:luname.naa.60a9800041762d6b415d425634344f4e
end
...
add zpool
set name=data
add storage lu:luname.naa.60a9800022362d6b415d425634344f4c
end
...
www.etomer.com
etomer 2013
Setup Zone
ZFS-Pools werden
automatisch erzeugt
83.5K
853M
3.91G
48.1G
31K
33K
/zones/zone1/root/data1
/zones/zone1
www.etomer.com
etomer 2013
root# su - zadmin
zadmin# zlogin zone1
zlogin: You lack sufficient privilege to run this command (all privs required)
zadmin# logout
root# zonecfg -z zone1 "add admin;set user=zadmin;set auths=login,manage;end"
root# su - zadmin
zadmin# pfexec zlogin zone1
[Connected to zone 'zone1' pts/2]
...
[Connection to zone 'zone1' pts/2 closed]
www.etomer.com
etomer 2013
none:
strict: gesamtes Filesystem readonly, logging remote
fixed-configuration: /var schreibbar (ohne configs)
flexible-configuration: /var und /etc schreibbar
www.etomer.com
etomer 2013
www.etomer.com
etomer 2013
einfaches Monitoring
# zonestat 1 12
Collecting data for first interval...
Interval: 1, Duration: 0:00:01
SUMMARY
Cpus/Online: 32/32
PhysMem: 128G
VirtMem: 255G
---CPU---- --PhysMem-- --VirtMem-- --PhysNet-ZONE USED %PART USED %USED USED %USED PBYTE %PUSE
[total] 0.12 0.39% 5006M 3.81% 20.7G 8.08%
194 0.00%
[system] 0.00 0.00% 4450M 3.39% 19.9G 7.81%
global 0.11 0.35% 251M 0.19% 279M 0.10%
194 0.00%
testzone1 0.00 0.00% 73.9M 0.05% 113M 0.04%
0 0.00%
...
# zonestat
# zonestat
-z testzone1 1
-r psets 1 12
# zonestat
www.etomer.com
-r physical-memory -z testzone1 1 12
etomer 2013
Filesystemstatistiken im Zonenkontext
-z <zonenname>
# fsstat -z hsz -F 1
new name
name attr
file remov chng
get
0
0
0
0
0
0
0
969
0
0
0
0
654
283
201 383K
0
0
0 3.86K
# fsstat -z hsz -a zfs
getattr setattr getsec
277K
132
510
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
www.etomer.com
zfs:hsz
zfs:hsz
zfs:hsz
zfs:hsz
zfs:hsz
zfs:hsz
etomer 2013
Zusammenfassung.
Etherstub + VNIC
www.etomer.com
etomer 2013
Quellen.
http://www.oracle.com/technetwork/serverstorage/solaris11/downloads/preflight-checker-tool524493.html
www.etomer.com
etomer 2013
www.etomer.com
etomer 2013
www.etomer.com
etomer 2013
Doors /var/run
zoneproxy_door
zonestat_door
www.etomer.com
Verwendung
Door-Schnittstelle fr Zonenproxy-Prozess fr Zugriff auf IPSRepository aus der lokalen Zone
Door-Schnittstelle fr zonestat-Kommando zum Monitoring des
Resourcenverbrauches der lokalen Zone
etomer 2013