Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Mounting Common Internet File System (CIFS) storage in SafeSync for Enterprise (SSFE) 2.1

    • Updated:
    • 8 May 2014
    • Product/Version:
    • SafeSync for Enterprise 2.1
    • Platform:
    • Ubuntu 10.04 64-bit
Summary
This article outlines the procedure to mount CIFS storage in SSFE and adding this to MogileFS.
Details
Public
To mount the CIFS storage and add it to MogileFS:
  1. Change the df no limit list to local file systems.
    1. Log in to the SSFE server shell.
    2. Edit the /usr/local/share/perl/5.10.1/Mogstored/ChildProcess/DiskUsage.pm file.
      Look for the line "my $rval = `df $gnu_df -l -k $path/$devnum`;" and remove the parameter "-l". The resulting line should be "my $rval = `df $gnu_df -k $path/$devnum`;".
  2. Restart mogstored using the command ":/etc/init.d/mogstored restart".
  3. Create a new mount point in the SSFFE server using the command:
    # mkdir /storage/mogdata/devXY
    Where: X is 1 for appliance1 and 2 for appliance2
         Y is any number based on the number of disks already attached to the server.
    For more details, you can refer to the Knowledgebase article: Adding extra disk space in SafeSync for Enterprise (SSFE).
  4. Change the permissions on the mogstored service.
    1. Edit the /etc/init.d/mogstored using the command:
      # vim /etc/init.d/mogstored
    2. Replace "--chuid mogstored" with "--chuid www-data".
      There are two lines that must be modified, line 41 and 61.
    3. Restart the mogstored service using the command;
      #/etc/init.d/mogstored restart
  5. Change the owner of /storage/mogdata/devXY via the command:
    # chown www-data:mogstored /storage/mogdata/devXY
  6. Change the file mode of /storage/mogdata/dev15 to give the group write permission. Use the command:
    # chmod g+w /storage/mogdata/dev15
  7. Mount the new CIFS device to the new mount point using the commands:
    # mount -t cifs //<CIFS_Server_address>/<disk_name> /storage/mogdata/devXY -o
    username=xxxxxxx,password=xxxxxxxx,uid=33,gid=903,dir_mode=0775
  8. Add the new mount point to the MogileFS system via the command:
    # mogadm --trackers=tracker1:6001 device add osdp-store1 XY --status=alive
  9. Check the result using the command "# mogadm check". Make sure the new device is listed properly with the correct disk size.
  10. Add the mount point information in /etc/fstab to auto mount the device after a reboot.
    Edit /etc/fstab by adding the line:
    ///<disk_name> /storage/mogdata/devXY cifs
    username=safesync,password=password,uid=33,gid=903,dir_mode=0775 0 0
  11. Reboot the server and verify if the device is still properly mounted.
Premium
Internal
Rating:
Category:
Configure
Solution Id:
1103390
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.