diff --git a/WHATS_NEW b/WHATS_NEW index f584ca6fd..97acc08a4 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.65 - ================================= + Fix clvmd init script to not deactive non-clustered volume groups. Disallow cluster attr toggling if there are active mirrors or snapshots. Use /bin/bash for scripts with bashisms. Skip internal lvm devices in scan if ignore suspended devices is requested. diff --git a/scripts/clvmd_init_red_hat.in b/scripts/clvmd_init_red_hat.in index 2a4c18787..53e5c3294 100644 --- a/scripts/clvmd_init_red_hat.in +++ b/scripts/clvmd_init_red_hat.in @@ -109,7 +109,10 @@ stop() { rh_status_q || return 0 - action "Deactivating clusterd VG(s):" ${lvm_vgchange} -anl ${LVM_VGS:-$(clustered_vgs)} || return $? + [ -z "$LVM_VGS" ] && LVM_VGS="$(clustered_vgs)" + if [ -n "$LVM_VGS" ]; then + action "Deactivating clustered VG(s):" ${lvm_vgchange} -anl $LVM_VGS || return $? + fi action "Signaling $DAEMON to exit" kill -TERM $(pidofproc $DAEMON) || return $?