You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Ana Mercan (RO)" <an...@pwc.com> on 2018/06/18 13:56:42 UTC

SOLR migration

Hi,

I have the following scenario, I'm having a shared cluster solr
installation environment (app server 1-app server 2 load balanced) which
has 4 solr instances.

After reviewing the space audit we have noticed that the partition where
the installation resides is too big versus what is used in term of space.

Therefore we have installed a new drive which is smaller and now we want to
migrate from the old dive (E:) to the new drive (F).

Can you please provide an official answer whether this is a supported
scenario?

If yes, will you please share the steps with us?

Thanks,

Ana

-- 
The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited. If you received 
this in error, please contact the sender and delete the material from any 
computer.

Re: SOLR migration

Posted by Jan Høydahl <ja...@cominvent.com>.
Hi,

Apache Solr is an open source project, with contributors and users doing our best
to both document and answer questions, but sometimes it may take time, either due
busy schedules or because the answer is unknown or an uncommon one that very few
have tried.

I suspect the last reason for the silence on this since there is no "feature" for migrating
an index to another disk as such. Although Emir's answer could be an option.

If I were in your shoes here's how I'd solve it:

Find yourself a maintenance window and plan the operation in detail
Shut down all Solr nodes
Copy SOLR_HOME (where your data is) to exact same path on F drive, e.g. com E:\solr\data to F:\solr\data
Unmount both drives and re-mount with drive letters swapped (new small disk becomes E while old disk becomes F)
Start Solr on all nodes

The length of your down-time depends on the amount of data

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

> 18. jun. 2018 kl. 15:56 skrev Ana Mercan (RO) <an...@pwc.com>:
> 
> Hi,
> 
> I have the following scenario, I'm having a shared cluster solr
> installation environment (app server 1-app server 2 load balanced) which
> has 4 solr instances.
> 
> After reviewing the space audit we have noticed that the partition where
> the installation resides is too big versus what is used in term of space.
> 
> Therefore we have installed a new drive which is smaller and now we want to
> migrate from the old dive (E:) to the new drive (F).
> 
> Can you please provide an official answer whether this is a supported
> scenario?
> 
> If yes, will you please share the steps with us?
> 
> Thanks,
> 
> Ana
> 
> -- 
> The information transmitted is intended only for the person or entity to 
> which it is addressed and may contain confidential and/or privileged 
> material. Any review, retransmission, dissemination or other use of, or 
> taking of any action in reliance upon, this information by persons or 
> entities other than the intended recipient is prohibited. If you received 
> this in error, please contact the sender and delete the material from any 
> computer.


Re: SOLR migration

Posted by Emir Arnautović <em...@sematext.com>.
Hi Ana,
There is no documentation because this is not something that is common. Assuming you are using SolrCloud and that you don’t want any downtime. What you could do is set up new Solr node on the same box but configure it to use this new disk. After it is set, you use ADDREPLICA and REMOVEREPLICA to “move” replicas from one to another and shut down the old node.

If you can afford downtime, you can simply set up new Solr to use new disk, create empty collections and copy indices from one disk to another.

HTH,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 19 Jun 2018, at 10:26, Ana Mercan (RO) <an...@pwc.com> wrote:
> 
> Hello guys,
> 
> I would appreciate if you could kindly treat this topic with priority as
> the lack of documentation is kind of a blocker for us.
> 
> Thanks in advance,
> Ana
> 
> 
> On Mon, Jun 18, 2018 at 4:56 PM, Ana Mercan (RO) <an...@pwc.com> wrote:
> 
>> Hi,
>> 
>> I have the following scenario, I'm having a shared cluster solr
>> installation environment (app server 1-app server 2 load balanced) which
>> has 4 solr instances.
>> 
>> After reviewing the space audit we have noticed that the partition where
>> the installation resides is too big versus what is used in term of space.
>> 
>> Therefore we have installed a new drive which is smaller and now we want
>> to migrate from the old dive (E:) to the new drive (F).
>> 
>> Can you please provide an official answer whether this is a supported
>> scenario?
>> 
>> If yes, will you please share the steps with us?
>> 
>> Thanks,
>> 
>> Ana
>> 
> 
> -- 
> The information transmitted is intended only for the person or entity to 
> which it is addressed and may contain confidential and/or privileged 
> material. Any review, retransmission, dissemination or other use of, or 
> taking of any action in reliance upon, this information by persons or 
> entities other than the intended recipient is prohibited. If you received 
> this in error, please contact the sender and delete the material from any 
> computer.


Re: SOLR migration

Posted by "Ana Mercan (RO)" <an...@pwc.com>.
Hello guys,

I would appreciate if you could kindly treat this topic with priority as
the lack of documentation is kind of a blocker for us.

Thanks in advance,
Ana


On Mon, Jun 18, 2018 at 4:56 PM, Ana Mercan (RO) <an...@pwc.com> wrote:

> Hi,
>
> I have the following scenario, I'm having a shared cluster solr
> installation environment (app server 1-app server 2 load balanced) which
> has 4 solr instances.
>
> After reviewing the space audit we have noticed that the partition where
> the installation resides is too big versus what is used in term of space.
>
> Therefore we have installed a new drive which is smaller and now we want
> to migrate from the old dive (E:) to the new drive (F).
>
> Can you please provide an official answer whether this is a supported
> scenario?
>
> If yes, will you please share the steps with us?
>
> Thanks,
>
> Ana
>

-- 
The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited. If you received 
this in error, please contact the sender and delete the material from any 
computer.