We're Hiring!

Procedure to change OMERO data directory

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Procedure to change OMERO data directory

Postby borja8 » Mon Apr 09, 2018 10:27 am

Hello,

I completed a new installation of OMERO.server and OMERO.web on a Ubuntu server VM and set data directory to local /omero folder. We will install a new NAS next month and want to change data directory to a folder in the new NAS. Migrating data is not important. We are using omero with test data now to familiarize with the system.

All i have to do is mount remote fs, set new data dir and restart OMERO.server? Or i have to do something else with database? What is prefered filesystem?

Thanks
borja8
 
Posts: 7
Joined: Mon Apr 09, 2018 8:44 am

Re: Procedure to change OMERO data directory

Postby kennethgillen » Mon Apr 09, 2018 1:17 pm

borja8 wrote:Hello,

Hi borja8.

borja8 wrote:All i have to do is mount remote fs, set new data dir and restart OMERO.server? Or i have to do something else with database?

There are several options open to you, and it'll depend if you've invested any effort in your database, like creating local user accounts, for example.

I wouldn't recommend just changing the data dir underneath the server, if you've imported any data like the test data you mention, then the database would be out of sync with the underlying filesystem.

One option (1): Treat this like a backup/restore situation [1]. i.e. connect your new storage, stop the server, rsync the existing data dir to the new storage, update the OMERO config with the new data dir path to your new storage, then start up OMERO.

Another option (2): Start out with a 'fresh' server (provided you don't need your database objects like user accounts etc). i.e. create a new, empty data dir folder structure on the new storage and re-run the database bootstrap step on either a new database, or a re-created database. This way you end up with a brand new, clean server.

borja8 wrote: What is prefered filesystem?

Our system requirements page discusses this - see [2]. This will completely depend on what your organisation or institution either pay for, or have experience running and supporting. It's worth discussing this with your local IT support system who will be running the storage on which OMERO runs upon. It'll also depend how much data you think you'll end up with imported into the server.

[1] https://docs.openmicroscopy.org/latest/ ... store.html
[2] https://docs.openmicroscopy.org/latest/ ... ml#storage
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Re: Procedure to change OMERO data directory

Postby borja8 » Thu Apr 19, 2018 12:19 pm

kennethgillen wrote:
borja8 wrote:Hello,

Hi borja8.

borja8 wrote:All i have to do is mount remote fs, set new data dir and restart OMERO.server? Or i have to do something else with database?

There are several options open to you, and it'll depend if you've invested any effort in your database, like creating local user accounts, for example.

I wouldn't recommend just changing the data dir underneath the server, if you've imported any data like the test data you mention, then the database would be out of sync with the underlying filesystem.

One option (1): Treat this like a backup/restore situation [1]. i.e. connect your new storage, stop the server, rsync the existing data dir to the new storage, update the OMERO config with the new data dir path to your new storage, then start up OMERO.

Another option (2): Start out with a 'fresh' server (provided you don't need your database objects like user accounts etc). i.e. create a new, empty data dir folder structure on the new storage and re-run the database bootstrap step on either a new database, or a re-created database. This way you end up with a brand new, clean server.

borja8 wrote: What is prefered filesystem?

Our system requirements page discusses this - see [2]. This will completely depend on what your organisation or institution either pay for, or have experience running and supporting. It's worth discussing this with your local IT support system who will be running the storage on which OMERO runs upon. It'll also depend how much data you think you'll end up with imported into the server.

[1] https://docs.openmicroscopy.org/latest/ ... store.html
[2] https://docs.openmicroscopy.org/latest/ ... ml#storage


Your answer was really helpful. I've folllowed steps provided in option1 and now i have omero storage over an NFS mount.
I would like to know if there are some options recommended to add to fstab file for using with omero.

Thank you very much
borja8
 
Posts: 7
Joined: Mon Apr 09, 2018 8:44 am

Re: Procedure to change OMERO data directory

Postby kennethgillen » Thu Apr 19, 2018 12:30 pm

borja8 wrote:Your answer was really helpful. I've folllowed steps provided in option1 and now i have omero storage over an NFS mount.
I would like to know if there are some options recommended to add to fstab file for using with omero.

Thank you very much


You're more than welcome.

The only thing I'd personally check is whether the storage returns after a reboot of the server. There's nothing in my personal experience that would be OMERO specific for the fstab - I just use what our research computing team recommend for connecting to NFS mounts on their platform. Your local IT or storage provider may be able to advise what they recommend for their platform.

The greater community might have more to add here, too.

All the best,

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest

cron