The Problem Unable to unmount a Windows share mount point using umount command. This Windows share is not being used by any processes recently. When executing umount command, the following error is seen; umount: /data01: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) The Solution The error 'umount: device is busy' means that the mount point is being held up by the server due to some reason. An lsof command is executed … [Read more...] about CentOS/RHEL : Unmounting a Windows Share Fails – “device is busy”
CentOS/RHEL 6
How to activate a “SUSPENDED” LVM physical volume
When suspending a device using the command dmsetup suspend, any I/O that has already been mapped by the device but has not yet completed will be flushed. For example, lvextend command was executed and for some reason, it did not finish. This will keep the volume in suspended mode and all I/O will be blocked. Most of the time, this indicates a problem with the underlying physical volumes and should be investigated further. How to confirm if PV is SUSPENDED Check for the # dmsetup info … [Read more...] about How to activate a “SUSPENDED” LVM physical volume
Downgrading an rpm package to a lower version (using “rpm” command)
Question: How to downgrade an rpm package in CentOS/RHEL 6 system to a lower version using the "rpm" command? Its not really recommended to use rpm command instead of yum to downgrade an rpm package. But in case if you don't have a choice use the below procedure. Pre-requisites Make sure you have downloaded all the packages and its dependencies for the lower version. Downgrading rpm version For the purpose of this post we are downgrading the systemd packages from … [Read more...] about Downgrading an rpm package to a lower version (using “rpm” command)
How to configure Linux Resource Groups (cgroups) for MySQL
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 = /cgroup/cpumem; } # High priority group group mysqldb { cpu { # Allocate the relative share of CPU resources … [Read more...] about How to configure Linux Resource Groups (cgroups) for MySQL
CentOS/RHEL – How to Remove stale ISCSI Target Node Information from ISCSI Initiator Server
The Problem Stale ISCSI target connections which are still present on Initiator node can lead to various issues like: 1. hung iscsid service which can lead to global outage. 2. flood of messages error like: messages:Jun 3 13:58:00 server1 iscsid: iscsid: Connection5:0 to [target: iqn-name, portal: ip-here,3260] through [iface: default] is shutdown. messages:Jun 3 13:58:00 server1 iscsiadm: iscsiadm: Could not login to [iface: default, target: iqn-name, portal: ip-here,3260]. messages:Jun … [Read more...] about CentOS/RHEL – How to Remove stale ISCSI Target Node Information from ISCSI Initiator Server
CentOS/RHEL 6 Kernel Panic – “Out of memory” kernel parameter panic_on_oom is enabled
The Problem CentOS/RHEL 6 system reboot due too out of memory error: DUMPFILE: vmcore [PARTIAL DUMP] CPUS: 2 DATE: Mon Feb 29 05:28:02 2016 UPTIME: 33 days, 09:45:55 LOAD AVERAGE: 1.88, 1.52, 1.41 TASKS: 218 NODENAME: localhost RELEASE: 2.6.32-431.el6.x86_64 VERSION: #1 SMP Sun Nov 10 22:19:54 EST 2013 MACHINE: x86_64 (3000 Mhz) MEMORY: 8 GB PANIC: "Kernel panic - not syncing: Out of memory: system-wide panic_on_oom is enabled" PID: 31010 COMMAND: "java" … [Read more...] about CentOS/RHEL 6 Kernel Panic – “Out of memory” kernel parameter panic_on_oom is enabled
How to enable core dump for Applications on CentOS/RHEL
1. In CentOS/RHEL core file creation is disabled by default. To enable it, executing the below command: # ulimit -S -c unlimited > /dev/null 2>&1 then execute the program in the same shell environment. 2. To enable it permanently, please follow steps below: - Edit /etc/security/limits.conf. # vi /etc/security/limits.conf * soft core unlimited The '*' is used to enable coredump size to unlimited to all users. - Edit /etc/sysctl.conf to add the path of the core dump and file … [Read more...] about How to enable core dump for Applications on CentOS/RHEL
How to add additional language support in CentOS/RHEL
Question: How to add additional language support in CentOS/RHEL? To add specific language support in CentOS/RHEL, you need firstly confirm the correct language group name by "yum grouplist" command. # yum grouplist The available language groups will be displayed in yum output as below: # yum grouplist Loaded plugins: refresh-packagekit, rhnplugin Setting up Group Process Installed Groups: ... Installed Language Groups: Arabic Support [ar] Armenian Support [hy] ... Available … [Read more...] about How to add additional language support in CentOS/RHEL
What are “segfault” messages in /var/log/messages file
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. The Linux kernel will response it by performing some corrective action, generally passing the fault to the offending process by sending the … [Read more...] about What are “segfault” messages in /var/log/messages file
rpm: error while loading shared libraries: invalid ELF header
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 liblzma.so file and associated soft link need to be restored. Follow the steps outlined below … [Read more...] about rpm: error while loading shared libraries: invalid ELF header