Change stored images directory

Historical record of a forum that was for discussion of the setup, configuration, and use of OnePacs for research and educational purposes (non-clinical use).

Please direct any support inquiries through the standard OnePacs ticketing and support system.

The "Announcements" forum will continue to be active and contain announcements related to the OnePacs system.
DataTrade
Posts: 56
Joined: Tue Feb 28, 2012 8:36 am

Change stored images directory

Post by DataTrade » Thu Jun 06, 2013 5:40 pm

I want to change the location of where my images are being stored
After some searching, I found this on the wiki under adding additional storage directories:

Log into JMX console
Go to FileSystemMgt
Find the addFileSystem function
Enter the desired dirPath (ex: D:\images)
Enter the primary AE title of the gateway (ex. MYAET-12345)
Enter availability of ONLINE
Enter status of RW+
Press invoke

So I know it can be done, which leads to my question; where can I find the current setting of where my images are being stored, and how can I change it?

- Brian.

damien
Posts: 37
Joined: Fri Jun 07, 2013 7:03 am

Re: Change stored images directory

Post by damien » Fri Jun 07, 2013 8:06 am

Hi Brian,

You are correct, the FileSystemMgt service within the JMX console is the place to make that change. You may also use this same service to get a listing of all the storage locations in use.

If you are logged onto the Gateway machine, and everything is default, then the URL to access this service is: http://localhost:8080/jmx-console/HtmlA ... NE_STORAGE

You will of course have to enter the username/password (see this page http://wiki.onepacsforums.com/doku.php?id=gateconfig for the default).

Once you have navigated to the page, you should scroll down to the "listAllFileSystems()" operation and click the Invoke button underneath it. That will show you all of the file systems/directories that are configured. For example, if everything has been left at the default settings and you have stored some images, you'll see this output:

FileSystem[pk=1, archive, groupID=ONLINE_STORAGE, aet=TEST, ONLINE, RW+, userinfo=null]

The "archive" folder correlates to C:\onepacs\gateway\server\default\archive on my machine. If you add another filesystem directory, then you will probably see the whole path. The reason why the "archive" folder isn't shown with the full path is because it is within the installation directory, and resolved relative to C:\onepacs\gateway\server\default. If you invoke the listAllFileSystems() operation after adding a new file system, then you'll likely see the whole path for the new one.

I hope this helps,
-- Damien

damien
Posts: 37
Joined: Fri Jun 07, 2013 7:03 am

Re: Change stored images directory

Post by damien » Fri Jun 07, 2013 8:13 am

Also, note that if you want to instead move the storage directory (instead of adding an additional one), then this forum post provides a good procedure for doing so: http://www.onepacsforums.com/phpbb/view ... =333&p=981

-- Damien

DataTrade
Posts: 56
Joined: Tue Feb 28, 2012 8:36 am

Re: Change stored images directory

Post by DataTrade » Thu Jun 20, 2013 4:17 pm

Ok, I must be doing something wrong here...

So I added the file system, I:\ , to the list of available drives, where f:/onepacs was the previous primary drive, Went into Jboss and changed the status of f:/onepacs from RW+ to RW, so my result for AllFileSystems is this:
filesystemstatus.png
filesystemstatus.png (40.34 KiB) Viewed 12962 times
I then restarted the gateway service, and the images kept going to f:/onepacs, not to the new directory. Not only that, users were then unable to see these images until I reverted the settings (change f:/onepacs back to RW+, I:\ to RW, and restart the gateway service).

Please help!

- Brian.

justin
Posts: 371
Joined: Wed Nov 26, 2008 2:34 pm

Re: Change stored images directory

Post by justin » Fri Jun 21, 2013 12:21 pm

Hi Brian,

It's hard to say from the info you provided. My first guess is that I: is either inaccessible or does not have sufficient space.

if you send the logs via a OnePacs message to the "Administrator" user we could take a look.

http://wiki.onepacsforums.com/doku.php? ... cs_gateway

Thanks,

Justin

DataTrade
Posts: 56
Joined: Tue Feb 28, 2012 8:36 am

Re: Change stored images directory

Post by DataTrade » Mon Jul 08, 2013 10:03 pm

I have sent the logs to the administrator user, and have been awaiting a reply. Is there anything else I should do?

The I:\ drive is a mapped network drive, and has a total of 100GB of space. One thing I noticed about how the two drives are listed, the current drive has "f:/" not "f:\" (so f:/onepacs instead of f:\onepacs, as it's found in Windows Explorer). Might the I: drive need to be entered in a similar fashion? (I doubt its something that simple, but I figure I'll ask)

thanks,

- Brian.

damien
Posts: 37
Joined: Fri Jun 07, 2013 7:03 am

Re: Change stored images directory

Post by damien » Tue Jul 09, 2013 2:41 pm

Hi Brian,

First off, my apologies in the delay.

As to your problem, I just went through the steps and was able to successfully store to new directories that I added. A couple of notes that I would add to the instructions though....

1) After you make the changes, restart the gateway software.

2) Instead of using "I:\", can you create a directory there and use it? For example, "I:\storage". I'm not sure that will do the trick in and of itself, but I have never used a root path as a storage directory. It may be easier to set permissions on a directory structure instead of a drive as well (if the problem is related to permissions).

3) I took the additional step of "linking" the file systems. This operation helps the software find the next available storage system in case the active one is not able to be written to. In order to do this, go back to the FileSystemMgt configuration page and find "void linkFileSystems()". Enter the value archive for the prevDirPath and f:/onepacs as the nextDirPath and click Invoke. Then repeat using f:/onepacs as the prevDirPath and your I: drive directory as the nextDirPath.

Here is what my output from showAllFileSystems() looks like after all that...

FileSystem[pk=1, archive, groupID=ONLINE_STORAGE, aet=TEST_AET, ONLINE, RW, userinfo=null, next=C:\teststorage1]
FileSystem[pk=2, C:\teststorage1, groupID=ONLINE_STORAGE, aet=TEST_AET, ONLINE, RW, userinfo=, next=C:\teststorage2]
FileSystem[pk=3,C:\teststorage2, groupID=ONLINE_STORAGE, aet=TEST_AET, ONLINE, RW+, userinfo=]

I'll keep an eye on this thread to see how it goes.

-- Damien

john (from OnePacs)
Posts: 195
Joined: Wed Jun 20, 2012 5:14 am

Re: Change stored images directory

Post by john (from OnePacs) » Wed Jul 10, 2013 12:30 am

BTW to restart the gateway software, in case you're not sure how to do this, you can either restart the computer, or open the "services" management console. To open the management console, in windows click on start > run, then enter services.msc into the run box. Scroll the list of services to find "OnePacs Gateway", click on that to select it, then click on the "restart" control at the top of the window.

DataTrade
Posts: 56
Joined: Tue Feb 28, 2012 8:36 am

Re: Change stored images directory

Post by DataTrade » Fri Jul 12, 2013 10:10 am

Damien,

Thanks for the reply. I have tried what you suggested and these are the results...

I went in and made the new folder on I:, so it's now I:\onepacs, also I shared out the folder and the drive, as this wasn't done previously. (It was mapped, but not shared... set permissions to share with everyone)

In the onepacs admin page I deleted the old I:\ file system, and added in the newer one (I:\onepacs) and linked the location currently used (f:/onepacs) and the new one, set f:/onepacs to RW , I:\onepacs to RW+, restarted the onepacs service

When testing the changes, images being sent hung up in the onepacs program (they wouldn't go though, and they weren't showing up in either storage location). This remained the case until I reverted the settings back to the way they were originally set and restarted the service. After which the system ran fine.

I know files can be written to this I:\ drive, because I have been transferring over old stored images.

Is there more info I can provide to help in troubleshooting this issue? I've sent in the server logs, but have since received no reply or verification that these were received.

I really need to figure out what is going wrong here, this is quite frustrating.

- Brian

damien
Posts: 37
Joined: Fri Jun 07, 2013 7:03 am

Re: Change stored images directory

Post by damien » Fri Jul 12, 2013 11:10 am

The logs didn't really have anything useful in them. It showed file being written to the f: drive. Do you have the logs from this latest attempt? That would likely prove to be more informative. If I can't glean anything from them, I might suggest letting me remote into your gateway computer with LogMeIn, TeamViewer or something similar. I'll send a private message to you with my email address.

-- Damien

Locked