0

according to $ gluster volume help
volume stop <VOLNAME> [force] - stop volume specified by <VOLNAME>

But even I run this accordingly.
$ gluster volume stop <VOLNAME> force
it still prompted me like
Stopping volume will make its data inaccessible. Do you want to continue? (y/n)

How could we skip this confirmation process?

刘宇翔
  • 527
  • 8
  • 17
  • 3
    You might want to file a bug @ https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS for this as `force` should not prompt for further input. If you're automating commands, `gluster --mode=script ` is the way to go. – itisravi Oct 05 '17 at 03:47

2 Answers2

1

Check whether this helps:

echo 'y' | gluster volume stop force

kumar
  • 2,530
  • 6
  • 33
  • 57
1

Below command will help you to skip the confirmation process.

echo 'y' | gluster volume stop VolumeName 
Abhishek Gurjar
  • 7,426
  • 10
  • 37
  • 45
Anonymous
  • 11
  • 2