Solaris OracleDB zone: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „Kategorie:Solaris =Setup Solaris server with OracleDB in a zone= Our setup is a 48GB x86-Server ==Limit ZFS ARC== Add to /etc/system: <source lang=bash> s…“)
 
No edit summary
Line 11: Line 11:
To calculate your own value:
To calculate your own value:
<source lang=bash>
<source lang=bash>
# LIMIT_GB=8 ; printf "*\n** Limit ARC to %dGB\n*\nset zfs:zfs_arc_max = 0x%x\n" ${LIMIT_GB} $[${LIMIT_GB} * 1024 * 1024 * 1024]
# LIMIT_GB=8 ; printf "*\n** Limit ZFS ARC to %dGB\n*\nset zfs:zfs_arc_max = 0x%x\n" ${LIMIT_GB} $[${LIMIT_GB} * 1024 * 1024 * 1024]
*
*
** Limit ARC to 8GB
** Limit ZFS ARC to 8GB
*
*
set zfs:zfs_arc_max = 0x200000000
set zfs:zfs_arc_max = 0x200000000
</source>
==Create Zone==
<source lang=bash>
ZONENAME=oracle
ZONEPOOL=rpool
ZONEBASE=/var/zones
zfs create -o mountpoint=none ${ZONEPOOL}/zones
zfs create -o compression=on -o mountpoint=${ZONEBASE}/${ZONENAME} ${ZONEPOOL}/zones/${ZONENAME}
printf "
create
set autoboot=true
set zonepath=${ZONEBASE}/${ZONENAME}
add dedicated-cpu
set ncpus=5-6
end
set autoboot=true
verify
commit
" | zonecfg -z ${ZONENAME} -f -
</source>
</source>

Revision as of 18:07, 5 November 2014

Kategorie:Solaris

Setup Solaris server with OracleDB in a zone

Our setup is a 48GB x86-Server

Limit ZFS ARC

Add to /etc/system:

set zfs:zfs_arc_max = <bytes as hex value>

To calculate your own value:

# LIMIT_GB=8 ; printf "*\n** Limit ZFS ARC to %dGB\n*\nset zfs:zfs_arc_max = 0x%x\n" ${LIMIT_GB} $[${LIMIT_GB} * 1024 * 1024 * 1024]
*
** Limit ZFS ARC to 8GB
*
set zfs:zfs_arc_max = 0x200000000

Create Zone

ZONENAME=oracle
ZONEPOOL=rpool
ZONEBASE=/var/zones

zfs create -o mountpoint=none ${ZONEPOOL}/zones
zfs create -o compression=on -o mountpoint=${ZONEBASE}/${ZONENAME} ${ZONEPOOL}/zones/${ZONENAME}
printf "
create
set autoboot=true
set zonepath=${ZONEBASE}/${ZONENAME}
add dedicated-cpu
set ncpus=5-6
end
set autoboot=true
verify
commit
" | zonecfg -z ${ZONENAME} -f -