You are on page 1of 4

Here is our simple diagram of how we eventually unified the RM

view within Zones.


| dedicated | capped
---------------------------------
cpu | temporary | cpu-cap
| processor | rctl\*
| set |
---------------------------------
memory | temporary | rcapd, swap
| memory | and locked
| set\* | rctl

Login to the db domain qfo0adm01


# zonecfg -z qfo00019
> add net
> set physical= qfo00019net5
> set address= 10.40.61.32
> end
> verify
> commit
>exit
# zoneadm -z qfo00019 reboot

Login to teh Zone


# zlogin qfo00019
# ipadm create-ip Interfcae name
# ipadm create-addr -T static -a 10.40.60.47/25 adm_ipmp0

---------------------------------------------------------------

# zonecfg -z my-zone -r info


# zonecfg -z my-zone -r export -f exported.cfg

-----------------------------------------------------
root@qfo10029:~# ipadm delete-addr bondib0/v4
root@qfo10029:~# ipadm create-addr -T static -a 192.168.12.31/22 bondib0/v4

NTP
To set the time to 5:43:15 PM (17:43:15), run this command as superuser:
date 1743.15

To set the time to 9:05 AM:


date 0905

# pidof vlc
# kill -KILL 10279

Delete File Permanently in Linux


# shred -zvu tecmint.pdf
-z adds a final overwrite with zeros to hide shredding.
-u helps to truncate and remove file after overwriting.
-v shows progress.

Rename Multiple Files in Linux


The command below renames all .pdf files to .doc, here 's/\.pdf$/\.doc/' is the
rule:
# rename -v 's/\.pdf$/\.doc/' *.pdf

The next example renames all files matching "*.bak" to strip the extension, where
's/\e.bak$//' is the rule:

Check for Spelling of Words in Linux


# look linu
# look docum

Search for Description of Keyword in Manual Page


The man command is used to display manual entry pages of commands, when used with
the -k switch,
it searches the short descriptions and manual page names for the keyword printf
(such as adjust, apache and php in the commands below) as regular expression.

$ man -k adjust
$ man -k apache
$ man -k php

(create a file with specidfied zize)


# head -c 5MB /dev/urandom > ostechnix.txt
# head -c 5MB /dev/zero > ostechnix.txt
# dd if=/dev/urandom of=ostechnix.txt bs=5MB count=1
# dd if=/dev/zero of=ostechnix.txt bs=5MB count=1

# sed -i "s/Listen 80/Listen 8080/" /etc/httpd/conf/httpd.conf

-----------------------------------------Open port ----------------------


3 Ways to Find Out Which Process Listening on a Particular Port

$ netstat -ltnp | grep -w ':80'


In the above command, the flags.

l tells netstat to only show listening sockets.


t tells it to display tcp connections.
n instructs it show numerical addresses.
p enables showing of the process ID and the process name.
grep -w shows matching of exact string (:80).

$ lsof -i :80
$ fuser 80/tcp (yum install psmisc)
$ ps -p 2053 -o comm=
$ ps -p 2381 -o comm=

svccfg -s network/dns/client setprop config/nameserver = net_address: "(10.40.1.158


10.40.1.159)"
svccfg -s network/dns/client setprop config/domain = astring: qf.org.qa

svccfg -s network/dns/client setprop config/search = astring: '("" "")'

root@qfo10028:~# svccfg -s network/dns/client listprop config


config application
config/value_authorization astring solaris.smf.value.name-service.dns.client
root@qfo10028:~# svccfg -s network/dns/client setprop config/nameserver =
net_address: "(10.40.1.158 10.40.1.159)"
root@qfo10028:~# svccfg -s network/dns/client setprop config/domain = astring:
qf.org.qa
root@qfo10028:~# svccfg -s name-service/switch setprop config/ipnodes = astring:
'("files dns")'
root@qfo10028:~# svccfg -s name-service/switch setprop config/host = astring:
'("files dns")'
root@qfo10028:~# svccfg -s network/dns/client listprop config
config application
config/value_authorization astring solaris.smf.value.name-service.dns.client
config/nameserver net_address 10.40.1.158 10.40.1.159
config/domain astring qf.org.qa
root@qfo10028:~#
==================================================================

Hi all
I have a few questions about the Oracle database licensing for a solaris-zone.

1. We have two different possibility to limits the CPU ressources in a solaris-


zone, "capped-cpu" and "dedicated-cpu", is that correct?

no, you can also set up resource pools

2. But we are only able to use the "capped-cpu" for the oracle database licensing,
is that correct?

I thought it was the opposite. ie/ resource pools or dedicated-cpu are okay for
licensing, not "capped-cpu". You should verify with Sales.

There are two different ways of limiting the CPUs for a Solaris Zone
to meet the Oracle-Database-Licensing. (dedicated-CPU & Resource Pool)

# zonecfg -z oradb_zone
zonecfg:oradb_zone> add dedicated-cpu
zonecfg:oradb_zone:dedicated-cpu> set ncpus=16
zonecfg:oradb_zone:dedicated-cpu> end
zonecfg:oradb_zone> exit
- Second possibility: Resource Pool

# pooladm -e
# poolcfg -c 'create pset pset-name (uint pset.min=16; uint
pset.max=16)'
# poolcfg -c 'create pool resource-pool-name'
# poolcfg -c 'associate pool resource-pool-name (pset pset-name)'
# zonecfg -z oradb_zone
zonecfg:oradb_zone> set pool=resource-pool-name
zonecfg:oradb_zone> exit
# poolbind -p resource-pool-name -i oradb_zone

You might also like