09-21-2018 09:12 AM - last edited on 03-14-2019 02:18 PM by NIadmin
Is it possible to install System Link application on C drive and use D drive as data storage location for mongo DB repository. Where can i configure this?
09-25-2018 03:33 PM
You do have the ability to configure where the MongoDB is stored at. Before you start this process, you'll want to make sure that you stop all of the SystemLink processes. You can do this by opening up task manager and going to the details section, and killing the NationalInstruments.ServiceManager.exe. This should kill the rest of the SystemLink services.
After ensuring that the SystemLink services aren't running, you first need to move/copy the DB to the new location. Specifically, you want to copy the "C:\ProgramData\National Instruments\Skyline\NoSqlDatabase\db" directory to a new place. For instance if you were wanting to move the MongoDB to the D drive, you might store it at "D:\SystemLink MongoDB". When you're done moving it you should have the "D:\Systemlink MongoDB\db" directory with all of the files that were in the old location.
Once you've relocated the files, you'll need to edit the mongodb.conf ("C:\ProgramData\National Instruments\Skyline\NoSqlDatabase\mongodb.conf") so that it knows where the MongoDB is. You'll want to change the dbPath from the old path to the new path.
After editing the mongodb.conf, you should be able to start up the services. For this startup, I would recommend opening up the SystemLink Server Configuration Utility and restarting the services there so that you can see if there are any errors while NoSqlDatabase starts up.
10-15-2018 04:51 AM
Thank you for the clear explanation! I was not able to test it yet.
07-18-2019 05:13 PM
Can the database be moved to a network location? For example, I am trying to move it to: \\fstx01\project\fstdata\SystemLink\MongoDB\db. However, the NoSqlDatabase service has an error when I try to restart it in the NI SystemLink Server Configuration.
My mongodb.conf looks like this:
storage:
dbPath: !<!> \\fstx01\project\fstdata\SystemLink\MongoDB/db
journal:
enabled: true
wiredTiger:
engineConfig:
cacheSizeGB: 1
net:
port: 27018
bindIp: localhost
security:
authorization: !<!> enabled
I also tried replacing fstx01 with the IP address, and had the same result.
Thanks,
Chris
08-26-2019 11:29 PM
The NoSqlDatabase service by default uses a system account that doesn't have access to network locations. There is a way to change the user that the service uses to run. Before I get into the instructions I will point out that a database stored on a network location will have reduced I/O performance.
Changing the NoSqlDatabase service user:
"C:\ProgramData\National Instruments\Skyline\Install\Services\Descriptors\NoSqlDatabase.json"
"C:\Program Files\National Instruments\Shared\Skyline\NISystemLinkServerConfigCmd.exe" edit-service-descriptor NoSqlDatabase.json --account-user "<UserWithNetworkAccess>" --account-password "<Password>"replacing <UserWithNetworkAccess> and <Password> with their respective values.
"C:\ProgramData\National Instruments\Skyline\Install\Services\Descriptors\NoSqlDatabase.json"and you should see that both "UserAccountName" and "UserAccountPasswordEncrypted" are specified in the file.
If it doesn't quite work please open
"C:\ProgramData\National Instruments\Skyline\Logs\log.txt"
and look for the last ERROR and paste the line in your reply.
12-10-2019 04:51 AM - edited 12-10-2019 05:23 AM
I have tried the same steps mentioned above. But after this NoSqlDatabase service was not running. Can you please point me to any help document or manual to move the DB location?
Thanks,
Gokilavani
12-10-2019 08:22 AM
When you say it's not running, what does the log.txt say? This is where errors accumulate for debugging purposes.
I will also mention that in the 19.6 version of SystemLink added a configuration GUI for specifying the NoSqlDatabase location.
12-11-2019 04:28 AM
Hi Ryan,
I have tried the same instructions in a fresh systemlink installation and it worked fine. Thanks a lot for your response.
-Vani