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

The Geek Diary

CONCEPTS | BASICS | HOWTO

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

Archives for September 2018

“Bad id for repo: My Repo, byte = 2” yum update error

By admin

The Problem While executing yum commands user is getting below error: # yum update Bad id for repo: My Repo, byte = 2 The following is the repo file which is used for local dvd image # cat /etc/yum.repos.d/my_repo.repo [My Repo] name=repo1 baseurl=file:///mnt/iso/ enabled=1 gpgcheck=0 The Solution [My Repo] is wrong as it uses spaces between letters which are not properly translated by yum. Do not include white space in [My Repo]. So to correct it change the name file from … [Read more...] about “Bad id for repo: My Repo, byte = 2” yum update error

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

How to disable lvmetad in CentOS/RHEL

By admin

What is lvmetad To improve performance and automatic activation of volume groups and logical volumes by udev, LVM makes use of a metadata cache. By default, LVM manages its metadata centrally using a daemon, lvmetad. How to disable lvmetad Sometimes, especially in a clustered environment, you may find that when you create a volume group on one node of the cluster, the same is not reflected on the other nodes of the cluster. This is mainly due to the cached metadata on the other nodes. Some … [Read more...] about How to disable lvmetad in CentOS/RHEL

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

How to view past performance with sar in Linux

By admin

There are many tools/utilities that can be used to analyze the current system performance. But how do we gauge the historic system performance? For that you can use the System Activity Report (SAR) tool. Using the sar tool, you will be able to look back over a period of time and see how the server has been running. In this post we will see how to install and use the sysstat tools; thus, allowing you to examine historical system statistics. Installing sysstat First thing first, install the … [Read more...] about How to view past performance with sar in Linux

Filed Under: Linux

How to Configure Separate Port For SSH and SFTP On CentOS/RHEL

By admin

Sometimes for the security reasons, there is a need to have a separate port for ssh and sftp on CentOS/RHEL. Here's a short how-to on configuring SSH on port 2222 and SFTP to work on port 22. 1. Since openssh-5.3p1-117.el6.x86_64 for separating the ssh and sftp port on the CentOS/RHEL systems, make changes to the /etc/ssh/sshd_config file and add the following modifications. # vi /etc/ssh/sshd_config Port 22 Port 2222 2. Comment the default subsystem and add the below subsystem. # vi … [Read more...] about How to Configure Separate Port For SSH and SFTP On CentOS/RHEL

Filed Under: CentOS/RHEL 6, Linux

What is OCFS or OCFS2

By admin

1. What is OCFS for Linux? OCFS is an open source clustered file system for Linux designed for use with Oracle RAC on Linux to store Oracle datafiles, redo logs, archive logs, voting disks, quorum files and control files. It is NOT a general purpose file system and should not be used to store a shared Oracle home. OCFS, also referred to as OCFS (Release 1), works with the 2.4 version and later of the Linux Kernel like RHEL, CentOS, SUSE. 2. What is OCFS2 for Linux? OCFS2 is the next … [Read more...] about What is OCFS or OCFS2

Filed Under: oracle, RAC

How to Change the Default Timeout Settings for Telnet Session in CentOS/RHEL

By admin

To modify the telnet timeout you need to change the value of the tcp keepalive parameters. Let us first check the default values of TCP keepalive parameter. # cat /proc/sys/net/ipv4/tcp_keepalive_time 7200 # cat /proc/sys/net/ipv4/tcp_keepalive_intvl 75 # cat /proc/sys/net/ipv4/tcp_keepalive_probes 9 The first two parameters are expressed in seconds, and the last is the pure number. This means that the keepalive routines wait for two hours (7200 secs) before sending the first keepalive … [Read more...] about How to Change the Default Timeout Settings for Telnet Session in CentOS/RHEL

Filed Under: CentOS/RHEL 6, Linux

How to modify snmp service to listen to an alternative port in CentOS/RHEL

By admin

Follow steps below to check and change the default port (161) number on which snmp service would be listening. NOTE: Similarly for each service there will be a port over which the service is binded to. There is a common miss conception that the port mapping is done over /etc/services file. This is just an alias mapping for the users to refer when connecting across the network. A protocol mapped again the port in the /etc/services file does not mean that the port is blocked or unblocked by a … [Read more...] about How to modify snmp service to listen to an alternative port in CentOS/RHEL

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

How to Stop SSH Session From Getting Timed Out

By admin

The Linux ssh server never disconnects ssh session from server side by default, check switch/router/firewall configuration to avoid the issue without changing the configuration of ssh servers/clients. If the ssh session is getting disconnected due to inactivity and one wants to stop this then please follow the below steps either on client or server side as described below: Client Side Settings To enable the keep alive system-wide (root access required), edit the configuration file … [Read more...] about How to Stop SSH Session From Getting Timed Out

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

How to Setup SSH keys for “passwordless” SSH Login on CentOS/RHEL

By admin

The post outlines the steps to configure passwordless ssh between 2 CentOS/RHEL hosts. The steps although remains almost the same with slight changes across all the Linux distributions. 1. Log in as the user that you want to set up the ssh keys, in this case, we are using user "geek". 2. Create a private and public key : $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/geek/.ssh/id_rsa): Created directory '/home/geek/.ssh'. Enter … [Read more...] about How to Setup SSH keys for “passwordless” SSH Login on CentOS/RHEL

Filed Under: Linux

Why Does “netstat” Output Show Many Connections in CLOSE_WAIT Status?

By admin

This post will provide details on TCP connections reporting 'CLOSE_WAIT' states. The possible state values for TCP sockets are as follows: BOUND        Bound, ready to connect or listen. CLOSED       Closed. The socket is not being used. CLOSING      Closed, then remote shutdown; awaiting acknowledgment. CLOSE_WAIT   Remote shutdown; waiting for the socket to close. ESTABLISHED  Connection has been established. FIN_WAIT_1   Socket closed; shutting down connection. … [Read more...] about Why Does “netstat” Output Show Many Connections in CLOSE_WAIT Status?

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

Next Page »

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary