Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to move the index data to another partition or disk? #334

Open
tt2000 opened this issue Nov 25, 2020 · 2 comments
Open

How to move the index data to another partition or disk? #334

tt2000 opened this issue Nov 25, 2020 · 2 comments

Comments

@tt2000
Copy link

tt2000 commented Nov 25, 2020

I'm using the .deb package to install OSS. After that, the index is stored at /var/solr/data/ (currently two subfolders). What is the best or at least a working way to move the index to another location?

If it is not possible after the installation, I'm also open to modify the .deb package and install it again on a fresh system.

@NetwarSystem
Copy link

I think we need a bit more information here. I guess that you have the system running, and now you want to give /var/solr/data its own space instead of taking up room in /var.

You could more the content to another location and do a symlink. That's probably the worst possible solution, but it's quick.

You could move /var/solr to /var/solr2, then create a new /var/solr and use it to mount a physical device, then mv /var/solr2/* /var/solr/

I use ZFS for this sort of thing on my systems. It will soft mirror disks and cache spindles using SSD. It it a powerful tool, but learning it is non-trivial.

@tt2000
Copy link
Author

tt2000 commented Dec 16, 2020

I have the system running, but I still have the opportunity to reinstall everything from scratch, if necessary. My goal is to setup OSS in a way that it does not fill up the system disk. Thus I want it to use another disk for index data.

I found hints in a config file (/etc/default/solr.in.sh) to specify that location (SOLR_DATA_HOME), but changing it and moving the current index files, does not seem to be a valid migration. At least some web services come up faulty.

I was/am looking for a solution to specify a new location. But redirecting the current location seems like a valid solution to me, too. I'm going to mount the disk at /var/solr as you suggest, but I'm still open for solutions to move the location by configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants