news 2026/3/25 18:44:29

Linux随记(二十九)

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Linux随记(二十九)

一、某机器出现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.html

END

三、有台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 xxUser5282662811114:51 oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm -rw-r-----1xxUser xxUser70810411114:50 oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm -rw-r-----1xxUser xxUser94330411114: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

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/3/15 9:26:30

学霸同款 10个 AI论文网站测评:本科生毕业论文写作必备工具推荐

随着高校毕业论文写作任务的日益繁重&#xff0c;越来越多的本科生开始关注高效、专业的写作辅助工具。2026年的学术写作环境对效率和质量提出了更高要求&#xff0c;而AI技术的成熟为这一领域带来了新的可能。为了帮助广大学生更科学地选择适合自己的论文写作工具&#xff0c;…

作者头像 李华
网站建设 2026/3/21 9:02:28

CANN 高级调度篇:实现 Continuous Batching 与 PagedAttention

CANN 高级调度篇&#xff1a;实现 Continuous Batching 与 PagedAttention cann组织链接&#xff1a;https://atomgit.com/cann ops-nn仓库链接&#xff1a;https://atomgit.com/cann/ops-nn &#x1f3af; 目标 支持 动态加入/退出请求&#xff08;无需等待 batch 完成&…

作者头像 李华
网站建设 2026/3/16 3:12:50

CANN 性能剖析实战:从原始事件到交互式火焰图

CANN 性能剖析实战&#xff1a;从原始事件到交互式火焰图 cann组织链接&#xff1a;https://atomgit.com/cann ops-nn仓库链接&#xff1a;https://atomgit.com/cann/ops-nn &#x1f3af; 目标 利用 aclprof 采集 NPU kernel 执行事件转换为 Chrome Trace Event 格式渲染为…

作者头像 李华
网站建设 2026/3/21 19:23:11

leetcode 912. Sort an Array 排序数组

Problem: 912. Sort an Array 排序数组 堆排序可以通过&#xff0c;快速排序会超时 Code class Solution { public:vector<int> arr;void maxheapify(int dad, int len) {int son dad * 2 1;while(son < len) {if(son 1 < len && arr[son 1] > ar…

作者头像 李华
网站建设 2026/3/16 1:25:54

区块链测试规范:智能合约审计标准解读

第一章&#xff1a;智能合约审计的核心意义与行业背景智能合约作为区块链应用的执行引擎&#xff0c;其安全性直接决定去中心化系统的可靠性。2025年DeFi领域因合约漏洞导致的经济损失超$20亿&#xff0c;凸显审计的不可或缺性。对测试从业者而言&#xff0c;审计不仅是漏洞检测…

作者头像 李华