删除volume前,先stop volume,如果volume是stopped状态的,则返回0

web_backend_develope
chenlw 9 years ago
parent a2b6affc16
commit 3829dabbbf

@ -280,7 +280,7 @@ public class SetVolume {
if (new VolumeInfo().getVolumeStatus(volumeName).equals("Stopped")) {
log.error("3502 the volume is already stoped");
System.out.println("3502 the volume is already stoped");
return -1;
return 0;
} else {
String command = "echo -e \"y\"| gluster volume stop " + volumeName;
List<String> reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);

Loading…
Cancel
Save