Can I create default settings for my volumes?

Solution Verified - Updated -

Issue

Based on recommendations from Red Hat, we use the same values for settings on all our volumes:

# gluster volume set <volume name> features.cache-invalidation on
# gluster volume set <volume name> features.cache-invalidation-timeout 600
# gluster volume set <volume name> performance.stat-prefetch on
# gluster volume set <volume name> performance.cache-invalidation on
# gluster volume set <volume name> performance.md-cache-timeout 600
# gluster volume set <volume name> network.inode-lru-limit 90000
# gluster volume set <volume name> lookup-optimize on
# gluster volume set <volume name> client.event-threads 4
# gluster volume set <volume name> server.event-threads 4
# gluster volume set <volume name> performance.nl-cache on

We would like to make this default for our whole gluster environment. At the moment, we have to change these settings on a per volume basis. That involves a lot of typing.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.