Header Shadow Image


Archive for the 'NIX Posts' Category

Linux LVM: Adding Disk Space to Virtual of Physical Drives

Linux LVM: Adding Disk Space to Virtual of Physical Drives In this writeup, we will aim to increase the size of the root drive that has: 1) Standard drive partitioning using fdisk and no LVM: /dev/sda1 2) Has LVM for the OS and files: /dev/sda2 This procedure will help to avoid the can't find the […]

DNS issue: Can’t ping but nslookup works

DNS issue: Can't ping but nslookup works You can do several things in this case. Start Services then recycle DHCP Client.  ipconfig /flushdns and netsh int ip reset resettcpip.txt can fix this temporarily as well. I've elected to simply stop DHCP Client and let the system do all lookups against my internal DNS servers. This […]

Setup a USB Null Modem for Kernel Dump Captures

We will setup a serial null modem cable for administering and connecting to a physical machine via another in the event that:   1) We want to capture kernel crashes and dumps.   2) Login to the machine machine remotely via another linux box to do things like restart the network.   For this we will need:   1) […]

com.cloudera.cmf.service.CommandException: java.io.IOException: Cannot create command directory: /var/lib/cloudera-scm-server/temp/commands/114

Getting this? com.cloudera.cmf.service.CommandException: java.io.IOException: Cannot create command directory: /var/lib/cloudera-scm-server/temp/commands/114 it's because we blow the folder away.  Reinstall the packages: [root@cm-r01nn01 ~]# yum reinstall cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server -y Thx, TK

Kernel Panic and Disabling HPET

Recent kernel panics have pointed to an issue with the HPET timer on some motherboards.  To disable, add the following to the kernel line: nohpet clocksource=rtc Then also disable HPET from BIOS. Thx, TK  

locale: Cannot set LC_CTYPE to default locale: No such file or directory

Getting this? # locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory   Check this: [root@cm-r01nn02 yum.repos.d]# cat /etc/locale.conf LANG=en_EN.UTF-8 [root@cm-r01nn02 yum.repos.d]#  should be: [root@cm-r01nn01 ~]# cat […]

ERROR scm-web-216:com.cloudera.cmf.model.DbCommand: Command null(clusterHostInspector) has completed. finalstate:FINISHED, success:false, msg:Can only run host inspector when host is healthy.

When receiving this error, look into the worker cloudera–scm-agent to determine why.  In our case it was:   [29/Mar/2019 00:11:47 +0000] 800 MainThread agent        ERROR    Error, CM server guid updated, expected f2f1e171-d20d-4425-afe9-58b567b51397, received 18757343-bd5c-4b15-a104-91fd432ebc82 Then follow this page to resolve the above.   Thx, TK

Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.

If you are getting the following: 2019-03-21 01:04:17,021 FATAL main:org.hsqldb.cmdline.SqlFile: SQL Error at 'UTF-8' line 6: "alter table SETTINGS     add column LDAP_USER_SEARCH_BASE varchar(1024),     add column LDAP_USER_SEARCH_FILTER varchar(1024),     add column LDAP_GROUP_SEARCH_BASE varchar(1024),     add column LDAP_GROUP_SEARCH_FILTER varchar(1024)" Row size too large. The maximum row size for the used table […]

Free IPA Replication Verification Tool

There is a tool available that does a verification of the replication of each FreeIPA host: yum install git -y; git clone https://github.com/peterpakos/checkipaconsistency.git # ./cipa -d mws.mds.xyz -W "SECRET" +——————–+————+————-+——-+ | FreeIPA servers:   | idmipa03   | idmipa04    | STATE | +——————–+————+————-+——-+ | Active Users       | 1       […]

Zabbix: [Z3001] connection to database ‘zabbix’ failed: [2003] Can’t connect to MySQL server on ‘mysql-01.abc.xyz.123’ (13)

Zabbix error: [Z3001] connection to database ‘zabbix’ failed: [2003] Can't connect to MySQL server on 'mysql-01.abc.xyz.123' (13) related to: audit.log:type=AVC msg=audit(1549949080.977:11328): avc:  denied  { name_connect } for  pid=9115 comm="zabbix_server" dest=3306 scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:object_r:mysqld_port_t:s0 tclass=tcp_socket is solved by: # grep AVC /var/log/audit/audit.log | audit2allow -M systemd-allow; semodule -i systemd-allow.pp Cheers, TK


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License