Skip to content

Commit 46e2a1a

Browse files
authored
Merge pull request #639 from jschoiRR/mold-main#2025
[Mold Agent] Clvm heartbeat 체크시 sg_persist 확인 방식에서 multipath active 확인방식으로 변경
2 parents 98650b2 + 8655d9a commit 46e2a1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/vm/hypervisor/kvm/kvmheartbeat_clvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ hbFile=$hbFolder/$HostIP-$poolPath
7878

7979
write_hbLog() {
8080
#write the heart beat log
81-
path=$(pvs 2>/dev/null | grep -w $poolPath | awk '{print $1}')
82-
persist=$(sg_persist -ik $path)
81+
path=$(pvs 2>/dev/null | grep -w $poolPath | awk '{print $1}' | sed 's/[0-9]//g')
82+
persist=$(multipath -l $path | grep status=active)
8383
if [ $? -eq 0 ]
8484
then
8585
Timestamp=$(date +%s)

0 commit comments

Comments
 (0)