• 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

CentOS/RHEL 5

How to Capture More Logs in /var/log/dmesg for CentOS/RHEL

by admin

Sometimes not all log messages in /var/log/dmesg can be captured after Linux OS/kernel boots up because of too many block devices attached to the server. This post illustrates another way to record all bootup log messages besides configuring the serial console. Basically kernel parameter “log_buf_len” can be configured to increase kernel log buffer size, Name: […]

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

How to enable additional scsi logging in CentOS/RHEL

by admin

Question: How to turn on scsi extended debug messages? What are the field/flag definitions of scsi_logging_level? Additional scsi logging messages can be enabled by writing to /proc/sys/dev/scsi/logging_level either via use of the echo or preferably the sysctl command. The kernel parameter consists of ten packed fields, each 3 bits in length. Each field can have […]

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

How to Disable rpc.quotad Service in CentOS/RHEL 6 and 7

by admin

This post explains how to disable rpc.quotad service on CentOS/RHEL 6 or 7 machines. The protocol used by rpc.rquotad is an unsecured and obsolete protocol and should be disabled. Note: This procedure can disrupt NFS clients relying on disk quotas. To avoid issues, schedule a maintenance outage and stop these NFS clients. For CentOS/RHEL 6 […]

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

How to configure Linux Resource Groups (cgroups) for MySQL

by admin

The following provides the procedure for configuring and using resource groups under Linux: 1. To use cgroups, you must install the “libcgroup” package on your system. # yum install libcgroup 2. Create a config file for cgroups (/etc/cgconfig.conf) and add below configuration. # vi /etc/cgconfig.conf mount { cpu = /cgroup/cpumem; cpuset = /cgroup/cpumem; memory = […]

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

What are “segfault” messages in /var/log/messages file

by admin

This post explains how to analyse the segfault message in message file and to identify the problem in application or operating system side. What is “segfault”? A segmentation fault (often shortened to segfault) or access violation is a fault raised by hardware with memory protection, to notify operating system (OS) about a memory access violation. […]

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

rpm: error while loading shared libraries: invalid ELF header

by admin

The Problem rpm commands issue the following error: rpm: error while loading shared libraries: /usr/lib64/liblzma.so.0: invalid ELF header The Solution In this instance, either liblzma.so or the link to it (/usr/lib64/liblzma.so.0) had gotten overwritten. $ rpm -qa | grep binutils rpm: error while loading shared libraries: /usr/lib64/liblzma.so.0: invalid ELF header To resolve this issue, the […]

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

How to Create yum Repository in CentOS/RHEL

by admin

1. Create a directory for you local repository, e.g. /home/mypackage_dir/repository. Move the RPMs into that directory. # mkdir /home/mypackage_dir/repository # cp /media/packages/* /home/mypackage_dir/repo 2. Fix some ownership and filesystem permissions: # chown -R root:root /home/mypackage_dir/repo 3. Install the createrepo package if not installed yet, and run: # createrepo /home/mypackage_dir/repo # chmod -R o-w+r /home/mypackage_dir/repo 4. […]

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

CentOS/RHEL – vgs command reports error: “global/global_filter” unknown

by admin

The Problem The user has set a new value for the parameter global_filter in the /etc/lvm/lvm.conf file. After setting the parameter value ‘vgs’ command gives below error: # vgs Configuration setting “global/global_filter” unknown. … The Solution User has put the “global_filter” parameter under the ‘global {}‘ section in /etc/lvm/lvm.conf configuration file. global { … global_filter […]

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

‘nestat -s’ showing a large number for “packet reassembles failed” errors in CentOS/RHEL

by admin

The Problem System exhibits some performance degradation. Checking with netstat shows very large (and rising) numbers of “packet reassembles failed” similar to: # netstat -s | fgrep reassembles 353357449 packet reassembles failed 353359152 packet reassembles failed 353360314 packet reassembles failed 353361547 packet reassembles failed 353363020 packet reassembles failed 353364064 packet reassembles failed The Solution In […]

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

“Could not resolve proxy: https; Unknown error” – error with ‘yum update’

by admin

The Problem While executing: # yum update The following error occurs: One of the configured repositories failed (Unknown), and yum doesn’t have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work “fix” this: 1. Contact the upstream for the repository […]

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

« Previous Page
Next Page »

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright