The Problem When trying to open an ssh connection to a system with a specific account, it failed with ‘Connection reset by peer’. Other users can successfully connect with ssh to this system. Below is an example showing the failed login to node [NODE2] with the account ‘oracle’. [oracle@NODE1]$ ssh oracle@[NODE2] oracle@[NODE2]’s password: Read from […]
Archives for February 2021
“Preauthentication Failed While Getting Initial Credentials” – Kerberos Error
The Problem Not able to log into Kerberos using the keytab file. When trying to use the keytab file to log in, the following error is seen: Command: kinit -k -V -t [name].keytab HTTP/[PrincipalName] Error: kinit: preauthentication failed while getting initial credentials The Solution The error, “Preauthentication failed while getting initial credentials” happens when the […]
“Couldn’t authenticate with keytab while discovering which salt to use: hostname: KDC has no support for encryption type” – error while joining domain
The Problem A CentOS/RHEL 6 client fails to be enrolled in an Active Directory domain, with the adcli command randomly failing with the following error written to the console: Couldn’t authenticate with keytab while discovering which salt to use: [SERVER$@DOMAIN_NAME]: KDC has no support for encryption type The following errors are logged at the same […]
How to Switch Back To Previous Version of openjdk in CentOS/RHEL
Question: How to downgrade the Java version which got installed/updated during system patching? 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. Recent version is – java-1.8.0-openjdk-1.8.0.51-1.b16.el6_7.x86_64 Required version is – java-1.7.0-openjdk-1.7.0.85-2.6.1.3.0.1.el6_7.x86_64 # rpm -qa | grep -i […]
“systemd-udevd: Cannot Allocate Memory” and “A start job is running for dev-mapper-\x2droot.device” – CentOS/RHEL 7 booting issue
The Problem System cannot proceed with the boot process, stuck with an error messages: systemd-udevd[369]: fork of ‘/bin/sh -c ‘>/tmp/.lvm_scan-sdc;” failed: Cannot allocate memory A start job is running for dev-mapper-\x2droot.device The Solution If the systemd unit called lvmetad is enabled and running, the metadata is cached which reduces disk scanning and it provides LVM […]
“Device /dev/mappper/mpath25 Not Found (or Ignored By Filtering)” – error while creating physical volume with pvcreate
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 […]
“Read-only locking type set. Write locks are prohibited. Can’t get lock for [volume group]” – error during lvextend
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. […]
“dracut-initqueue[286]: Warning: dracut initqueue timeout – starting timeout scripts” – CentOS/RHEL 7 booting issue
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 […]
“Failed to Start Activation of LVM2 Logical Volumes” and “Unit lvm2-activation-net.service Entered Failed State” – CentOS/RHEL 7 booting issue
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 […]
“WARNING: Failed to connect to lvmetad. Falling back to device scanning” – error while running LVM commands
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 […]