Category Archives: Unix

Solaris patching FAQ

http://www.oracle.com/technetwork/systems/articles/patch-faq-jsp-139997.html FAQ: Patching for the Solaris OS Lynne Thompson, February 2008 (Updated February 2009) This article provides answers to many questions regarding patching a system running the Solaris Operating System. General Patching Questions   Question: What are patches? Answer:The Solaris Operating System (OS) software is delivered and installed with SVR4 packages. Packages contain one or […]

Read more

RSC commands quick reference

http://175.193.126.47/syshbk/collections/TECHNICALINSTRUCTIONSURE/1-71-1006030.1-1.html Goal Description: RSC Commands at the rsc> prompt and from within Solaris. To get from console to rsc shell one need to enter escape sequence: ~. (tilda dot)   Solution Here is a list of rsc commands that can be used either on the RSC board, or run from within Solaris. From RSC board: […]

Read more

Lights out manager on Solaris servers

Sun SPARC servers may contain the following types of lights-out manager on board: ILOM/ALOM4v/ALOM/LOM/ELOM/SP or RSC http://175.193.126.47/syshbk/Systems/SunFireV490/ht.html LOM Sun Netra[TM] X1 Sun Netra[TM] T1400/1405 Sun Netra[TM] T1 AC200 Sun Netra[TM] T1 DC200 Sun Fire[TM] V100 Sun Fire[TM] V120 Sun Netra[TM] 20 Sun Netra[TM] 1280 ** Sun Netra[TM] 1290 ** Sun Fire[TM] V1280 ** Sun Fire[TM] […]

Read more

Configuring BIND on Solaris 10

Find BIND service: # svcs -a | grep dns Start the service if not started #svcsadm enable /network/dns/server Create configuration files: /etc/named.conf and /etc/rndc.conf named.conf: options { directory “/var/named”; }; logging { channel simple_log { file “/var/log/named/bind.log” versions 3 size 5m; severity error; print-time yes; print-severity yes; print-category yes; }; category default { simple_log; }; […]

Read more

Solaris and RDBMS direct IO

DB Options disk_asynch_io is a kind of master switch, which turns on or off Async I/O to database files on any type of storage, whether it’s raw device or filesystem. The filesystemio_options parameter gives finer control over I/O to database files on filesystems. It allows you to turn off async I/O to filesystem files but […]

Read more

Installing Oracle RDBMS on Solaris 11

Prepare OS environment #projadd group.dba #projmod -s -K “project.max-shm-memory=(priv,4gb,deny)” group.dba #projmod -s -K “project.max-sem-ids=(priv,256,deny)” group.dba #projmod -s -K “process.max-file-descriptor=(priv,65536,deny)” group.dba   #groupadd dba #groupadd oinstall #useradd -g oinstall -G dba -d /export/home/oracle -s /bin/bash -K project=group.dba -m oracle !important! on Solaris 11 you can not explicitly create directoris in /home because of the automount feature. […]

Read more

Configuring Solaris on Fujitsu M10

Installation of the control domain Start with Installation guide and go until a physical partition is on and running. Go to the console and ok> boot Reference on the open-boot is here: http://docs.oracle.com/cd/E19455-01/816-1177-10/index.html several simple commands:   ok> printenv auto-boot? ok> printenv boot-device ok> devalias ok> show-devs ok> show-disks ok> show-nets To set openboot parameter, […]

Read more

Performance analysis on Solaris

Source http://constantin.glez.de/blog/2011/01/my-favorite-oracle-solaris-performance-analysis-commands Let’s see how we can quickly answer the question: Do I have enough CPU power? In the old days of single-core, single-CPU systems, we fired up top and watched the system load value, or the top processes’ CPU percentage. But in today’s multi-CPU, multi-core world, this doesn’t work anymore. The old concept of […]

Read more

Quagga on Solaris

If quagga is not installed look at the installation description below. To kick start zebra + ospfd one should perform: – create virtual interface vni0: ifconfig vni0 plumb ifconfig vni0 x.x.x.x netmask 255.255.255.255 – create configuration files /etc/quagga/zebra.conf and /etc/quagga/ospfd.conf, for example /etc/quagga/zebra.conf: ! ! Zebra configuration saved from vty ! 2013/03/14 18:52:16 ! hostname […]

Read more

Disk benchmarking

Здесь вкратце описано как связаны между собой основные параметры диска http://www.databasejournal.com/features/oracle/article.php/3731961/Measuring-Disk-IO151A-Vendor-View.htm С помощью Oracle’овой утилиты Orion можно померить максимальную производительность дисков Документация здесь: http://download.oracle.com/otn/utilities_drivers/orion/Orion_Users_Guide.pdf Если указывать в файле *.lun список raw-devices, то запускать нужно из-под root’а. Другая возможность – давать список файлов на нужном устройстве. Тогда достаточно прав владельца файла. 1. создаем файл с названием […]

Read more

Zones: basic commands

1. Enable pool facility pooladm -e 2. create default config file (if not exists) pooladm -s /etc/pooladm.conf 3. Create resource pool using command file poolcfg -f create_pool_commands.txt The file create_pool_commands.txt might contain for example create pset ps_db_recover (uint pset.min = 1; uint pset.max = 4) create pool pool_db_recover associate pool pool_db_recover (pset ps_db_recover) 4. instantiate […]

Read more

Where is sudoers in Solaris

http://blog.mc-thias.org/?title=where-is-the-sudoers-file-on-solaris-10&more=1&c=1&tb=1&pb=1 Sudo package SFWsudo may be downloaded from here: http://www.sunfreeware.com/S10U10-SPARC-files.html after the installation you might need to set s bit from the root account: chmod u+s /opt/sfw/bin/sudo Where is the sudoers file on Solaris 10 sudo is available from the SFWsudo package on Solaris 10. Wanting to use it, a /etc/sudoers file has been set […]

Read more

get_pid_by_port bash script

https://blogs.oracle.com/taz/entry/get_application_pid_listening_on #!/bin/bash # Get the process which listens on port # $1 is the port we are looking for if [ $# -lt 1 ] then echo “Please provide a port number parameter for this script” echo “e.g. $0 22” exit fi echo “Greping for your port, please be patient (CTRL+C breaks) … ” for […]

Read more

Ipfilter firewall

Симпатичный документ здесь: http://ist.uwaterloo.ca/security/howto/2005-08-19/paper.pdf и покоротче здесь http://patgardner.blogspot.com/2008/07/solaris-10-ipfilter.html В Solaris 10/8 файла /etc/ipf/pfil.ap больше нет и автопламбинг делать не нужно, так что достаточно просто стартовать сервис и загрузить конфигурацию: #svcadm enable ipfilter правила хранятся в файле /etc/ipf/ipf.conf примерное содержание файла: pass out quick all keep state pass in quick on bge0 proto tcp from any […]

Read more

UFS, ZFS and EMC

после добавления нового LUN’а полезно запустить #devfsadm -C Потом с помощью format найти устройство, соответствующее новому LUN. Для EMC сопоставлять устройства и LUN’ы можно по Unique ID LUN’а, который видно в EMC Unisphere. ls -l /dev/rdsk/c2t60060160D9C11C00180E726AF4CFE111d0s0 /dev/rdsk/c2t60060160D9C11C00180E726AF4CFE111d0s0 -> /devices/scsi_vhci/ssd@g60060160d9c11c00180e726af4cfe111:a,raw следующую операцию можно и не делать: mount /devices/scsi_vhci/ssd\@g60060160d9c11c00180e726af4cfe111\:a /u02 создать ufs: #newfs /dev/rdsk/c3t6006016092302F00DC070080A73CE311d0s0 подмонтировать: #mount /dev/rdsk/c3t6006016092302F000EBC2DA70337E311d0s0 […]

Read more

Logadm

Посмотреть список последних логинов: last Если выдается ошибка: /var/adm/wtmpx: Value too large for defined data type root@solaris# /usr/lib/acct/fwtmp < /var/adm/wtmpx > /tmp/wtmpx.orig root@solaris# cat /dev/null > /var/adm/wtmpx.tmp root@solaris# /usr/lib/acct/fwtmp -ic < /var/adm/wtmpx.tmp > /var/adm/wtmpx root@solaris# gzip /tmp/wtmpx.orig root@solaris# cp /tmp/wtmpx.orig.gz /var/adm/ >Can one reduce the size of wtmpx ? Yes, you can do that in […]

Read more

Sun SPARC DSCP

Источник: https://blogs.oracle.com/olympus/entry/dscp Sun SPARC Enterprise Approach Sun SPARC Enterprise M-series decided the application scalability of the Maintenance Area Network was a benefit, but we wanted to achieve it without having to run a separate Ethernet network. The result is what we called DSCP — the Domain to Service Processor Communication Protocol. DSCP provides IP communication […]

Read more

Some bash examples

Название файла без пути: $(basename $file) Меняем расширение у всех файлов в директории: for f in *.arc; do mv “$f” “`basename “$f” .arc`.dbf”; done; Название файла без расширения: Use ${x%.*} to remove everything after a dot or ${x%%.*} to remove everything after the first dot. Example: $ x=”/foo/fizzbuzz.bar.quux” $ y=${x%.*} $ echo $y /foo/fizzbuzz.bar $ […]

Read more

Oracle RDBMS installation

Oracle Database 11g Release 2 (11.2.0.2) Installation On Solaris 10 (x86-64) In this article I’ll describe the installation of Oracle Database 11g Release 2 (11.2.0.2) on Solaris 10 (x86-64). The article is based on a default server installation as shown here. Alternative installations may require a different setup procedure. Download Software Unpack Files Hosts File […]

Read more

Openboot

OpenBoot ok Prompt Most of the time, you operate a server at run level 2 or run level 3, which are multiuser states with access to full system and network resources. Occasionally, you might operate the system at run level 1, which is a single-user administrative state. However, the lowest operational state is run level […]

Read more