How to mount FSS object storage locally?

Published: 2020-08-13

Reminder:

1. Because random I/O is not supported, do not store hot files that need to be rewritten at any time (such as database files and log files) in this partition; otherwise, performance will be very poor. FSS is generally used to store backup data, videos, photos, and other data that does not need frequent read/write.

2. FSS mounting only supports system bucket users; self-created accounts are not supported for mounting.

3. If you only transfer files to FSS for backup, it is recommended to use the fsstool tool; mounting is subject to many restrictions; in particular, mounting is single-threaded and inefficient.fsstool tool supports linux and windows systems. You can also implement automatic backup by adding a scheduled task. Using the tool enables multi-threaded, efficient backup.FSStool Usage Tutorial


I. Mount FSS object storage to a linux server


1. Install the davfs2 filesystem driver program.

    Debian/Ubuntu systems: apt-get install davfs2 -y

    RHCL/CentOS/Fedora systems: yum install davfs2 -y


2. Create a mount directory. For example:

    mkdir /fssdb


3. Run the mount command.

    mount -t davfs https://ndisk-fss-my.vhostgo.com /fssdb

    image.png

    Then enter the FSS object storage administrator username (same as the bucket name) and password as prompted.


4. Set automatic startup on boot (this step is optional).

    a. Edit the /etc/davfs2/secrets file, and write https://ndisk-fss-my.vhostgo.com username password to the last line of the file. For example:

    image.png


    b. Edit the /etc/rc.local file, and write mount -t davfs https://ndisk-fss-my.vhostgo.com /fssdb to the last line. For example:

    image.png


Note: If you need to copy relatively large files to this disk, you need to increase the read_timeout read timeout in the davfs2 configuration file (path /etc/davfs2/davfs2.conf).


II. Mount FSS object storage to a Windows server

If it cannot be mounted as shown, please check whether relevant services have not been installed: https://www.west.cn/faq/list.asp?unid=2397 

1. Open My Computer and select Map Network Drive.

    image.png


2. Enter https://ndisk-fss-my.vhostgo.com in the folder field and click Finish.

    image.png


3. Enter the FSS object storage administrator username (same as the bucket name) and password.

    image.png


4. After successful mounting, you can see the network drive mounted locally as shown in the figure.

    image.png


Note: If it cannot be used normally, check whether the WebClient service is started and set to start automatically.

1. Right-click My Computer, then click Manage. In the displayed dialog box, expand the Services and Applications node, and find the WebClient option in Services.

    image.png


2. Right-click to start this service.

    image.png


3. Select WebClient, right-click, and select Properties in the option box. In the pop-up Properties dialog box, change the Startup type to Automatic.

    image.png