# Huawei OceanProtect

## Create DataTurbo user

1. Go to Services -> vStore Service -> vStores

   ![Create\_DT\_user\_01.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/0Q7H2OSJipiLhWnZr3uY/Create_DT_user_01.png)
2. Select vStore -> Create new user with role "vStore DataTurbo administrator"

   ![Create\_DT\_user\_02.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/HU8sMvfk0H8vaXzxrWIi/Create_DT_user_02.png)

## Create logical port

1. Go to Services -> Network -> Logical Ports

   ![Create\_LP\_01.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/KLQ5fIok6GxhsU8QDtwK/Create_LP_01.png)
2. Create new logical port

   ![Create\_LP\_02.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/LS3WkWuDodOZH1GtYz9u/Create_LP_02.png)
3. Settings for NFS

   ![Create\_LP\_03.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/AqWvJQr5r28lDvcUZ45Y/Create_LP_03.png)
4. Settings for DataTurbo

   ![Create\_LP\_04\_DT.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/CdWk1UxTyw9dcI3EjVTN/Create_LP_04_DT.png)

## Create Filesystem

1. Go to Services -> File Service -> File Systems

   ![Create\_FS\_01.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/z1AZqjaGisXHaJplRYoK/Create_FS_01.png)
2. Create new file system

   ![Create\_FS\_02.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/wQZHgb2bqixNaWQUI4Cd/Create_FS_02.png)

   * Fill:
     * Name
     * Capacity
     * Application Type

   ![Create\_FS\_03.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/qX7pL093DOwITigApI8j/Create_FS_03.png)

   * With NFS, and DataTurbo share

   ![Create\_FS\_04.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/z841tumxly0GZWRR4K34/Create_FS_04.png)
3. On NFS share modify settings:

   ![Create\_FS\_05.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/6dpsRnO8HHCBufAgOVso/Create_FS_05.png)
4. In permissions add new client, or modify existing:

   ![Create\_FS\_06.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/jyFkm6ehgiEM8k9VVGBU/Create_FS_06.png)

   * Client - \* , or IP of Storware node machine
   * root Permission Constraint - no\_root\_squash
5. Save settings and modify DataTurbo share:

   ![Create\_FS\_07.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/Sh4E421vEfJkVvdrKem2/Create_FS_07.png)
6. In Permissions add user to share:

   ![Create\_FS\_08.png](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/H2F2BdgEtFMCVj1g5r1z/Create_FS_08.png)

## Mount NFS share

1. In Storware Backup & Recovery Node, mount NFS share which was created in previous step:

   ```
   mount OceanProtectIP:/Storware /vprotect_data
   ```
2. Go to the [Create File System Backup Destination](#create-file-system-backup-destination) section to learn how to create backup destination.

## Mount DataTurbo share

{% hint style="info" %}
**Note:** DataTurbo share is possible for mounting only in CentOS/Red Hat 7
{% endhint %}

1. Install DataTurbo package in Storware Backup & Recovery Node:

   ```
   unzip OceanStor_DataTurbo_1.0.0_Linux.zip
   ```

   ```
   [root@localhost ~]# unzip OceanStor_DataTurbo_1.0.0_Linux.zip
   Archive:  OceanStor_DataTurbo_1.0.0_Linux.zip
      creating: OceanStor_DataTurbo_1.0.0_Linux/
      creating: OceanStor_DataTurbo_1.0.0_Linux/doc/
   inflating: OceanStor_DataTurbo_1.0.0_Linux/install.sh  
      creating: OceanStor_DataTurbo_1.0.0_Linux/packages/
   inflating: OceanStor_DataTurbo_1.0.0_Linux/packages/oceanstor_dataturbo_1.0.0-202211151736.linux.x86_64.rpm  
   inflating: OceanStor_DataTurbo_1.0.0_Linux/upgrade.sh
   ```

   ```
   cd OceanStor_DataTurbo_1.0.0_Linux/
   chmod a+x install.sh
   ./install.sh 
   ```

   ```
   [root@localhost ~]# cd OceanStor_DataTurbo_1.0.0_Linux/
   [root@localhost OceanStor_DataTurbo_1.0.0_Linux]# chmod a+x install.sh
   [root@localhost OceanStor_DataTurbo_1.0.0_Linux]# ./install.sh 
   Preparing...                          ################################# [100%]
   CUSTOM_USER=dataturbo
   begin to create dufault user[dataturbo] and group[dataturbo] ......
   Updating / installing...
      1:dataturbo-1.0.0-202211151736     ################################# [100%]
   The DataTurbo client supports three performance levels: high, medium, and low. A higher level consumes more memory and CPU, you can use cgroup 
   command to limit the CPU usage of the DataTurbo process. The current remaining memory of the system is 4 GB. You are advised to select 
   level 1(recommended) or lower. If the level selection process stops abnormally, the recommended level will be used.
   <0>--Select Default Level. The recommended level will be used.
   <1>--Select Low Level. It is estimated that at most 4 GB memory is consumed.
   <2>--Select Medium Level. It is estimated that at most 6 GB memory is consumed.
   <3>--Select High Level. It is estimated that at most 12 GB memory is consumed.
   please input your selection:0
   your selection is [0]
   install dataturbo succeed.
   ```
2. Start DataTurbo service

   ```
   systemctl start dataturbo
   ```

   ```
   [root@localhost ~]# systemctl start dataturbo
   [root@localhost ~]# systemctl status dataturbo
   ● dataturbo.service - dataturbo
      Loaded: loaded (/usr/lib/systemd/system/dataturbo.service; enabled; vendor preset: disabled)
      Active: active (running) since śro 2023-01-25 15:32:21 CET; 4s ago
   Process: 18488 ExecStart=/opt/oceanstor/dataturbo/script/start.sh (code=exited, status=0/SUCCESS)
   Main PID: 18558 (dpc)
      Tasks: 95 (limit: 65535)
      CGroup: /system.slice/dataturbo.service
            └─18558 /opt/oceanstor/dataturbo/bin/dpc

   sty 25 15:32:20 localhost.localdomain systemd[1]: Starting dataturbo...
   sty 25 15:32:21 localhost.localdomain su[18660]: (to dataturbo) root on none
   sty 25 15:32:21 localhost.localdomain su[18751]: (to dataturbo) root on none
   sty 25 15:32:21 localhost.localdomain systemd[1]: Started dataturbo.
   ```
3. Create DataTurbo storage object, with DataTurbo user

   ```
   dataturbo create storage_object storage_name=Storware ip_list=OceanProtectIP
   ```

   ```
   [root@localhost ~]# dataturbo create storage_object storage_name=Storware ip_list=10.30.0.66
   Please input username:
   storware
   Please input password:
   ********
   Create storage object successfully.
   ```
4. Check if storage is created

   ```
   dataturbo show storage_object
   ```

   ```
   [root@localhost ~]# dataturbo show storage_object
   Storage Name:	Storware
   User        :	storware
   Ips         :	10.30.0.66
   IpPair      :
   ID	Local Address		Remote Address		Status
   ---------------------------------------------------------------
   1	10.30.1.242		10.30.0.66		Normal
   ```
5. Create mount directory, and mount DataTurbo share

   ```
   mkdir /vprotect_data
   dataturbo mount storage_object storage_name=Storware filesystem_name=/Storware mount_dir=/vprotect_data
   ```
6. Check if share is mounted:

   ```
   [root@localhost ~]# df -hT
   Filesystem              Type            Size  Used Avail Use% Mounted on
   devtmpfs                devtmpfs        2,6G     0  2,6G   0% /dev
   tmpfs                   tmpfs           2,6G  8,0K  2,6G   1% /dev/shm
   tmpfs                   tmpfs           2,6G  8,7M  2,6G   1% /run
   tmpfs                   tmpfs           2,6G     0  2,6G   0% /sys/fs/cgroup
   /dev/mapper/centos-root xfs              17G  1,7G   16G  10% /
   /dev/sda1               xfs            1014M  181M  834M  18% /boot
   tmpfs                   tmpfs           523M     0  523M   0% /run/user/0
   tmpfs                   tmpfs           523M     0  523M   0% /run/user/1000
   /Storware               fuse.dataturbo  8,0T     0  8,0T   0% /vprotect_data
   ```
7. Grant privileges for vprotect user

   ```
   chown vprotect:vprotect -R /vprotect_data
   ```

## Create File System Backup Destination

{% hint style="info" %}
**Note:** Only regular File System Backup Destination is currently available.
{% endhint %}

1. Go to **Backup Destinations.**
2. Click on **Create Backup Destination**, choose a **File system.**
3. Type the name for the new backup destination and select at least one node configuration.
4. In **Storage paths** type `/vprotect_data/backups`, where you point to a subdirectory in your staging space, where Storware Backup & Recovery will store the backups.
5. Save the configuration.
