• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for March 2019

How to set up cron for automatic data collection from the system activity reporter (SAR) in Solaris 10 and 11

by admin

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” […]

Filed Under: Solaris, Solaris 11

How To Increase The Retention Of “sar” Data To ‘N’ Days in Linux

by admin

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. […]

Filed Under: Linux

How to Compress and Extract Files and Directories in Linux Using gzip and bzip2

by admin

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 […]

Filed Under: Linux

How to Restore ASM Based OCR After Complete Loss of the CRS Diskgroup on Linux/UNIX

by admin

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 […]

Filed Under: ASM, oracle, Oracle 11g, oracle 12c, RAC

How to Find OCR Master Node

by admin

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 […]

Filed Under: oracle, Oracle 11g, oracle 12c, RAC

What is the difference between the -i and -U options used in rpm command in Linux

by admin

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 […]

Filed Under: Linux

“yum update” fails with “[package version 1] is a duplicate with [package version 2]”

by admin

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 […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

How to configure LDAP Client on CentOS/RHEL 6 using SSSD

by admin

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 […]

Filed Under: CentOS/RHEL 6, Linux

How to Integrate CentOS/RHEL system into an AD Domain with LDAP/Kerberos/SSSD

by admin

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] […]

Filed Under: CentOS/RHEL 6, Linux

« Previous Page

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright