释放sanlock

注:黄色为注释

1、Sanlock查询:

[root@server ~]# sanlock client status -o p

daemon 4687917f-eae0-4298-89e8-220009d5d7f6.server.com

p -1 helper

p -1 listener

p -1 status

s 28f83d64-cf4e-45cf-87d8-6a262075e198:1:/rhev/data-center/mnt/192.168.5.111\:_home_vms/28f83d64-cf4e-45cf-87d8-6a262075e198/dom_md/ids:0

p 2435 

r 28f83d64-cf4e-45cf-87d8-6a262075e198:SDM:/rhev/data-center/mnt/192.168.5.111\:_home_vms/28f83d64-cf4e-45cf-87d8-6a262075e198/dom_md/leases:1048576:7 p 2435

[root@server ~]# sanlock client status -o p|s

-bash: s: command not found

[root@server ~]# sanlock client status -o s

daemon 4687917f-eae0-4298-89e8-220009d5d7f6.server.com

p -1 helper

p -1 listener

p -1 status

p 2435 

s 28f83d64-cf4e-45cf-87d8-6a262075e198:1:/rhev/data-center/mnt/192.168.5.111\:_home_vms/28f83d64-cf4e-45cf-87d8-6a262075e198/dom_md/ids:0

r 28f83d64-cf4e-45cf-87d8-6a262075e198:SDM:/rhev/data-center/mnt/192.168.5.111\:_home_vms/28f83d64-cf4e-45cf-87d8-6a262075e198/dom_md/leases:1048576:7 p 2435

[root@server ~]# sanlock client gets

s 28f83d64-cf4e-45cf-87d8-6a262075e198:1:/rhev/data-center/mnt/192.168.5.111:_home_vms/28f83d64-cf4e-45cf-87d8-6a262075e198/dom_md/ids:0 

2、Sanlock关闭释放

[root@server ~]# sanlock client shutdown -f 1

shutdown

shutdown done 0

注:

  sanlock client shutdown

       Ask the sanlock daemon to exit.  Without the force option (-f 0), the command will be ignored if any lockspaces exist.  With the force option (-f 1),

       any registered processes will be killed, their resource leases released, and lockspaces removed.

3、再次查询sanlock

[root@server ~]# sanlock client gets

gets error -111

注:

  sanlock client gets

       Print lockspaces being managed by the sanlock daemon.  The LOCKSPACE string will be followed by ADD or REM if the lockspace is currently being  added

       or removed.  Add -h 1 to also show hosts in each lockspace.

[root@server ~]# sanlock client status -o s

[root@server ~]# sanlock client status -o s

[root@server ~]# 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序员如山石

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值