Tuesday, April 24, 2012

About Life


Swara Yoga:


Effect of Mantras on water



The Five Secrets of Creation
 
                                   By Sri Sri  Ravi  Shankar
                               ----------------------------------
 
Deepening the mystery of creation is science. Deepening the mystery of self is spirituality.
 
The purpose of the technology is to comfort human beings. When spiritual values—human values are ignored and neglected, technology brings fear and destruction instead of comfort.
 
Technology without human values would see nature as a dead object. Science gives insight into the life of nature, and spirituality makes nature come alive. For example, in the eyes of the children, there is nothing dead in the world, animals, trees, the sun the moon all are alive, and have emotions and feelings. But in the eyes of the stressed and ignorant person, even human beings are like robots or objects!
 
Technology without spirituality is destructive. Spirituality is the technology of consciousness, and the whole world is the play and display of consciousness.
 
One whose eyes are not opened is not amazed by the magnificence of the creation. Tell me, what in the creation is not mystery? Birth is a mystery, Death is a mystery and life itself is certainly a greater mystery.
 
Samadhi is being completely immersed in the mystery of life and in this creation. Your knowing or believing in really does not matter.
 
This creation is an unfathomable secret! A wise person makes no effort to conceal a secret. But does he make an effort to reveal a secret either? For example, you do not talk about menstruation or death to a five-year-old. But as children grow older, these things are not hidden from them. These become known as a matter of course.
 
There are five secrets that are sacred and guarded by subtle beings and angels in this creation.
 
Janama Rahasya  or secret of birth : Birth is a secret. How a soul takes a body, and the criteria for selecting the place and time of birth, type of body, and parents are all a secret.
 
Marana Rahasya or secret of death : Death is a highly guarded secret. Death remains a mystery. The process of separation of spirit from matter and its journey from then is a secret.
 
Raja Rahasya or the secret of governance : The principles of governing and the principles of maintaining orderliness in creation are secret.
 
Prakriti Rahasya or the secret of the nature : Nature is a mystery. The more you know about nature, more the mystery deepens. The more a scientist knows, more he realizes there is to know. Science, though appearing to resolve the mystery in creation, has deepened it. Knowledge of particles, wave functions, black holes and the vacuum state have only deepened the mystery.
 
Mantra Rahasya or the secret of Mantras : Mantras are impulses or rhythms of consciousness. The mantras and their effect, influence, method and mode of working are all a mystery.
 
In the West, a secret is usually shameful and dishonest. However, in the East, a secret is honored and considered sacred. Mysteries of creation only deepen. Getting steeped in the mystery is devotion.
 
Deepening the mystery of creation is science. Deepening the mystery of self is spirituality. They are two sides of the same coin. If neither science nor spirituality can create wonder and devotion in you, then you are in deep slumber.
 
Whenever you consider a symbol, place, time, person or act as sacred, your attention is undivided and whole. When the things are the same, you tend to slip into unawareness and inertia. Why does an act that is performed repeatedly lose its sacredness? This happened when your memory overpowers your consciousness and you loose your sensitivity. For example, people living in  Varanasi  (Benaras), a holy city in  India , do not feel that it is a sacred place. Through living in a present moment and throughSadhana, spiritual practices, we can preserve that feeling of sacredness in our acts.
 
There is a pleasure in rest and there is pleasure in activity. The pleasure in activity is momentary and causes fatigue. The pleasure in rest is magnanimous and energizing. To one who has tasted pleasure in rest (Samadhi), the pleasure in activity is insignificant. But in order to have deep rest, one must be active. The proper balance of both is essential.
 
The Mind :
 
Let us examine the five factors that influence the mind. : space, time, food, past impressions, associations and actions.
 
Space : The place you are in. Every place you are in has a different impact on the mind. Even in your house, you can see that you feel different in different rooms. A place where there has been singing, chanting and meditation has different influence on mind. Suppose you like a particular place, you may find a little later it will not be the same.
 
Time : Time is also a factor. Different times of the day and year have different influences on the mind.
 
Food : Different types of food that you eat influence you for a few days.
 
Past impressions or Karmas have a different impact on the mind. Awareness, alertness, knowledge and meditation all help erase past impressions.
 
Associations and actions : The people and events you are associated with influence your mind. With certain people your mind behaves one way and with others a different way.
 
Although these five factors influence your life and your mind, know that Self is more powerful. As you grow in knowledge, you influence them all.
 
Restlessness:
 
Now let us examine the types of restlessness and its remedies. There are five types of restlessness :
 
The first is due to place you are in. When you move away from certain places, streets or houses, you immediately feel better. Chanting, singing, or the innocence of children playing and laughing can change this atmospheric restlessness. If you chant and sing, the vibration in the place changes.
 
The second type of restlessness is in the body. Eating the wrong food, Vata or aggravating food, eating at odd times, not exercising, and overworking can all cause physical restlessness. The remedy for this is exercise, moderation in the work habits and a one to two day vegetable or juice diet.
 
The third type of restlessness is mental restlessness. It is caused by ambition, strong thoughts, likes or dislikes. Knowledge alone can cure this restlessness; this includes seeing life from a broader perspective, knowing about the Self and realizing the impermanence of everything. If you achieve everything, so what? After your achievement you will die. Knowledge of your death or life, confidence in the Self and in the divine can all calm down mental restlessness.
 
There is also emotional restlessness. Any amount of knowledge does not help here.Sudarshan Kriya helps! All that emotional restlessness vanishes. Also the presence of the Guru, a wise person, or a saint will help calm emotional restlessness.
 
The fifth type of restlessness is rare. It is the restlessness of the Soul. When everything feels empty and meaningless, know you are very fortunate. Do not try to get rid of it.
Embrace it! This restlessness of the Soul can bring authentic prayer in you. It brings perfection, Siddhis and miracles in life. It is so precious to get that longing for the Divine.             
Satsang and presence of enlightened once, soothe the restlessness of the Soul. Do not look for the Divine somewhere else in the sky. See God in every pair of eyes, in the mountains, water, trees and animals. How? Only when you see God in yourself. Only Gods can worship Gods.
 
Heightened awareness brings you close to the reality. And for this you have toincrease your Prana. This can be done through 1. fasting and eating fresh food 2. PranayamsSudarshan Kriya, and meditation 3. Silence  4. Cold water baths 5. The right amount of sleep 6. Emotional contentment 7. Presence of the Master 8. Singing and chanting 9. Giving without Givership and service without Doership.
 
All these together are called as Yagya. When you have reverence for the whole universe, you are in harmony with the whole universe. Then, you do not need to reject or renounce anything. When you have reverence in all your relationships, your own consciousness expands; Even small things appear to be significant and big. Every little creature appears dignified. It is the reverence in every relationship that saves the relationship. Cultivate the skill of having reverence for every moment of your life


  • Why do we return to the world:



Most of us come into this world with the seed in us, "It's not OK". And all our life we try to correct events, people and situations. How much can you correct? It's like trying to rearrange the clouds in the sky. This seed does not allow you to be happy, to smile from your heart, to be loving and loveable. It's there all the time like a thorn - irritating, irritating.

This seed, "It's not OK," brings you back into this world again and again. How do you burn this seed?

First recognize that it is there. This can happen in deep introspection and meditation.

Sometimes you feel your body, mind, intellect, memory and ego are also not OK. You justify them or find fault with them. These are also part of the world. Acknowledge what you see as an imperfection and offer it to the Divine.

Have faith in the infinite organizing power of the Supreme Intelligence and have the sincere feeling, "Let thy will be done." Then the seed, "It's not OK," gets burned. "Thy will be done" is a state of total contentment, a state of just love.

We need not even make it a statement about the future. "Thy will alone is happening now."

Question:So everything happening is God's will?

Guruji:Yes, including the thought, "This shouldn't be happening."

Thursday, April 5, 2012

Solaris 11: pkg basics

  • Find out if the pkg exist
    • pkg info gcc or pkg list | head
  • Find the pkg
    • pkg search gcc
  • List the publisher
    • pkg publisher
  • Install the pkg
    • pkg search gcc
    • pkg install gcc-45
  • Uninstall the pkg
    • pkg uninstallgcc
  • Additional info:
    • http://docs.oracle.com/cd/E19963-01/html/820-6572/cmd_line.html
  • Reset the publisher
    • Say the publisher is set to  http://ivy2.us.oracle.com and you need to set it to newURL.Remove the old URL with -G and add new one with -g option 
      • root@dat03:~# pkg publisher
      • PUBLISHER                   TYPE     STATUS P LOCATION
      • solaris                     origin   online F http://ivy2.us.oracle.com/support/sru/
    • pkg set-publisher -G "*" -g  http://ipkg.us.oracle.com/solaris12/dev/ solaris
    • root@dat03:~# pkg publisher
    • PUBLISHER                   TYPE     STATUS P LOCATION
    • solaris                     origin   online F http://ipkg.us.oracle.com/solaris12/dev/




emctl : Can't locate CompEMdbconsole.pm in @INC error.

If you are starting emctl from grid home , you will see error like:

Can't locate CompEMdbconsole.pm in @INC  error. 

emctl start dbconsole
Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin /u01/app/11.2.0.3/grid/perl/lib/5.10.0/sun4-solaris


 

Start emctl from Oracle home to resolve this error.

cd $ORACLE_HOME/bin
./emctl start dbconsole



Wednesday, March 14, 2012

Vmstat : Shows high value in w column (kthr:w)

vmstat show a large number of jobs in the W column:

Server1-bash-3.2# vmstat 3
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr sd sd sd sd   in   sy   cs us sy id
 0 0 68 76448832 36343640 166 310 23 43 44 0 257 6 6 6 8 7067 21823 8140 2 1 98
 0 0 63 68541064 19006448 191 175 0 3 3 0 0 0  0  0  2 4782 28848 5270 0  0 99
 0 0 63 68540680 19006352 234 373 0 21 21 0 0 0 0 0  2 5088 10180 5829 0  0 99
 0 0 63 68535824 19001768 191 304 0 0 0 0 0 0  0  0  2 4572 6873 4896  2  0 98
This happens when your server ran out of RAM previously, due to which the swapper had to swap out entire threads out of memory.

You can issue sar -q  1 to find out how long the threads have been swapped out and you can issue iostat -xnPz 1 on the swap device to see how busy it has been.

You can run the following command to view the process that have been swapped out :
  • echo "::walk thread thr |::print kthread_t t_schedflag|::grep .'==0 '|::eval p_pidp->pid_id" | mdb -k
or
  • echo "::walk thread thr |::print kthread_t t_schedflag|::grep ==0 |::eval <thr=K|::print kthread_t t_procp->p_user.u_comm" | mdb -k

A non-zero number in kthr:w field indicates that certain threads have been swapped out to the (swap) disk as there was a shortage of physical memory. Even when the system frees the memory, those processes continue to swap out till you make them do something (like just truss the process ....)

If the number of processes that are swapped out are not increasing , you are ok. However, if you want to find out which processes have been swapped out and remove them from swap, then you can issue the aboce mentioned command  to get the list of swapped processes and issue truss on them or kill them ..

If the processes are application related, merely restarting the app or rebooting the server will do it.

Tuesday, March 13, 2012

LDOM : Links

  • Reference documentation for ldm command
    • http://docs.oracle.com/cd/E23120_01/html/821-2855/ldm-1m.html#scrolltoc
  • Check ldm version
    • ldm -V 
  •  LDOM installation whitepaper:
    • http://www.oracle.com/technetwork/articles/systems-hardware-architecture/vmsrvrsparc-reliability-163931.pdf

Friday, March 9, 2012

LDOMS :Getting started Part 2

  • This post describes the steps to create 7 ldoms in a T4-2 core such that each LDOM uses a core from the first socket.
  •  
  • Start the required services on the primary domain
# ldm ls
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-c--  UART    128   130560M  0.0%  9m
# ldm list-services
# ldm add-vds primary-vds0 primary
# ldm add-vcc port-range=5000-51000 primary-vcc0 primary
# ldm add-vsw net-dev=net0 primary-vsw0 primary
# ldm list-services
VCC
    NAME             LDOM             PORT-RANGE
    primary-vcc0     primary          5000-5100
VSW
    NAME             LDOM             MAC               NET-DEV   ID   DEVICE     LINKPROP   DEFAULT-VLAN-ID PVID VID   MTU   MODE   INTER-VNET-LINK
    primary-vsw0     primary          00:14:4f:f9:59:1c net0      0    switch@0              1               1   1500         on        

VDS
    NAME             LDOM             VOLUME         OPTIONS          MPGROUP        DEVICe
    primary-vds0     primary


  • STart vntsd service
# svcadm enable vntsd
# svcs vntsd
STATE          STIME    FMRI
online         14:31:06 svc:/ldoms/vntsd:default
#

Add 7 disks for OS install for 7 ldoms

ldm add-vdsdev /dev/rdsk/c1t0d4s2  c1t0d4s2@primary-vds0
ldm add-vdsdev /dev/rdsk/c1t0d6s2  c1t0d6s2@primary-vds0
ldm add-vdsdev /dev/rdsk/c1t0d8s2  c1t0d8s2@primary-vds0
ldm add-vdsdev /dev/rdsk/c1t0d10s2  c1t0d10s2@primary-vds0
ldm add-vdsdev /dev/rdsk/c2t4d5s2  c2t4d5s2@primary-vds0
ldm add-vdsdev /dev/rdsk/c2t4d7s2  c2t4d7s2@primary-vds0
ldm add-vdsdev /dev/rdsk/c2t4d9s2  c2t4d9s2@primary-vds0

Or export ZFS volume for OS install
#ldm rm-vdisk disk1 ldom1
#zpool destroy ldom1P
zpool create ldom1P c1t0d4s2
zfs create ldom1P/ldom1
zfs create -V 20gb ldom1P/ldom1/disk0
ldm add-vdsdev /dev/zvol/dsk/ldom1P/ldom1/disk0 ldom1_disk@primary-vds0


zpool create ldom2P c1t0d6s2
zfs create ldom2P/ldom
zfs create -V 20gb ldom2P/ldom/disk0
ldm add-vdsdev /dev/zvol/dsk/ldom2P/ldom/disk0 ldom2_disk@primary-vds0


zpool create ldom3P c1t0d8s2
zfs create ldom3P/ldom
zfs create -V 20gb ldom3P/ldom/disk0
ldm add-vdsdev /dev/zvol/dsk/ldom3P/ldom/disk0 ldom3_disk@primary-vds0


zpool create ldom4P c1t0d10s2
zfs create ldom4P/ldom
zfs create -V 20gb ldom4P/ldom/disk0
zpool create -f ldom5P c2t4d5s2
zfs create ldom5P/ldom
zfs create -V 20gb ldom5P/ldom/disk0
ldm add-vdsdev /dev/zvol/dsk/ldom5P/ldom/disk0 ldom5_disk@primary-vds0



zpool create -f ldom6P c2t4d7s2
zfs create ldom6P/ldom
zfs create -V 20gb ldom6P/ldom/disk0
ldm add-vdsdev /dev/zvol/dsk/ldom6P/ldom/disk0 ldom6_disk@primary-vds0


zpool create -f ldom7P c2t4d9s2
zfs create ldom7P/ldom
zfs create -V 20gb ldom7P/ldom/disk0
ldm add-vdsdev /dev/zvol/dsk/ldom7P/ldom/disk0 ldom7_disk@primary-vds0

Set up the primary domain with 1 core and 7680M of memory

ldm start-reconf primary
ldm set-memory 7680M  primary
ldm set-core cid=0 primary
ldm add-config initial


Power cycle the server
 reset /SYS

Create the 7 ldoms as under:

ldm add-domain ldom1
ldm set-core cid=1 ldom1
ldm add-vdisk  disk1 ldom1_disk@primary-vds0 ldom1
ldm add-vnet vnet1 primary-vsw0 ldom1
ldm set-variable auto-boot\?=true ldom1
ldm set-variable  boot-device=disk1 ldom1
ldm add-domain ldom2
ldm set-core cid=2 ldom2
ldm add-vdisk  disk2 ldom2_disk@primary-vds0 ldom2
ldm add-vnet vnet2 primary-vsw0 ldom2
ldm set-variable auto-boot\?=true ldom2
ldm set-variable  boot-device=disk2 ldom2
ldm add-domain ldom3
ldm set-core cid=3 ldom3
ldm add-vdisk  disk3 ldom3_disk@primary-vds0 ldom3
ldm add-vnet vnet3 primary-vsw0 ldom3
ldm set-variable auto-boot\?=true ldom3
ldm set-variable  boot-device=disk3 ldom3
ldm add-domain ldom4
ldm set-core cid=4 ldom4
ldm add-vdisk  disk4 ldom4_disk@primary-vds0 ldom4
ldm add-vnet vnet4 primary-vsw0 ldom4
ldm set-variable auto-boot\?=true ldom4
ldm set-variable  boot-device=disk4 ldom4
ldm add-domain ldom5
ldm set-core cid=5 ldom5
ldm add-vdisk  disk5 ldom5_disk@primary-vds0 ldom5
ldm add-vnet vnet5 primary-vsw0 ldom5
ldm set-variable auto-boot\?=true ldom5
ldm set-variable  boot-device=disk5 ldom5
ldm add-domain ldom6
ldm set-core cid=6 ldom6
ldm add-vdisk  disk6 ldom6_disk@primary-vds0 ldom6
ldm add-vnet vnet6 primary-vsw0 ldom6
ldm set-variable auto-boot\?=true ldom6
ldm set-variable  boot-device=disk6 ldom6
ldm add-domain ldom7
ldm set-core cid=7 ldom7
ldm add-vdisk  disk7 ldom7_disk@primary-vds0 ldom7
ldm add-vnet vnet7 primary-vsw0 ldom7
ldm set-variable auto-boot\?=true ldom7
ldm set-variable  boot-device=disk7 ldom7
ldm add-domain park
ldm set-vcpu -c 8 park




Assign them memory

ldm add-memory 8G park
ldm add-memory 8G ldom1
ldm add-memory 8G park
ldm add-memory 8G ldom2
ldm add-memory 8G park
ldm add-memory 8G ldom3
ldm add-memory 8G park
ldm add-memory 8G ldom4
ldm add-memory 8G park
ldm add-memory 8G ldom5
ldm add-memory 8G park
ldm add-memory 8G ldom6
ldm add-memory 8G park
ldm add-memory 8G ldom7
ldm add-memory 8G park


Bind the domains:

ldm bind-domain ldom1
ldm bind-domain ldom2
ldm bind-domain ldom3
ldm bind-domain ldom4
ldm bind-domain ldom5
ldm bind-domain ldom6
ldm bind-domain ldom7
ldm bind-domain park


Thursday, March 8, 2012

LDOMS: Getting started

  • Verify if LDOM is already installed
    • svcs ldmd
  • if not, install LDOM using the following command
    • pkg install ldomsmanager
  • Verify that primary domain exist
    • ldm list primary
  • Check if the primary domain have the required services
    • ldm ldm list-services primary
  • If services are not available in primary domain, add these services. Add a virtual disk server, virutal console concentrator and virutal switch to the primary domain. These virtual services must be created to use the control domain as a service domain and to create virtual devices for other domains.
    • Create a virtual disk server to allow importing virtual disks into a logical domain
      • ldm add-vds primary-vds0 primary
    • Export physical disks as virtual disks . Later these disks can be assigned to guest domain
      • ldm add-vdsdev /dev/rdsk/c3t0d1s2  c3t0d1s2@primary-vds0
    • Verify that virtual disks has been added to virtual disk server by checking the VDS section of the following output
      • ldm list-bindings
    • Add a virtual console concentrator
      • ldm add-vcc port-range=5000-5100 primary-vcc0 primary
    • Find the primary network interface (dladm show-phys) and add a virtual switch associated with primary network card. Virtual switch service enables networking between virtual network (vnet) devices in logical domains. The following command creates vritual switch named primary-vsw0 on net0 interface in the primary domain
      • ldm add-vsw net-dev=net0 primary-vsw0 primary
    • Verify that vsw0 device is created by issue dlam show-phys command 
    • # dladm show-phys
      LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
      net1              Ethernet             unknown    0      unknown   igb1
      net4              Ethernet             up         10     full      usbecm2
      net3              Ethernet             unknown    0      unknown   igb3
      net0              Ethernet             up         1000   full      igb0
      net2              Ethernet             unknown    0      unknown   igb2
      net6              Ethernet             up         1000   full      vsw0
    • Also , verify that switch is created over on net0 interface
    • VSW
          NAME             MAC               NET-DEV   ID   DEVICE     LINKPROP   DEFAULT-VLAN-ID PVID VID                  MTU   MODE   INTER-VNET-LINK
          primary-vsw0     00:14:4f:fb:3f:ea net0      0    switch@0              1               1                         1500         on    
    • Verify the services have been created by using the list-services command
      • ldm list-services primary

  • Remove some resources from primary domain so it can be allocated to guest domains. Configure the control domain with 32 virutal CPUs and 16GB of memory
    • # ldm start-reconf primary
    • # ldm set-vcpu 32 primary
    • # ldm set-memory 16G primary
    • # ldm set-crypto 4 primary
  • Save the configuration and reboot the system
    • ldm add-config initial
    • ldm list-config
    • init 6
  • Enable the virtual network terminal server daemon to provide access to the virtual console to each logical domain
    • svcadm enable vntsd
    • svcs vntsd
  • Create the guest domain ldom1 from the control domain. Assign 48 VCPUs and 24G of memory to it.
    • # ldm create ldom1
    • # ldm set-vcpu 48 ldom1
    • # ldm set-memory 24G ldom1
    • # ldm set-crypto 6 ldom1
    • Assign the disk to your domain
      • ldm add-vdisk pdisk c3t0d1s2@primary-vds0  ldom1 
    •  Set auto-boot? and boot-device variables for the guest domain 
      • ldm set-variable auto-boot\?=true ldom1
      • ldm set-variable  boot-device=pdisk ldom1
    • Assign vnet to the domain
      • ldm add-vnet vnet1 primary-vsw0 ldom1