一、某机器出现Input/output error,无法切root,很多指令无法使用,原因raid卡掉配置,状态status是Foreign
#故障信息:执行mount,ls ,tail,lsblk 等指令出现 Input/output errorsu- root后报错 Segmentation fault raid卡掉配置,状态status是Foreign。奇怪的,是没有告警:
dm-0盘符已经挂了error:
状态status是Foreign:
修复后, 此时status变成了online:
#处理方法:去到机房,查看的机器掉配置,重导入一下 ->导入成功,重启。 技术员说:机器太热,raid卡掉配置#群友见解:A: 没必要 重新import硬盘配置,这个操作让厂商做 数据有问题就投诉。拉个日志,给他们让他们出分析报告说明 原因。 所有盘都成foreign 要求换整套的 背板 sas线 阵列卡 缓存电池。要是想糊弄就import完事。 你这个背板问题不大 毕竟是前后两套背板。2块2.512块3.5 前后背板基本问题就排除了,只有sas线和raid卡问题了。 B: 所有硬盘如果都是出现异常状态 ,重启下就好的,换掉raid卡保险些,如果还复现要尝试换硬盘背板,是这个意思,通过设置恢复相对不保险。 专业[强], 之前遇到类似的维保厂家修了2次,没彻底解决,就保留硬盘其他整机换了。开机后查看 /var/log/messages ,看到一些相关信息:
(823611313s/0x0001/CRIT)- VD 03/3 is now DEGRADED(823611313s/0x0002/FATAL)- Reassignwriteoperation failed on PD16(e0x08/s8)at 6cfa81f8(823611319s/0x0002/CRIT)- Diagnostics failedforPD16(e0x08/s8)(823611490s/0x0002/CRIT)- Rebuild failed on PD16(e0x08/s8)due to target drive error
END
二、elasticsearch-6.7.1下 log4j漏洞(CVE-2021-44832),ApacheLog4j2.x<2.17.1。 也可以升级到elasticsearch-6.8.23
#将新jar包上传到服务。 普通用户xxxUser操作。 两台传统部署方式的ES机器。#1、备份cd/data/xxx/xx/elasticsearch/elasticsearch-6.7.1/lib/mvlog4j-1.2-api-2.11.1.jar logBak4j-1.2-api-2.11.1.jar.bakmvlog4j-api-2.11.1.jar logBak4j-api-2.11.1.jar.bakmvlog4j-core-2.11.1.jar logBak4j-core-2.11.1.jar.bakcd/data/xxx/xx/elasticsearch/elasticsearch-6.7.1/modules/x-pack-securitymvlog4j-slf4j-impl-2.11.1.jar logBak4j-slf4j-impl-2.11.1.jar.bak#2、将新的复制cd/tmp/log4-jcplog4j-1.2-api-2.17.2.jar log4j-api-2.17.2.jar log4j-core-2.17.2.jar /data/xxx/xx/elasticsearch/elasticsearch-6.7.1/lib/cplog4j-slf4j-impl-2.17.2.jar /data/xxx/xx/elasticsearch/elasticsearch-6.7.1/modules/x-pack-security/#3、启停es操作:#停止:kill-9 EsPid#启动:sh/home/xxx/bin/elastisearch.sh./home/xxx/bin/setenvnohup/home/xxx/xx/elasticsearch/elasticsearch-6.7.1/bin/elasticsearch>/home/xxx/logs/es.log2>&1&ES 6.x升级的参考链接:
https://www.elastic.co/cn/downloads/past-releases?product=elasticsearch https://www.elastic.co/guide/en/elasticsearch/reference/6.8/setup-upgrade.htmlEND
三、有台redhat6安装oracle12c client ,ldconfig后,很多指令都无法正常使用。报错1、ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory 。 报错2、ldconfig: /usr/lib64/libcrypto.so.10 不是符号连接 。报错3、chmod: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument 报错4、再次执行ldconfig后显示:段错误 core dumped
以前,在几台redhat6 安装oracle 12c client的rpm包,都是正常的。但这次ldconfig后翻车了。#操作记录:这个机器是redhat6的。 执行下面的脚本 后,就无法正常使用了:[root@xxx shellDir]# cat 0-installOraClient12c.sh#!/bin/bashcd/home/xxUser/shellDir/oracle12cP&&rpm-ivh *.rpmsleep1echo/usr/lib/oracle/12.2/client64/lib>/etc/ld.so.conf.d/oracle-instantclient12.2.conf ldconfigchmod644/etc/ld.so.conf.d/oracle-instantclient12.2.confecho"finish"#------------[root@xxx shellDir]# ls -l /home/xxUser/shellDir/oracle12cP总用量53208-rw-r-----1xxUser xxUser5282662811月114:51 oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm -rw-r-----1xxUser xxUser70810411月114:50 oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm -rw-r-----1xxUser xxUser94330411月114:50 oracle-instantclient12.2-tools-12.2.0.1.0-1.x86_64.rpm[root@xxx shellDir]# bash 0-installOraClient12c.shPreparing...########################################### [100%]1:oracle-instantclient12.########################################### [ 33%]2:oracle-instantclient12.########################################### [ 67%]3:oracle-instantclient12.########################################### [100%]ldconfig: /usr/lib64/libcrypto.so.10 不是符号连接 chmod: errorwhileloading shared libraries: __vdso_time: invalid modefordlopen(): Invalid argument finish[root@xxx shellDir]#[root@xxx shellDir]# cat /etc/ld.so.conf.d/oracle-instantclient12.2.confcat: errorwhileloading shared libraries: __vdso_time: invalid modefordlopen(): Invalid argument[root@xxx shellDir]###################看样子 他是在执行ldconfig后服务器就异常了。#最终处理方法:exportLD_PRELOAD=/lib64/libc-2.12.socd/lib64LD_PRELOAD=/lib64/libc-2.12.soln-sf /lib64/libc-2.12.so libc.so.6#此时可以运行ls 等指令,也可重新ssh连上了。ls
END