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

Create a technical support case if you need further support.

Adding extra disk space to SafeSync for Enterprise

    • Updated:
    • 4 Mar 2015
    • Product/Version:
    • SafeSync for Enterprise 2.0
    • SafeSync for Enterprise 2.1
    • Platform:
    • Ubuntu 10.04 64-bit
Summary

Administrators of SafeSync for Enterprise (SSFE) can expand storage space by adding a new disk to the system. The disk can be connected to the system either physically or via NFS/iSCSI.

The deployment environment of SafeSync contains the following two servers: 

  • Primary server
  • Secondary server
Details
Public

To add the new disk, you need to use the SafeSync command-line interface (CLI). The installation process of the new hard disk detects, formats, mounts, and adds all detected disks to the mogile file system (mogilefs). The detected disks are mounted in the following location in the file system.

/storage/mogdata/dev[primary:1,secondary:2][number]

Example: The first disk of the primary server is mounted in /storage/mogdata/dev11 and the first disk of the secondary server is mounted in /storage/mogdata/dev21.

To add a new disk:

 
Use the root account to perform the tasks.

To check the current status of mogilefs, use the command:

#mogadm check

Example: The system contains the following two devices (hard disks):

  • dev11
  • dev21

dev11 is in the primary server and dev21 is in the secondary server. Running the command will result to the following:

root@appliance1:~# mogadm --trackers=tracker1:6001 check
Checking trackers...
  tracker1:6001 ... OK
Checking hosts...
  [ 1] osdp-store1 ... OK
Checking devices...
  host device         size(G)    used(G)    free(G)   use%   ob state   I/O%
---- ------------ ---------- ---------- ---------- ------ ---------- -----
  [ 1] dev11           18.239      5.389     12.849  29.55%  writeable   0.0
---- ------------ ---------- ---------- ---------- ------
             total:    18.239      5.389     12.849  29.55%

Existing devices in mogilefs cannot be replaced nor deleted. Create a unique number for the new device.

This example is a continuation of Step A.

The next new device that has to be added to the primary and secondary servers should be dev12 and dev22 respectively. To create a unique number for the new device:

  1. Create a new mount point in the primary server by running the command below:

    # mkdir /storage/mogdata/dev12

  2. Mount the new device to this mount point by running the commands below:
     
    It is assumed that the new device has already been formatted to ext2 and its device name is /dev/sdb1.
     

    # mount -t ext2 /dev/sdb1 /storage/mogdata/dev12
    # chown www-data:mogstored /storage/mogdata/dev12
    # chmod g+w /storage/mogdata/dev12

To add the new mount point to mogilefs, run the following commands:

# mogadm --trackers=tracker1:6001 device add osdp-store1 12 --status=alive
# mogadm --trackers=tracker1:6001 check

Example:

# mogadm --trackers=tracker1:6001 device add osdp-store1 12 --status=alive
(check the result by running #mogadm check)
# mogadm --trackers=tracker1:6001 check
Checking trackers...
  tracker1:6001 ... OK
Checking hosts...
  [ 1] osdp-store1 ... OK
Checking devices...
  host device         size(G)    used(G)    free(G)   use%   ob state   I/O%
  ---- ------------ ---------- ---------- ---------- ------ ---------- -----
  [ 1] dev11           18.239      5.372     12.867  29.45%  writeable   0.0
  [ 1] dev12            7.021      0.017      7.004   0.24%  writeable   0.0
  ---- ------------ ---------- ---------- ---------- ------
             total:    25.259      5.389     19.871  21.33%

dev12 should be added successfully.

Edit the /etc/fstab file and then add a line at the bottom containing the information of the newly added drive.

Example:

/dev/sdb1 /storage/mogdata/dev12 ext2 defaults,user_xattr,_netdev 1 2

Premium
Internal
Rating:
Category:
Configure; Deploy; Migrate
Solution Id:
1095785
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.