This post outlines steps to set up a cron job for automatic data collection from system activity reporter (aka SAR). Prior to Solaris 10 1. Become the superuser. 2. Edit the following file: # vi /etc/init.d/perf 3. Uncomment the following lines (remove the # sign from the beginning of each line): #if [ -z “$_INIT_RUN_LEVEL” […]
Archives for March 2019
How To Increase The Retention Of “sar” Data To ‘N’ Days in Linux
The system performance is constantly monitored by the sysstat tools. Performance logs are not retained for as long a time as desired. This post outlines steps to increase the retention of sar data to the desired number of days. How To Change The Performance Log Retaining Period Logs are kept for a period of days. […]
How to Compress and Extract Files and Directories in Linux Using gzip and bzip2
The post explains provides basic commands to compress files and folders in Linux OS. To compress a file or folder, gzip and bzip2 are two very popular tools. gzip bzip2 Gzip Compression To compress a file: # gzip file1 A file by name file1.gz will be created in current directory replacing file1. You can compress […]
How to Restore ASM Based OCR After Complete Loss of the CRS Diskgroup on Linux/UNIX
It is not possible to directly restore a manual or automatic OCR backup if the OCR is located in an ASM disk group. This is caused by the fact that the command ‘ocrconfig -restore‘ requires ASM to be up & running in order to restore an OCR backup to an ASM disk group. However, for […]
How to Find OCR Master Node
Function of OCR Master Node OCR master is in charge of OCR update and is the only one that’s allowed to update, the post shows a way to find OCR master. 1. The default OCR master is always the first node that’s started in the cluster. 2. When OCR master (crsd.bin process) stops or restarts […]
What is the difference between the -i and -U options used in rpm command in Linux
RPMs can be installed from the command line like the following: # rpm -Uvh [package-name]-[version].rpm or # rpm -ivh [package-name]-[version].rpm Option -U is for upgrade operation that means installing a new version of a package and removing all previous versions of the same package and also removing obsoleted packages. If you have not installed a […]
“yum update” fails with “[package version 1] is a duplicate with [package version 2]”
The Problem The “yum update” command fails due to duplicate package on the system: tigervnc-server-1.1.0-8.el6_5.x86_64 is a duplicate with tigervnc-server-1.1.0-5.el6_4.1.x86_64 Root Cause This may happen due to a yum update gets halted unexpectedly earlier, resulting in the presence of duplicate packages, as older packages have not been removed from the system. Removing the duplicate packages […]
How to configure LDAP Client on CentOS/RHEL 6 using SSSD
Starting from Oracle Linux 6/ RedHat Linux 6 LDAP service started to use SSSD which is also recommended to use. SSSD The System Security Services Daemon (SSSD) is a service which provides access to different identity and authentication providers. You can configure SSSD to use a native LDAP domain (that is, an LDAP identity provider […]
How to Integrate CentOS/RHEL system into an AD Domain with LDAP/Kerberos/SSSD
The post outlines steps to integrate CentOS/RHEL 6 (client) servers into an AD domain with LDAP/Kerberos/SSSD. 1. Install the required packages: # yum install sssd samba-common krb5-workstation Note: Make sure NTP is running and working as expected and add your AD server in /etc/hosts 2. Configure /etc/krb5.conf to resemble the following:: # vi /etc/krb5.conf [logging] […]