Category Archives: *NIX

EM12C – Metrics, history and graphics of SQL Server Instance

I recently came across the following problem, the metrics were not saving history and graphs of instances of SQL Server were not being populated.

After opening an SR in ORACLE there could figure out the problem and the same was at OMS repository.

Steps performed:

  1. Connect as SYSDBA to the repository and check the parameter value job_queue_processes.
  2. If the value is 0 we have to change for 1000.
  3. Stop cloud control (OMS) with the command emctl stop oms.
  4. Change the parameter in the database – alter system set job_queue_processes = 1000 scope = both;
  5. Restart data base and start OMS

Done it a few minutes past the metrics are already saving historic and graphics of SQL instances are populated.

It was also resolved the pending status of several data bases.

Em12C_SQL

 

I hope it was useful!!!
Cheers

AIX: Nim Server Commands

To list all the mksysb resources

# lsnim -t mksysb

# lsnim -t spot

To list all the machines

# lsnim -t standalone

OR

# lsnim -c machines

To reset the NIM status of system host-10

# nim -o reset -a force=yes host-10

or

# nim -Fo reset host10

To Force Deallocate all the resources from system host-01

# nim -Fo deallocate -a subclass=all host-01

To rebuild the /etc/niminfo file in the master

# nimconfig -r

To rebuild the /etc/niminof file in the NIM client

# niminit -a master= -a name=

To remove a machine from the NIM environment

# nim -o remove

To define a mksysb resource

# nim -o define -t mksysb -a server=master -a location=file>

To enable Base OS install in a client using mksysb resource

# nim -o bos_inst -a source=mksysb -a spot=spot_53ML4 -a accept_licenses=yes

-a mksysb=file>

 

To add additional software to lppsource1

# nim -o update -a packages=all source=/dev/cd0 lppsource1

To update the spot and lppsource to the latest level

# nim_update_all -l -s -d -u -B

Some useful NIM SMIT Fast paths

smit nim_mkmac # Adding new machines

smit nim_bosinst # For doing BOS install operation on a machine

 

Common NIM Error codes

608 – tftp retrieve of client info file failure

Action If a 608 hang is encountered, verify that the ClientName.info file exists in the /tftpboot directory. If it does not exist, retry the NIM operation to create it. If it does exist, verify that tftp access to the /tftpboot directory is not restricted in the /etc/tftpaccess.ctl file. is also possible that the network adapter was not configured properly in the boot environment

611 – Remote mount of NFS file system failure

Action 611 hangs occur when the client machine is unable to mount a resource from a server. Ensure that NFS is running on the resource server. Verify that the resources specified for the operation are exported properly by checking the /etc/exports and /etc/xtab files on the server. Also, confirm that the resources have permissions set correctly for reading.

613 – Failure setting up route tables

Action 613 hangs usually occur because a route is incorrectly defined for a network in the NIM database. Verify that the correct gateways are specified between networks, and all gateways are functional. Use debug-enabled network boot images to determine which routes could not be defined.

Cheers, 馃檪

HMC Command to get LPAR configuration

This displays what resources are assgined in the profile for a given LPAR.

# lssyscfg -r prof -m managed_system_name | grep name=LPAR_NAME

Cheers, 馃檪

VIO: Virtual Media Library

Steps:

$ mkrep -sp rootvg -size 8G
Virtual Media Repository Created
Repository created within "VMLibrary" logical volume

We鈥檝e now created an empty VML repository which backs onto the /var/vio/VMLibrary filesystem. You can view the VML repository by running the lsrep command.

Check the VML repository to see the new image available for use.

$ lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
   8158     4865 rootvg                   279552           182272

Name                                    File Size Optical         Access
AIX71base.7100-01-00.1of2.iso                 4040 None            ro

Increase repository:

$ chrep -size 5G +5GB

Command Description:

mkrep Creates a virtual media repository
chrep Changes the characteristics of a virtual media repository
rmrep Removes the virtual media repository
lsrep Displays information about the virtual media repository

mkvopt Creates file-backed virtual optical media
lsvopt Displays information about file-backed virtual optical devices
chvopt Changes the characteristics of a virtual optical media
rmvopt Removes file-backed virtual optical media

mkvdev Creates file-backed virtual optical devices
unloadopt Unloads file-backed virtual optical media from a file-backed virtual optical device
loadopt Loads file-backed virtual optical media from a file-backed virtual optical device

Example to mount an ISO:

$ mkvdev -fbo -vadapter vhost1
vtopt0 Available

Now let鈥檚 load the image from the VML into vtopt0.

$ loadopt -vtd vtopt0 -disk AIX71base.7100-01-00.1of2.iso
$ lsmap -vadapter vhost1
SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1          U9133.55A.066EB4H-V1-C34                     0x00000000

VTD                   vtopt0
Status                Available
LUN                   0x8200000000000000
Backing device        /var/vio/VMLibrary/AIX71base.7100-01-00.1of2.iso
Physloc
Mirrored              N/A

To unload the image.

$ unloadopt -vtd vtopt0

If you鈥檙e prompted for another disk (for example, disc 2 during the AIX install).

$ loadopt -f -vtd vtopt0 -disk AIX7100-01-00.2of2.iso
聽Cheers 馃檪

Install Adobe Flash Plugin on Ubuntu 12.04 LTS Precise Pangolin

After upgrade my Ubuntu 11.10 to the new Ubuntu 12.04 LTS almost everything worked perfectly.

The first thing I notice was that some of the shell extentions I had didn’t work (Alternate Menu). But that was not an issue.

The real issue was that the installation of Adobe Flash Player run successfully but the installation of flash plugin didn’t work that well…it raised the following error:

Failure to download extra dat file Name-or.UTF-8

After days of research, yesterday I found a question on Launchpad.net聽related to Ubuntu 12.04 Beta2聽Adobe Flash Player Update issue.

Turns out that the solution to that issue, was the solution to my issue.

Here’s the commands to solve Adobe Flash Player Plugin installation on Ubuntu 12.04 LTS:

sudo apt-get --purge remove adobe-flash-properties-gtk adobe-flashplugin
sudo dpkg -P flashplugin-installer
sudo apt-get --purge autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install adobe-flashplugin

in聽Launchpad.net Answers

I hope it was useful!!!
Cheers

How To Resize /dev/shm Filesystem In Linux

By default installation, RHEL and most Linux distributions mount tmpfs (a RAM-based temporarily filesystem) to /dev/shm directory and this temporarily filesystem size is always set to be half of the installed memory.

If that default size is not something expected, you can increase or reduce the /dev/shm filesystem size at wish.

To be even extreme, you may drop or disable this temporarily RAM-based filesystem entirely, to prevent it from auto-mount during system boots up, if none of the application in that Linux server relying on shared memory function or explicitly using tmpfs (as a quick-and-dirty trick to improve execution performance).

To increase or decrease /dev/shm filesystem size

1) Open /etc/fstab with vi or any text editor of your choice,

2) Locate the line of /dev/shm and use the tmpfs size option to specify your expected size,

e.g. 512MB:
tmpfs /dev/shm tmpfs defaults,size=512m 0 0
e.g. 2GB:
tmpfs /dev/shm tmpfs defaults,size=2g 0 0

The /etc/fstab content format is documented in man fstab and the tmpfs filesystem options can be found in man mount

3) To make change effective immediately, run this mount command to remount the /dev/shm filesystem:

mount -o remount /dev/shm

in Walker News

I hope it was useful!!!
Cheers

vmount: Not owner error on Linux NFS Export

While mounting NFS filesystem from AIX node named AIX_LPAR onto Linux NFS server Linux_NFS_server, got the error:

vmount: Not owner

root [AIX_LPAR] /tmp: mount Linux_NFS_Server:/local/home/app/media /mnt
mount: giving up on:
 Linux_NFS_Server:/local/home/app/media
vmount: Not owner

Solution:

Set parameter聽nfs_use_reserved_ports聽to 1 on client AIX_LPAR

root [AIX_LPAR] /tmp: nfso -o nfs_use_reserved_ports=1
Setting nfs_use_reserved_ports to 1
root [AIX_LPAR] /tmp: mount Linux_NFS_Server:/local/home/app/media /mnt

I hope it was useful!!!
Cheers

Installing remmina on Fedora 15 to connect remotely windows servers

The basic constant you must think on that is that installing remmina, all of it is prepared to rdp to a windows machine. But, by default not always the rdp protocol is disable for that. So, first you must install too the plugins.

These plugins change sometimes their names, so my advice is: search it on yum. as described below:

yum search remmina-plugin
Loaded plugins: langpacks, presto, refresh-packagekit

========================= N/S Matched: remmina-plugin ==========================

remmina-plugins-common.x86_64 : Common files for Remmina Remote Desktop Client

 : plugins

remmina-plugins-nx.x86_64 : NX plugin for Remmina Remote Desktop Client

remmina-plugins-rdp.x86_64 : RDP plugin for Remmina Remote Desktop Client

remmina-plugins-telepathy.x86_64 : Telepathy plugin for Remmina Remote Desktop

 : Client

remmina-plugins-vnc.x86_64 : VNC plugin for Remmina Remote Desktop Client

remmina-plugins-xdmcp.x86_64 : XDMCP plugin for Remmina Remote Desktop Client

聽Name and summary matches only, use "search all" for everything.

Then after that I installed the: “remmina-plugins-rdp.x86_64” described above:

yum install remmina-plugins-rdp.x86_64

et voi’l谩 !

(source: http://joysofprogramming.com/install-xfce4-remmina-plugin-fedora-rhel/)

 

 

 

Install EMC Powerpath + Naviagent on Oracle Linux 6

I had to install Oracle Linux 6 from scratch on two servers that are going to be used in a RAC. As we’re going to use ASM to access the datafiles and the storage is provided by LUNS from an EMC Clariion, I had to install the Navisphere agent and the EMC PowerPath on a trial and error method.

And surprise, surprise, libraries were missing as usual when I tried to install the RPMs I downloaded from the manufacturers support sites.

Since none of the machines had internet access and I could only use the installation media as a mounted filesystem (through iLO), I thought it would be a good idea to create a new repository for yum and from there try to install the missing dependencies.

 

So, first step: Create the repo:

[root@A1UAC3DB10 ~]# yum update

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with ULN.

ULN support will be disabled.

Setting up Update Process

No Packages marked for Update

[root@A1UAC3DB10 mnt]# cd /media

[root@A1UAC3DB10 media]# ls

OL6.0 x86_64 Disc 1 20110203

[root@A1UAC3DB10 media]# cd OL6.0\ x86_64\ Disc\ 1\ 20110203/^C

[root@A1UAC3DB10 media]# cd /etc/yum-re.repos.d/

[root@A1UAC3DB10 yum.repos.d]# ls

packagekit-media.repo

[root@A1UAC3DB10 yum.repos.d]# vi rhel-cd.repo

“rhel-cd.repo” [New File]~

INSERT –[rhel-cd]

name=Red Hat Enterprise Linux $releasever $basearch CD

baseurl=file:///media/OL6.0\ x86_64\ Disc\ 1\ 20110203

enabled=1

gpgcheck=0:wq

“rhel-cd.repo” [New] 5L, 145C written

Read more »

Optimization WordPress Plugins & Solutions by W3 EDGE