news 2026/5/11 13:18:38

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/5/11 1:05:11

StreamingLLM:无需训练即可支持无限上下文的推理技术

StreamingLLM&#xff1a;无需训练即可支持无限上下文的推理技术 cann组织链接&#xff1a;https://atomgit.com/cann ops-nn仓库链接&#xff1a;https://atomgit.com/cann/ops-nn 本文将展示&#xff1a; 如何基于 CANN 原生能力&#xff0c;实现 StreamingLLM 的核心机制 —…

作者头像 李华
网站建设 2026/5/9 21:36:25

编程小白也能玩转Python!零基础就能变办公“效率刺客”

前言 你是不是也经常看到大神用Python几行代码搞定你一下午的工作&#xff0c;却总觉得那是程序员、算法工程师的专属领域&#xff1f;自己连print(“Hello World”)都没打过&#xff0c;是不是就只能旁观&#xff1f;别急——2025年&#xff0c;Python早已不是高不可攀的黑科技…

作者头像 李华
网站建设 2026/5/10 1:20:10

写作压力小了 10个降AI率网站测评:专科生必看的降AI率工具推荐

在当今学术写作日益依赖AI工具的背景下&#xff0c;如何有效降低论文中的AIGC率、去除明显的AI痕迹&#xff0c;同时保持内容的逻辑性和语义通顺&#xff0c;成为了许多专科生面临的难题。随着各大高校对AI生成内容检测标准的不断提升&#xff0c;传统的写作方式已难以满足当前…

作者头像 李华
网站建设 2026/5/1 4:56:31

写作小白救星!千笔写作工具,专科生论文神器

你是否在论文写作中感到力不从心&#xff1f;选题无头绪、文献难查找、逻辑不清晰、格式总出错&#xff0c;甚至查重率让你焦虑不已&#xff1f;专科生的你&#xff0c;或许正被这些学术难题困扰。别担心&#xff0c;一款专为学生量身打造的AI写作工具——千笔AI&#xff0c;正…

作者头像 李华
网站建设 2026/5/10 5:36:56

VMP 加固与 VMProtect 原理与使用

VMP 加固与 VMProtect 原理与使用 目录 概述与来源说明VMP 加固常见疑问与实操要点VMProtect 核心原理VMProtect 使用方法虚拟机指令集与寄存器轮转典型性能数据与测试方法论性能优化与保护级别平衡VMProtect 与其他保护工具对比对抗动态分析与自校验ARM 与 x86 架构差异最佳…

作者头像 李华