To migrate data from a remote file system, such as a remote Windows or Linux file system or a NAS server, you must mount it to a Data Transport device. This topic explains how to configure a service IP address for the device and mount the file system.
Prerequisites
-
Connect the source to a network port or optical port on the Data Transport device, either directly with a network cable or through a network switch. Ensure that the network cable, fiber-optic cable, and optical transceiver module are connected correctly and the port link indicator shows a valid link.
-
A service IP address has been configured. For more information, see Step 2: Configure the network port IP address of the Data Transport device.
Step 1: Configure file sharing
The Data Transport device supports NAS servers, and remote Windows and Linux file systems as data sources.
Remote Windows file system
-
In Windows, share a folder or drive. This example uses the local disk (D:).
-
Right-click the local disk (D:) and choose Share > Advanced Sharing.
-
Click Advanced Sharing (D).
-
Select Share this folder and click OK. The Windows files are now shared.
NoteAfter enabling sharing, ensure the Windows firewall allows the Data Transport device to access port 445. You can either add an inbound rule for this port or temporarily disable the firewall. If you disable the firewall, remember to re-enable it after the data migration is complete. After configuring the rule, verify connectivity by running a telnet command to port 445.
-
-
Mount the remote Windows file system to the Data Transport device.
Mount commands vary by operating system version. Use the command for your version.
Remote Linux file system
To share files from a remote Linux system, you must first set up an NFS file system.
-
Create an NFS file system. This example uses CentOS 7.
-
Install the NFS utilities.
yum install -y nfs-utils -
Modify the /etc/exports file.
/data *(rw,no_root_squash) -
Start the NFS service.
systemctl start nfs.service -
Check the status of the NFS service.
systemctl status nfs.service -
Enable the NFS service to start on boot.
systemctl enable nfs.serviceNoteYou must configure your firewall to allow access from the Data Transport device. You can either add the necessary NFS-related rules or temporarily disable the firewall. If you disable the firewall, re-enable it after the data migration is complete.
-
-
Mount the remote NFS file system to the Data Transport device.
Mount commands vary by operating system version. Use the command for your version.
NAS server
Typically, a NAS server has a built-in NFS file system, so no additional configuration is needed. You can mount the file system directly to the Data Transport device. If your NAS server does not have an NFS file system, follow the instructions in the Remote Linux file system section to create one.
Step 2: Mount the data source
This topic uses the src_data directory as an example. The following mount commands are for reference and may need to be adapted for your specific environment.
Before you can create and run a data migration task, you must mount the source to the Data Transport device.
-
Log on to the Data Transport device as the root user.
-
Run the following command to create a local mount directory.
mkdir /mnt/src_data -
Mount the source to the Data Transport device. Replace the source service IP address placeholder with its actual value.
-
If the source is an NFS or NAS server, use the following mount command:
sudo mount -t nfs -o vers=3,nordirplus <source_service_IP_address>:<shared_directory_name> /mnt/src_data -
Example:
sudo mount -t nfs -o vers=3,nordirplus 127.0.0.0:src_data /mnt/src_data -
If the source is a Server Message Block (SMB) share, use the following mount command.
-
mount -t cifs //<source_service_IP_address>/<shared_directory_name> /mnt/src_data -o username=noUsername,password=noPasswordExample:
mount -t cifs //127.0.0.0/src_data/ /mnt/src_data -o username=noUsername,password=noPassword
-
-
Run
df -hto verify the mount. If the output includes/mnt/src_data, the mount is successful.