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