sqlite3-database updated by GUI and CLI or only GUI?

Status
Not open for further replies.

audix

Dabbler
Joined
Jun 11, 2011
Messages
36
The reason I am asking is that we need to know if it can get out of sync if using both gui and cli.
 

Tekkie

Patron
Joined
May 31, 2011
Messages
353
My guess is yes they will get out of sync ;) I doubt very much the FreeNAS team put hooks into each UNIX command / tool to update the database, actually you can try it very easily, make a share from the UI and then change the permissions from the CLI pretty sure you won't see those changes in the UI.
 

billm

Dabbler
Joined
Jun 23, 2011
Messages
23
I am confused by the use of the term "CLI" with FreeNAS.

It's my experience that the console menu with choices 1 through 11 does update the database and survive reboots.
If I start a shell session as root and modify files mounted on the thumb drive, they will be overwritten by the config stored in the database on the next reboot.

So, which is the real "CLI" if either, and what should the other be called?

I have used the shell to chmod or chown directories on the raidZ mount. That has survived reboots.

Running 8.0.1 b3
 

Tekkie

Patron
Joined
May 31, 2011
Messages
353
If you open a shell from the terminal any changes you make to the file system using chmod/chown will survive a reboot because the FreeNAS system doesn't query its database at boot and enforce any file system permissions that way, however your UI will show something different from what is actually in affect on the system, same goes for any ZFS changes you can do anything to ZFS from the shell (CLI) and it will survive a reboot, however your UI will be out of sync.

And you are right any changes done from the terminal menu will be stored in the DB, however not from the shell.
 
Status
Not open for further replies.
Top