Friday, 14 August 2015

How to change /var/log/messages permission in Linux

Add below lines in /etc/logrotate.d/syslog



[root@test001 log]# cat /etc/logrotate.d/syslog
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
create 0644 root root
rotate 6
weekly
    sharedscripts
    postrotate
/etc/init.d/syslog reload
    endscript
}

[root@test001 log]# cat /etc/cron.daily/logrotate
#!/bin/sh

/usr/sbin/logrotate --force /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi

exit 0

Wednesday, 22 July 2015

Network configuration in Oracle VM Manager




 Click on Networking --> VLAN Interfaces --> serverpool --> ovm server -- click on "+"


Select NIC card  --> Next


Enter VLAN ID RANGE --> Next


 After finsh--> Once job got completed-->Click on Network -->create a Local Network on a single server



Select server --> click on finish






VMs appear as "ORPHAN" error


Error VMs appear as "ORPHAN".





Solution


1. Repositories -> Refresh
2. Server -> Rescan Physical Disks
3. Server -> Rediscover Server




Monday, 20 July 2015

Oracle VM Server 3.3 installation steps

Download Oracle VM server software iso and then upload it vmware or server hardware through console.












































































Oracle VM Manager 3.3 installation steps

For installing oracle virtual manager download below zip file from oracle site



 mount iso image on /mnt


Run createOracle.sh command checking and adding prerequisites on host


 Run installer  from /mnt
















Enter admin password (weblogic,oracle,ovs-agent)





Please enter IP address of host and then continue







In 3.3 https is default
After successfully installed you will see Oracle VM Manager UI .Open browser and enter https://vmgrtest:7002/ovm/console



















How to discover ORACLE VM server on different ORACLE VM

Go to /etc/ovs-agent directory and remove existing db directory






Restart ovs-agent services



Go to new vmanager and click on discover server and enter VM agent password and VM server IP




















Check the status in Navigation window



Thursday, 18 June 2015

may contain holes - can't swap on it

Error

root@test001# mkfile 5G swap1
root@test001# swap -a /test/app02/swap1
"/test/app02/swap1" may contain holes - can't swap on it.

Solution


root@test001# zfs create -V 5G -b 8k newpool/swap1
root@test001# swap -a /dev/zvol/dsk/newpool/swap1

zfs swap: Too fragmented in solaris

Error

root@test001# zfs create -V 5G newpool/swap1
root@test001# swap -a /dev/zvol/dsk/newpool/swap1
/dev/zvol/dsk/newpool/swap1 : Too fragmented

Solution


root@test001# zfs create -V 5G -b 8k newpool/swap1
root@test001# swap -a /dev/zvol/dsk/newpool/swap1 

Monday, 15 June 2015

How to update Firmware on T-series server from OPS CENTER 12C

Note: Server will reboot while updating firmware.

Go to plan management and select Update firmaware





















Click on create profile and select latest downloaded firmware


















Click on apply deployment plan
















Select Server (it should added asset as a server hardware while adding asset( ILOM , ELOM , ALOM or RSC) )



























Schedule now or later time and click on apply



Wednesday, 13 May 2015

How to install Oracle Enterprise Manager Ops Center 12c

Pre requirements


Download Ops Center 12c from below link

http://www.oracle.com/technetwork/oem/ops-center/oem-ops-center-188778.html

Download OCDoctor--latest.zip
unzip and the run below command

cd OCDoctor./OCDoctor.sh --ec-prereq


Unzip and untar the enterprise-controller

 
Download below 2 file from oracle and copy into /var/tmp/download directory




 Swap minimum should be  equal to RAM size
/usr/bin/ulimit -n is 256, needs 65536
/var/opt should be more than 100GB

Installation steps:

Go to downloaded XVM bundle directory and then run ./install
















After completed installation open below link from browser





















Complete below steps after login into ops center 12c first time



















Add new asset into ops center 12c

























Click on Add Assets































Click on create profile



















Enter Name and select Asset Type


































Add Name and IP Ranges (you can add multiple host IP's separate it by comma(,))





















































Select SSH and click on New



Click on Create and then Next

Click on Finish


Add same IP's and click on Add Now



Check job in jobs bar