Move data store.

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
Post Reply
santunez
Posts: 12
Joined: Fri Sep 12, 2014 10:47 pm

Move data store.

Post by santunez »

Hello Team.
I have installed zimbra 4.5 in CenTos 5, and need move de store folder in other partition.
The actual partition /opt/ have 100Gb, and need moved the store folder to /home folder with 300GB.
I need help by this issue.
Thanks
User avatar
jholder
Ambassador
Ambassador
Posts: 4824
Joined: Fri Sep 12, 2014 10:00 pm

Move data store.

Post by jholder »

Can you move the /opt to your new mount? If not, a symlink should be fine. Just be sure it's not an NFS mount. NFS has locking and latency issues.
newbie_sg
Posts: 2
Joined: Fri Sep 12, 2014 11:13 pm

Move data store.

Post by newbie_sg »

I have a similar situation. My data store is currently in /opt/zimbra/store and I need to move it to a larger partition /data.
Is it not possible to do this using the CLI zmvolume? I do not have much experience with linux and I'm looking for the simplest way to do this.
User avatar
jholder
Ambassador
Ambassador
Posts: 4824
Joined: Fri Sep 12, 2014 10:00 pm

Move data store.

Post by jholder »

Nope. Your best bet is a symlink.
j_jpr
Posts: 2
Joined: Sat Sep 13, 2014 1:57 am

Move data store.

Post by j_jpr »

I have a similar situation. My data store is currently in /opt/zimbra/store and I need to move it to a larger partition /data.
I do not have much experience with linux and I'm looking for the simplest way to do this.[/QUOTE]
fcash
Outstanding Member
Outstanding Member
Posts: 263
Joined: Fri Sep 12, 2014 10:37 pm

Move data store.

Post by fcash »

[quote user="newbie_sg"]I have a similar situation. My data store is currently in /opt/zimbra/store and I need to move it to a larger partition /data.
Is it not possible to do this using the CLI zmvolume? I do not have much experience with linux and I'm looking for the simplest way to do this.[/QUOTE]
# cd /opt/zimbra

# mkdir /data/zimbra

# mv store /data/zimbra/

# ln -s /data/zimbra/store .
That moves the /opt/zimbra/store/ directory to /data/zimbra/store/.
Then creates a symlink from /data/zimbra/store/ to /opt/zimbra/store. That way, Zimbra can be started as per normal. It will write it's data to /opt/zimbra/store ... which is really /data/zimbra/store.
timothyalangorman
Advanced member
Advanced member
Posts: 159
Joined: Fri Sep 12, 2014 10:33 pm

Move data store.

Post by timothyalangorman »

fcash wrote:# cd /opt/zimbra

# mkdir /data/zimbra

# mv store /data/zimbra/

# ln -s /data/zimbra/store .
That moves the /opt/zimbra/store/ directory to /data/zimbra/store/.
Then creates a symlink from /data/zimbra/store/ to /opt/zimbra/store. That way, Zimbra can be started as per normal. It will write it's data to /opt/zimbra/store ... which is really /data/zimbra/store.
And Upgrades will perform normal through the symbolic Links????

I mean the OS should just pass the links on as static locations correct???
thanks

Timg
fcash
Outstanding Member
Outstanding Member
Posts: 263
Joined: Fri Sep 12, 2014 10:37 pm

Move data store.

Post by fcash »

That is how symlinks work.
hhemof
Posts: 5
Joined: Sat Sep 13, 2014 2:16 am

Move data store.

Post by hhemof »

Wondeful solution. Thank you for your wonderful solution. (perfect and simple way ... ) :rolleyes:
chris_60
Posts: 25
Joined: Wed Mar 10, 2021 3:35 pm
Location: Ubuntu 18.04.5 LTS
ZCS/ZD Version: 9.0.0.ZEXTRAS.202007114.UBUNTU18.64

Re: Move data store.

Post by chris_60 »

Excellent solution! 8-)
Post Reply