Friday Dec 04, 2009

I've being waiting for this update to try deduplication of zfs. Being knowing that a lot of files will be written as result of image update I set zfs compression including rpool file system (except swap and dump) before doing update. Zfs compression on my home files already being for one month and proved to save space/time/power.[Read More]
del.icio.us digg technorati

Monday Nov 23, 2009

It is second week I am running OpenSolaris build 127. Why important? It contains support of Solaris 10 branded zones. We did a lot of testing (especially RDBMS) running in Branded Zones. So now you may run your old applications and use modern features of OpenSolaris. Continue reading Solaris10-Branded Zone Developer Guide. Start using OpenSolaris now.
del.icio.us digg technorati

Tuesday Nov 10, 2009

You want to use or to know more about Sun technologies? We propose you free Webinars to improve your knowledge and skills! Find orange button on the right side.
del.icio.us digg technorati

Friday Oct 30, 2009

Its being a while since my last blog. And since many projects still in progress I will share my impression about recent build of OpenSolaris b126.

I am long time user of OpenSolaris. This is my tool for everyday work and I have it on my notebook. But still I am just a user, a little of admin, totally not a developer of this system. OpenSolaris 2009.06 was a major milestone with most every features polished to that date. But some was not as good as I wanted them to be. So I came a long road of updating to dev builds. I had all of them starting from 116 till 126. In every build there were improvements as well as new bugs. Only starting with 126 I can say that I feel good about it.

So here is the list why go dev and what you should be ready to. I am not writing in which release bug was fixed. Consider this as a "diff 111a 126" and I am not pretend to show all diff, this is only what is sensitive to me:

  • Firefox was beta in 2009.06 and bunch of needed addons does not work in this beta. That was first reason why I started to go dev. Probably I can go updating applications only, but I decided to have whole system recent. Firefox is 3.5.3 now.
  • System monitor applet had disk activity broken, but now it is fine.
  • Overwall system performance (Compiz at maximum visual, Firefox) performs much better. This is purely subjective.
  • Sound subsystem has changed. Keyboard beep annoying my coworkers. Did not get how to mute it or lower volume permanently.
  • Pidgin's yahoo icon problem is fixed. It was showing offline even when you connected. Pidgin is 2.6.2
  • In some builds printer monitor applet gone wild eating cpu. But now its fine.
  • I noticed that my /var was growing. This is due to each 'pkg update' is storing downloaded packages. Can be fixed with
$ pfexec pkg set-property flush-content-cache-on-success true
  • No more Ctrl-D in Terminal, have to use "exit". Didn't look at it yet. Typing "exit" may be annoying, but it saves from accidental closing of terminals. Right now I have just 5 opened sessions in terminal, usually more.
  • I have strange problem with Marvell Yukon Ethernet. Before 125 I had a driver from the vendor. But it does not work for build 125 and 126. So I decided to remove YUKONXsolx and give a try to yge. Something strange happening here. I have external USB disk drive attached. I use this drive periodically as rpool mirror to have a spare. As soon as I have this drive attached before the system booted my ethernet refuses to work. So I need to have USB disk drive detached when system boots. Details are here.
  • Now waiting for zfs dedup
  • Other frequently used applications: Rhythmbox with Audio.fm, Thunderbird, OpenOffice, QCAD, Gimp, Stellarium (Blastwave please update your repository with recent versions! and why it so rare online?), Adobe Reader.
del.icio.us digg technorati

Friday Jul 24, 2009

На моем ноутбуке до сих пор существуют две операционные системы. Первая — OpenSolaris build 118, в ней я постоянно работаю. И вторая — ее я использую для доступа в интернет на даче, а еще в ней установлен антивирус. Не первый раз возник вопрос, а нужна ли мне та вторая, может я смогу настроить модем в OpenSolaris?

Немного нагуглив я нашел руководство по настройке Nokia E71 в Vodafone UK. Остается все это переделать для SonyEricsson K750i в МТС.

приступаем, делаем ссылку для телефона и создаем файлы настроек.

# ln -s /dev/term/0 /dev/se750i
# touch /etc/ppp/options
# cat /etc/ppp/mts-chat
'' 'ATZ'
'OK' 'AT+CGDCONT=1,"IP","internet"'
'OK' 'ATD*99#'
CONNECT ''

# cat /etc/ppp/peers/mts
modem
se750i
115200
noauth
noipdefault
defaultroute
usepeerdns
noccp
novj
user "mts"
nodetach
show-password
crtscts
connect "/usr/bin/chat -V -t15 -f /etc/ppp/mts-chat"

# echo 'mts * mts *' >> /etc/ppp/pap-secrets

# pppd call mts
ATZ
OK
AT+CGDCONT=1,"IP","internet"
OK
ATD*99#
CONNECTSerial connection established.
Using interface sppp0
Connect: sppp0 <--> /dev/se750i
LCP: Rcvd Code-Reject for Identification id 223
Remote message: Congratulations!
local IP address 10.21.25.201
remote IP address 192.168.1.1
primary DNS address 213.87.0.1
secondary DNS address 213.87.1.1

для обрыва сеанса просто Ctrl-C
^CTerminating on signal 2.
Connection terminated.
Connect time 8.6 minutes.
Sent 78100 bytes (702 packets), received 22106 bytes (40 packets). 

  
Пока единственное неудобство - необходимость заполнять файл /etc/resolv.conf:
# cat /etc/ppp/resolv.conf > /etc/resolv.conf  

Будем надеяться, что когда-нибудь pppd будет под контролем nwam.

del.icio.us digg technorati

Thursday Jun 04, 2009

BluePrint of Running Oracle Real Application Clusters (RAC) on Sun Logical Domains is available now. In this blueprint you will find step-by-step configuration example of two nodes in two guest domains located on two separate boxes. Use it as starting point to build your own cluster.

This article discusses running Oracle Real Application Clusters (RAC) on servers configured with Sun™ Logical Domains (LDoms). Sun LDoms virtualization technology allows the creation of multiple virtual systems on a single physical system, and enables fine-grained assignment of CPU and memory resources to an Oracle RAC workload. When deployed on Sun's CoolThreads™ technology-based servers, with up to 256 threads per system, this solution provides a powerful platform for both development and production environments. In development environments, multiple Oracle RAC nodes can be deployed on the same physical server to reduce hardware costs, while a production environment can place each Oracle node on a separate physical server for increased availability.

The authors would like to thank Sridhar Kn, Ezhilan Narasimhan, Gia-Khanh Nguyen, Uday Shetty from Sun Microsystems, as well as Rahim Mau, Khader Mohiuddin from Oracle Corporation for their contributions during the certification of Oracle on Sun Logical Domains.

del.icio.us digg technorati

Saturday Apr 25, 2009

Oracle Database 10gR2 (10.2.0.3 and higher patches) Single Instance (not RAC) is certified with Solaris 10 ZFS on SPARC 64-bit. Please read Solaris ZFS_Best_Practices_Guide. You may need to limit ARC cache.


del.icio.us digg technorati

Tuesday Mar 24, 2009

Get in now

http://www.adobe.com/go/getreader

to install run as root on Solaris or do pfexec on OpenSolaris:

    $ chmod +x AdbeRdr9.1.0-1_i486solaris_enu.bin 
    $ pfexec ./AdbeRdr9.1.0-1_i486solaris_enu.bin 
    Extracting files, please wait. (This may take a while depending on the configuration of your machine) 
    This installation requires 171 MB of free disk space. 
    Enter installation directory for Adobe Reader 9.1.0 [/opt] 
    /opt 
    Installing platform independent files ... Done 
    Installing platform dependent files ... Done 
    Setting up libraries ... Done 
    Setting up desktop and menu icons ... Done 
    Setting up the browser plugin ... Done 

And you will get it on the system as well as Firefox plugin.

del.icio.us digg technorati

Tuesday Mar 03, 2009

We have learned how to configure Oracle in ASM in Solaris Container. For this we setup our container with raw device access. While this works good it is not good idea to expose device names into container. Virtualized OS administrator should not know about devices in global container. And being attached to special device is not giving flexibility. In this exercise we will migrate from raw device onto SMV metadevice.[Read More]
del.icio.us digg technorati

Thursday Feb 26, 2009

Configuration example of Oracle ASM in Solaris Container.


In this post I will give you a tip on how to setup Oracle ASM in Solaris Container. The main point of container's configuration is to set proper privileges. Your container should have proc_priocntl (must) and proc_lock_memory (highly recommended) privileges in order to function properly with ASM in it. Use the following as an configuration example when creating container and adjust it for your needs. Please read comments inlined:


create

# container will be named zone1

# make sure that directory /zones exist and have permissions 700

set zonepath=/zones/zone1

set autoboot=true

set limitpriv=default,proc_priocntl,proc_lock_memory

set scheduling-class="FSS"

set max-shm-memory=16G


# use ip-type exclusive at your wish, non-exclusive is also possible

set ip-type=exclusive

add net

set physical=e1000g1

end

add fs

set dir=/usr/local

# make sure /opt/zone1/local exist

set special=/opt/zone1/local

set type=lofs

end

add fs

# mount /distro from global zone into container.

# I have Oracle distribution files there

set dir=/distro

set special=/distro

set type=lofs

add options [ro]

end


# this device will be used for ASM inside container

add device

set match=/dev/rdsk/c4t600A0B8000562790000005D04998C446d0s0

end


# permit to use 16 cpu within container

add dedicated-cpu

set ncpus=16-16

end

verify

commit


Put this confing into zone1.txt and edit this file to adjust your configuration. Then create, install and boot container.

# zonecfg -z zone1 -f zone1.txt

# zoneadm -z zone1 install

# zoneadm -z zone1 boot


When you are done login to newly created container and proceed with installing Oracle and configuring ASM.


Tips:

  1. Since I have dual-FC connected 6140 array I have it configured with Solaris I/O multipathing feature enabled

# stmsboot -D fp -e

  1. I really like to use VNC to access my lab remotely


del.icio.us digg technorati

Monday Feb 23, 2009

Oracle Database 10g и Real Application Cluster (RAC) отныне официально сертифицированы и поддерживаются на Sun Logical Domains (LDoms). Детали доступны так же в technology support matrix. Используя технологию виртуализации LDoms администратор максимально гибко управляет ресурсами системы и получает максимальный уровень безопасности, одновременно увеличивая уровень использования имеющихся серверов.

Среди множества возможных конфигураций я хотел бы специально отметить возможность создания кластера из нескольких нод, расположенных на одном единственном физическом сервере. Начните создавать свой кластер на чипе прямо сейчас.

Ожидайте, скоро тут появится пример конфигурации.

del.icio.us digg technorati

Oracle Database 10g and Real Application Cluster (RAC) now officially certified and supported on Sun's Logical Domains (LDoms). For details also check technology support matrix. With LDoms virtualization technology administrators can achieve great level of resource management and security level at the same time having higher utilization of servers.

Among several types of deployment I would like to mention one specifically for developers. By using LDoms now you can have single box with a number of guest domains configured as a cluster nodes. Start with making cluster on a chip.

Stay tuned for real world configuration example.

del.icio.us digg technorati

Monday Feb 16, 2009

When you are creating Oracle Database using templates/examples from the Oracle Database distribution you may fail with ORA-00018: maximum number of sessions exceeded. This can happen on a systems with Niagara chip. It seems that it have too many CPUs (virtual ones). Quick workaround is to turn off most of them at this time:

# psradm -f 16-255

Then create database and turn them back.

# psradm -n 16-255

Your system may have not so many (256) vCPUs. I faced the same problem with 64 vCPU and solution works for me.

The same trick works for Oracle Application Server reporting ORA-00371: not enough shared pool memory. Confirmed by Alexey, such trick is working.

Update: Glenn Fawcett offers another solution, suggesting to set CPU_COUNT on systems that have large number of vcpu's.

del.icio.us digg technorati
In this example you will see how to configure Oracle ASM on Solaris.


The following system will be used in this example: Sun T5220 with attached 6140 array, Solaris 10 (10/08) and Oracle 11.


Briefly, Oracle Database installation steps can be performed as five separate steps:

  1. Install Oracle binaries only

  2. Install Oracle patchset

  3. Configuring ASM

  4. Configuring Listener

  5. Database Creation

[Read More]
del.icio.us digg technorati

Friday Jan 23, 2009

Best Practices for Running Oracle Databases in Solaris Containers” now available on Sun/BluePrints site. This document describes Solaris Containers features for using with Oracle databases. You will learn how to setup Container and assign resources to it (scheduler, CPU and memory capping). It tells you which privilege gives you ability to use Dynamic Intimate Shared Memory (DISM) with Oracle. You may find how to setup Container so it will have it's own IP stack. Mounting UFS and ZFS filesystems, devices in Containers and System V Resource Controls also covered.


Summary

Solaris Containers provide a very flexible and secure method of managing multiple applications on a single Solaris OS instance. Solaris Containers use Solaris Zones software partitioning technology to virtualize the operating system and provide isolated and secure runtime environments for applications. Solaris Resource Manager can be used to control resource usage, such as capping memory and CPU usage,helping to ensure workloads get required system resources. By utilizing Solaris containers, multiple applications, or even multiple instances of the same application, can securely coexist on a single system, providing potential server consolidation savings.

Oracle 9i R2 and 10g R2 databases have been certified to run in a Solaris container. This paper provides step-by-step directions for creating a non-global zone in a Solaris container that is appropriate for running a non-RAC Oracle database. In addition, it describes special considerations that apply when running an Oracle database within a Solaris container.

del.icio.us digg technorati

This blog copyright 2009 by Roman Ivanov