• 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 February 2021

“Device /dev/mappper/mpath25 Not Found (or Ignored By Filtering)” – error while creating physical volume with pvcreate

By admin

The Problem When trying to create physical volume , getting the below error error: # pvcreate /dev/mappper/mpath25 Device /dev/mappper/mpath25 not found (or ignored by filtering). The issue can be reproduced at will with the following step: # pvcreate /dev/mappper/mpath25 The Solution Upon checking it was found that start sector was not zeroed out. # pvcreate /dev/mappper/mpath25 Device /dev/mappper/mpath25 not found (or ignored by filtering). # fdisk -l … [Read more...] about “Device /dev/mappper/mpath25 Not Found (or Ignored By Filtering)” – error while creating physical volume with pvcreate

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

“Read-only locking type set. Write locks are prohibited. Can’t get lock for [volume group]” – error during lvextend

By admin

The Problem Unable to extend LVM filesystem. The following error message is received on running the lvextend command: Read-only locking type set. Write locks are prohibited. Can't get lock for rootvg resize2fs 1.43-WIP (20-Jun-2013) The filesystem is already 1310720 blocks long. Nothing to do! The Solution The parameter locking_type is set to 4 in /etc/lvm/lvm.conf. # grep locking lvm.conf |grep -v '#' "lvmetad", "metadata", "cache", "locking" ] locking_type = 4 … [Read more...] about “Read-only locking type set. Write locks are prohibited. Can’t get lock for [volume group]” – error during lvextend

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

“dracut-initqueue[286]: Warning: dracut initqueue timeout – starting timeout scripts” – CentOS/RHEL 7 booting issue

By admin

The Problem Messages "dracut-initqueue timeout - starting timeout scripts" are printed loop while booting then an Emergency shell is launched: dracut-initqueue[]: Warning: dracut initqueue timeout - starting timeout scripts dracut-initqueue[]: Warning: dracut initqueue timeout - starting timeout scripts dracut-initqueue[]: Warning: dracut initqueue timeout - starting timeout scripts dracut-initqueue[]: Warning: dracut initqueue timeout - starting timeout scripts dracut-initqueue[]: … [Read more...] about “dracut-initqueue[286]: Warning: dracut initqueue timeout – starting timeout scripts” – CentOS/RHEL 7 booting issue

Filed Under: CentOS/RHEL, CentOS/RHEL 7

“Failed to Start Activation of LVM2 Logical Volumes” and “Unit lvm2-activation-net.service Entered Failed State” – CentOS/RHEL 7 booting issue

By admin

The Problem System cannot boot-up properly with below logs: [ OK ] Started File System Check on /dev/xvdd. [ OK ] Started File System Check on /dev/xvdg. [ OK ] Started File System Check on /dev/xvdb. [ OK ] Started File System Check on /dev/xvdc. [ OK ] Started File System Check on /dev/disk/by-label/BOOT. Mounting /boot... [ OK ] Mounted /boot. [FAILED] Failed to start LVM2 PV scan on device 202:65. See 'systemctl status lvm2-pvscan@202:65.service' for details. [FAILED] Failed to … [Read more...] about “Failed to Start Activation of LVM2 Logical Volumes” and “Unit lvm2-activation-net.service Entered Failed State” – CentOS/RHEL 7 booting issue

Filed Under: CentOS/RHEL, CentOS/RHEL 7

“WARNING: Failed to connect to lvmetad. Falling back to device scanning” – error while running LVM commands

By admin

The Problem The LVM commands showing below errors: # pvs WARNING: Failed to connect to lvmetad. Falling back to device scanning. >>>> Masked Active: inactive (dead) Sep 08 20:34:29 systemd[1]: Cannot add dependency job for unit lvm2-lvmetad.socket, ignoring: Unit is masked. Sep 08 20:34:32 systemd[1]: Cannot add dependency job for unit lvm2-lvmetad.socket, ignoring: Invalid request descriptor Sep 08 20:34:38 systemd[1]: Cannot add dependency job for unit lvm2-lvmetad.socket, … [Read more...] about “WARNING: Failed to connect to lvmetad. Falling back to device scanning” – error while running LVM commands

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

“error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory” ‘java -version’ error on Startup

By admin

The Problem "java -version" quits with the error message "error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory" when trying to start the JVM. Case 1 The problem is there if it is run under a normal user or if it is run under the root user $ java -version [PATH_TO]/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory Case 2 The problem is there only if it is run by a normal … [Read more...] about “error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory” ‘java -version’ error on Startup

Filed Under: Linux

“java” command does not run the JVM that has been installed

By admin

The Problem A JDK/JRE from Oracle has been installed on a Linux machine according to the installation instructions. The "java" command does not run the JVM that has been installed. Java applications can fail to run if an unexpected Java Runtime Environment is found. Example from a Red Hat server: $ java -version java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) Disclaimer: The … [Read more...] about “java” command does not run the JVM that has been installed

Filed Under: Linux

CentOS/RHEL: “id” command doesn’t list the Group Name against GID for LDAP Users

By admin

The Problem While running "id" command against LDAP users, it only displays the gid for some secondary group and the group name is not being printed: # id user1 uid=48254(user1) gid=100(users) groups=100(users),5002(group1),5001(group2),41257(group3),856(group4),56971 And, the below error was logged in /var/log/sssd/sssd_nss.log : (Tue Mar 14 05:40:09 2020) [sssd[nss]] [nss_cmd_getgrgid_search] (0x0010): getgrgid call returned more than one result !?! The Solution The new group was … [Read more...] about CentOS/RHEL: “id” command doesn’t list the Group Name against GID for LDAP Users

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

Windows Active Directory Account Shows Inconsistent UID/GID In Different Linux SSSD Clients (CentOS/RHEL)

By admin

The Problem The id command shows different UID and GID on different sssd servers for the same Windows Active Directory user. After purging the sssd cache by sss_cache, the UID and GID are still different. 1. Output from one server: # id ad_test_user uid=[UID](ad_test_user) gid=[GID](ad_test_group) groups=[GID](ad_test_group2),[GID](ad_test_group) # sss_cache -u ad_test_user # id ad_test_user uid=[UID](ad_test_user) gid=[GID](ad_test_group) … [Read more...] about Windows Active Directory Account Shows Inconsistent UID/GID In Different Linux SSSD Clients (CentOS/RHEL)

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

How to install and configure MySQL sys schema

By admin

This is general guidance for DBAs who are looking to use the MySQL sys schema. Introduction The MySQL sys schema is a collection of views, stored procedures, and stored functions to help MySQL database administrators get insight into what MySQL is doing and to help use the Performance Schema. However while the sys schema primarily use the Performance Schema, it also includes information from the Information Schema. The views and stored programs available depends on the version of the sys … [Read more...] about How to install and configure MySQL sys schema

Filed Under: mysql

« Previous Page
Next Page »

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary