We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98650b2 + 8655d9a commit 46e2a1aCopy full SHA for 46e2a1a
scripts/vm/hypervisor/kvm/kvmheartbeat_clvm.sh
@@ -78,8 +78,8 @@ hbFile=$hbFolder/$HostIP-$poolPath
78
79
write_hbLog() {
80
#write the heart beat log
81
- path=$(pvs 2>/dev/null | grep -w $poolPath | awk '{print $1}')
82
- persist=$(sg_persist -ik $path)
+ path=$(pvs 2>/dev/null | grep -w $poolPath | awk '{print $1}' | sed 's/[0-9]//g')
+ persist=$(multipath -l $path | grep status=active)
83
if [ $? -eq 0 ]
84
then
85
Timestamp=$(date +%s)
0 commit comments