[Gluster-users] Reset volume parameters to defaults

Strahil Nikolov hunter86_bg at yahoo.com
Mon Apr 6 16:47:54 UTC 2020


On April 6, 2020 5:58:04 PM GMT+03:00, Dmitry Antipov <dmantipov at yandex.ru> wrote:
>I've set more than 20 per-volume tunables ('gluster volume set XXX aaa
>bbb').
>Is there a 'gluster volume' subcommand to reset all of them back to
>defaults?
>
>Dmitry
>
>________
>
>
>
>Community Meeting Calendar:
>
>Schedule -
>Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
>Bridge: https://bluejeans.com/441850968
>
>Gluster-users mailing list
>Gluster-users at gluster.org
>https://lists.gluster.org/mailman/listinfo/gluster-users

I know only the 'gluster volume reset' , but that is per option reset.

My volume is called  engine and in order to reset it I could run:

for i in $(gluster volume info engine | grep -A  100 'Options Reconfigured'| tail -n +2 | awk -F ':' '{print $1}');  do echo $i; done


for i in $(gluster volume info engine | grep -A  100 'Options Reconfigured'| tail -n +2 | awk -F ':' '{print $1}');  do echo $i; gluster  volume reset engine  $i;  done

Best Regards,
Strahil Nikolov


More information about the Gluster-users mailing list