Truenas and Gluster - Config question

Sara

Dabbler
Joined
Jun 26, 2022
Messages
18
Hello everyone, I found an article:
which shows that manual configuration of gluster should work ok. I have questions to be sure to Gluster specialists in Truenas :) i think but i'm not sure.

If I use command line commands like "sudo gluster XXX" from the command line (not CLI, but normal gluster commands), will:

- truenas will remember the gluster configuration in the configuration file so that it is not lost during e.g. system update or configuration transfer?
- if not, how to do it, I don't want to use trueCommand because it's experimental for now, and I would like to use gluster because I already have an old gluster environment that I can manage from the command line and I would like to recreate the same new gluster envoirment on truenas by normal classic commands, how to do it preferably without TrueCommand?

Thx :)
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
If I use command line commands like "sudo gluster XXX" from the command line (not CLI, but normal gluster commands)
the CLI is the command line so saying you will use the command line but not use the command line doesn't make sense.
truenas will remember the gluster configuration in the configuration file so that it is not lost during e.g. system update or configuration transfer?
nope.
if not, how to do it,
you don't because it's not part of the design and TrueNAS has zero configuration support for it. there is no suport for CLI configuration changes.
should work ok.
no, this means it will "Work". riding a train by standing on the roof will "Work" too...until it doesnt. (like going though a tunnel)
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
the CLI is the command line
Keep in mind the SCALE has a "TrueNAS CLI" that's distinct from a typical shell. I'm not sure if that's the distinction OP is making, but it would seem to fit. Anything done at the "TrueNAS CLI" would use the API/middleware, and would persist across reboots/upgrades/other events. But I'm pretty sure you can't use "normal gluster commands" at the TrueNAS CLI.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
As far as I can tell, TrueCommand (which is the supported way to manage gluster) manipulates and reads back the status from each of the cluster members.

I have seen direct manipulation reflected in TrueCommand, but it's a fragile harmony, so if you touch gluster locally the wrong way, TrueCommand can just refuse to deal with it or even see it at all.

I don't know that TrueCommand deals too well with putting settings back on a restored system, but I guess that would be the intended way to handle config transfer or system updates.
 

Sara

Dabbler
Joined
Jun 26, 2022
Messages
18
thank you for your answers, it cleared my doubts, I need to rethink the my migration/implementation of gluster on truenas.
 
Top