Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-2006, 04:07 PM
Senior Member
 
Posts: 58
Default NAS and CIFS

Ok,
So what my company has opted to have me try and do is the following, mount a cifs share, (which went flawlessly), and point message storage there. I realize while this may not be ideal, our server wont be hitting huge volume and if possible we'd like to stick to this model.

So far so good. I can see it making directories etc for new accounts and inbound messages after creating a new message store volume under servers.

Upon sending email to first test account I can see it trying to create a folder in which it fails... and was curious if the exception meant anything to anyone.

If I create the rightmost 0 folder manually and resend the message arrives at given destination just fine.


Code:
2006-12-12 14:49:04,922 INFO  [LmtpServer-6] [name=rich@zimbra.testserver.com;] FileBlobStore - Stored size=3142 wrote=3142 path=/mnt/nas/ZimbraMailBoxes/incoming/1165961751349-8.msg vol=3 digest=OozHJFBgx,+sbfYKZQ+ljC5PUDY=
2006-12-12 14:49:04,932 INFO  [LmtpServer-6] [name=rich@zimbra.testserver.com;] ZimbraLmtpBackend - try again for rich@zimbra.testserver.com: exception occurred
java.io.IOException: Unable to create blob store directory /mnt/nas/ZimbraMailBoxes/0/3/msg/0
        at com.zimbra.cs.store.FileBlobStore.ensureDirExists(FileBlobStore.java:353)
        at com.zimbra.cs.store.FileBlobStore.ensureParentDirExists(FileBlobStore.java:359)
        at com.zimbra.cs.store.FileBlobStore.renameTo(FileBlobStore.java:220)
Anyone with any sort of advice whatsoever? I can create permissions from unix side of things via the mountpoint in fedora etc with no problems.

Thanks in advance
Weston
Reply With Quote
  #2 (permalink)  
Old 12-12-2006, 04:19 PM
Senior Member
 
Posts: 58
Default

whoops, I can create folders and such no problem. Its like it doesnt bother creating the deepest 0 folder and thus cant write the actual .msg file.


Did I miss something in zmlocalconfig? I set:
zimbra_store_directory = /mnt/nas/ZimbraMailBoxes


Thanks again guys.
Reply With Quote
  #3 (permalink)  
Old 12-12-2006, 08:21 PM
Zimbra Employee
 
Posts: 1,434
Default Permissions?

Does the zimbra user have permissions to create those folders?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #4 (permalink)  
Old 12-12-2006, 10:43 PM
Senior Member
 
Posts: 58
Default

ok, well I went ahead and determined that the zimbra user has full permissions to read/write/delete etc...

Is there a way I can enable a bit more verbose logging to see whats happening directly before getting the exception?
Reply With Quote
  #5 (permalink)  
Old 12-12-2006, 10:50 PM
Senior Member
 
Posts: 58
Default

Another question, did I take proper precautions and modify everything I needed to to start storing messages in external message store?

Server->Volumes->New

Specify new mount

save
set current
save

zmlocalconfig -e zimbra_store_directory=/mnt/MailStore/ZimbraMailBoxes
zmcontrol stop/start


Do I need to manually migrate old boxes over (this is testserver, so doesnt really matter)

Is there more involved?

Tahnks in advance
s
Reply With Quote
  #6 (permalink)  
Old 12-14-2006, 07:33 AM
chh chh is offline
Advanced Member
 
Posts: 196
Default

I had a similar wish to migrate mails between 2 mailstores on the same server. It seems that this is currently not possible. So you, like me, have to live with the first, now quite statis, mailstore and the second "live" one.
Reply With Quote
  #7 (permalink)  
Old 12-14-2006, 07:41 AM
Senior Member
 
Posts: 58
Default

I dont quite understand your response, migrating the messages themselves is not really the issue. For me, I've got the test server with no REAL accounts setup.

My question was simply... all I need to do is create a new volume for a server and set it to current? Should that be sufficient, or do I need to change zmlocalconfig vars and numerous other steps in the process?

I've logged in as "zimbra" and I dont have a problem creating folders,files, moving reading etc, yet I still get this java exception when trying to create the innermost folder. If I create manually, the thing fires up just fine and recieves messages into it all day long.

Any advice would be greatly appreciated. Also, if anyone has recommendations on how I could go about getting more detailed logging to help trouble shoot, I'd appreciate that as well.
Reply With Quote
  #8 (permalink)  
Old 12-14-2006, 07:46 AM
chh chh is offline
Advanced Member
 
Posts: 196
Default

For using the new mailstore setting it to current is enough.

I am not an expert, but I guess that the problems that you have, might be related to the cifs protocol.
Do you have a chance of using NFS? This should be a much more reliable connection.
I heard of others having problems due to unstable connections to cifs shares.

Christian
Reply With Quote
  #9 (permalink)  
Old 12-14-2006, 08:43 AM
Senior Member
 
Posts: 58
Default

yeah, our NAS device supports both standards I beleive, we were testing with a regular ol windows share, and that very well could have been the root of our problem. I just wanted to make sure that I was following the correct route in creating a new store etc.

Should I need to mess with zmlocalconfig stuff at all, (if all I am really concerned with is mail messages and possibly database?

Thanks in advance
Weston
Reply With Quote
  #10 (permalink)  
Old 12-14-2006, 09:05 AM
chh chh is offline
Advanced Member
 
Posts: 196
Default

I never needed it so far.
I sometimes use zmprov, especially for scripting and zmbackup* of course.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.