报错内容:
[root@node1 ~]# /etc/init.d/drbd stop
Stopping all DRBD resources: data: State change failed: (-12) Device is held open by someone
additional info from kernel:
failed to demote
ERROR: Module drbd is in use
Retrying once...
data: State change failed: (-12) Device is held open by someone
additional info from kernel:
failed to demote
ERROR: Module drbd is in use
由于drbd故障,数据已经备份,想停掉服务,重新初始化,node2 可以停掉,node1 死活停不掉
分析问题发生的原因:
1.根据报错提示,提示设备在占用,肯定是占用了资源,导致无法释放资源,drbd无法停掉
2.非法操作,没有卸载目录,强制停掉drbd
方法尝试:
1.杀进程:
kill -9 进程pid 无法杀掉
2.检查挂载
并无挂载目录(之前挂载的目录是/data)
3.尝试卸载之前挂载的目录
df -h 虽然看不到挂载,但是他确实真的占用着资源,卸载过后就可以了
阅读(6722) | 评论(0) | 转发(0) |