报错FileSystemException: /datas/nodes/0/indices/gtTXk-hnTgKhAcm-8n60Jw/1/index/.es_temp_file

简介: 首先我碰到的问题是服务器突然断电导致elasticsearch宕机,当我再次启动的时候>FileSystemException: /data/elasticsearchDatas/datas/nodes/0/indices/gtTXk-hnTgKhAcm-8n60Jw/1/index/.es_temp_file: 结构需要清理

首先我碰到的问题是服务器突然断电导致elasticsearch宕机,当我再次启动的时候

FileSystemException: /data/elasticsearchDatas/datas/nodes/0/indices/gtTXk-hnTgKhAcm-8n60Jw/1/index/.es_temp_file: 结构需要清理

到对应的目录中查看,ls查看文件时报

ls: 无法访问write.lock: 结构需要清理

所以判断肯定是由于断电导致分区数据损毁,丢失了文件的信息。所以需要修复分区,并重新挂载到目录上。

查看磁盘挂载

df -h

在这里插入图片描述

可看到文件所在的目录挂载的分区是/dev/sdc,这就是我们需要修复的。

先将已经挂载好的分区卸载下来

umount /dev/sdc

然后修复

xfs_repair /dev/sdc

修复好以后重启服务器、或者重新挂载,当然要看你挂载的分区持久化写入/etc/fstab中,如果写了,则重启服务器就会重新将分区挂载到目录下。
重启命令

reboot

根据上述操作,我的问题解决了,你的呢?

目录
相关文章
|
3月前
|
机器学习/深度学习 人工智能
【CatBoost报错解决】CatBoostError: Bad value for num feature[non default doc idx=0,feature idx=19]=
【CatBoost报错解决】CatBoostError: Bad value for num feature[non default doc idx=0,feature idx=19]=
|
5月前
解决 Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
解决 Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
544 0
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
WRF模式报错:traj_opt is zero, but num_traj is not zero; setting num_traj to zero
最近,在跑WRF模式时遇到一个奇怪的问题,从WPS一直到WRF中运行./real.exe,全都没有问题,直到提交作业到集群上时发现,很短的时间内作业就结束了,而且只生成了一个时刻的数据,通过将debug_level调整到999发现,产生以下问题:
WRF模式报错:traj_opt is zero, but num_traj is not zero; setting num_traj to zero
|
PHP 开发工具
报错 invalid [default store dir]: /tmp/
php sdk解压以后文件如下   推荐处理方案    1.如果使用支付宝sdk,首先lotusphp_runtime 文件也要一起使用  支付宝现在的php sdk中有lotus框架可以和aop文件   夹放在同一级    2.
833 0