Page 1 of 1

Gateway issue, moving storage area

Posted: Fri Nov 02, 2012 5:30 am
by hilario
Hello. I know this is a gateway issue but perhaps you could help me to find the correct info.
Or perhaps some collegues has done it before and can help me.

At this moment my gateway has stored images from 2010 till 2012-07 on disk C:
and from 2012-07 till today on disk E:
I need to migrate all the images from disk C: to disk E:
If I move the directories directly I will loose all the database references.
Is there anyway to solve this issue?

Thanks and regards

Re: Gateway issue, moving storage area

Posted: Fri Nov 02, 2012 10:18 am
by justin
Hi Hilario,

You can move the location of an archive directly by doing the following steps:

1) Stop the OnePacs Gateway service
2) Move the archive directory from the C: drive (C:\onepacs\gateway\server\default\archive) to it's new location (ex. E:\onepacs\archive)
3) Connect to the PostgreSQL database using PGAdmin
4) Expand Databases -> pacsdb
5) Execute the following SQL, updating for your specific directories:

Code: Select all

update filesystem set dirpath = 'E:\onepacs\archive' where dirpath = 'archive';
6) Quit PGAdmin and restart the OnePacs Gateway service
7) Verify that your older studies are still accessible.


Best,

Justin

Re: Gateway issue, moving storage area

Posted: Fri Nov 02, 2012 10:28 am
by justin
Also, please note that the directory you choose to move the archive to from C: should be a different directory than the one you already have on E:. Do not try to merge them.

Ex. Do something like this:

E:\onepacs\archive
E:\onepacs\oldarchive

Re: Gateway issue, moving storage area

Posted: Fri Nov 02, 2012 12:05 pm
by hilario
Thank you very much.
I'll try this.
Regards