Re: Startup and Shutdown of a Virtual/Physical cluster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




  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

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux