[Linux-cluster] Startup and Shutdown of a Virtual/Physical cluster

Johannes Russek johannes.russek at io-consulting.net
Thu Jan 24 22:46:37 UTC 2008


>   for a in `clustat -l | grep "^Service Name" | awk '{print $4}' `; do
>     clusvcadm -d $a
>   done
>
> ... however, it won't work if you put spaces in your service names ;)
>
> -- Lon
clustat -l | sed -n 's/^Service Name.*: //g p' | xargs -n 1 clusvadm -d
there you go, should work even with space :)
i don't know if the "-n 1" is necessary though.
regards,
johannes




More information about the Linux-cluster mailing list