File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function setRole() {
37
37
resourceName=$( echo $2 | sed -e ' s|^dev="/dev/drbd/by-res/\+\([^/]\+\).*\?"|\1|' ) ;
38
38
for i in $( seq $MAX_ATTEMPTS ) ; do
39
39
# echo "attempt $i: drbdadm $role $resourceName" >>/var/log/libvirt/hook-qemu.log
40
- /sbin/drbdadm $role $resourceName && return ;
40
+ /usr/ sbin/drbdadm $role $resourceName && return ;
41
41
sleep $SLEEP_BETWEEN_ATTEMPTS ;
42
42
done
43
43
echo " $MAX_ATTEMPTS attempts executing \" drbdadm $role $resourceName failed, giving up.\" " >&2
@@ -49,7 +49,7 @@ function setDualPrimary() {
49
49
resourceName=$( echo $2 | sed -e ' s|^dev="/dev/drbd/by-res/\+\([^/]\+\).*\?"|\1|' ) ;
50
50
for i in $( seq $MAX_ATTEMPTS ) ; do
51
51
# echo "attempt $i: drbdadm net-options --allow-two-primaries=$yesno $resourceName" >>/var/log/libvirt/hook-qemu.log
52
- /sbin/drbdadm net-options --allow-two-primaries=$yesno $resourceName && return ;
52
+ /usr/ sbin/drbdadm net-options --allow-two-primaries=$yesno $resourceName && return ;
53
53
sleep $SLEEP_BETWEEN_ATTEMPTS ;
54
54
done
55
55
echo " $MAX_ATTEMPTS attempts executing \" drbdadm net-options --allow-two-primaries=$yesno $resourceName failed, giving up.\" " >&2
You can’t perform that action at this time.
0 commit comments