Move data store.

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

Move data store.

Postby santunez » Tue Nov 06, 2007 9:11 am

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


jholder
Zimbra Employee
Zimbra Employee
Posts: 4686
Joined: Fri Sep 12, 2014 10:00 pm

Move data store.

Postby jholder » Tue Nov 06, 2007 9:21 am

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.

Postby newbie_sg » Tue Nov 20, 2007 6:37 pm

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.
jholder
Zimbra Employee
Zimbra Employee
Posts: 4686
Joined: Fri Sep 12, 2014 10:00 pm

Move data store.

Postby jholder » Wed Nov 28, 2007 12:19 pm

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

Move data store.

Postby j_jpr » Fri Apr 08, 2011 5:23 am

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.

Postby fcash » Wed Apr 13, 2011 2:35 pm

[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.

Postby timothyalangorman » Tue Apr 26, 2011 8:37 am

[quote user="fcash"]# 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.[/QUOTE]
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.

Postby fcash » Tue Apr 26, 2011 12:55 pm

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

Move data store.

Postby hhemof » Sat Mar 30, 2013 6:01 am

Wondeful solution. Thank you for your wonderful solution. (perfect and simple way ... ) :rolleyes:

Return to “Migration”

Who is online

Users browsing this forum: No registered users and 2 guests