(Optional) Recover Data from the iSCSI Volume to the Target Machine
If you have stored your data in an iSCSI target volume, you can connect to the iSCSI volume and recover data. The iSCSI volume lets you manage data and transfer data over a network.
Verify that you have the latest release of the iSCSI-initiator software installed on your Backup Server. The initiator software on RHEL systems is packaged as iscsi-initiator-utils. The initiator software on SLES systems is packaged as open-iscsi.
Follow these steps:
- Log into the shell environment of the Backup Server.
- Run one of the following commands to start the iSCSI initiator daemon.
- For RHEL systems:
- The service on RHEL systems is named iscsid.
- For SLES systems:
- The service on SLES systems is named open-iscsi.
- Run a discovery script to discover the iSCSI target host.
- The default port value of iSCSI target host is 3260.
- Make a note of the iSCSI Qualified Name (IQN) of the iSCSI target host found by the discovery script before you manually log into the discovered target.
- List the available block device of the Backup Server.
- Log in to the discovered target.
- You can see a block device in the /dev directory of the Backup Server.
- Run the following command to obtain the new device name:
- You can see an additional device named /dev/sd<x> on the Backup Server.
- For example, consider the name of the device is /dev/sdc. This device name is used to create a partition and a file system in the following steps.
- Mount the iSCSI volume using the following commands:
- Note: When you specify the session location in the Restore Wizard, you need to select Local and enter the path /iscsi.
- Example: <path>/iscsi
- (Optional) Add the following record to the /etc/fstab file so that the iSCSI volume automatically connects with the Backup Server after you restart the server.
/etc/init.d/iscsid start
/etc/init.d/open-iscsi start
iscsiadm -m discovery -t sendtargets -p <ISCSI-SERVER-IP-ADDRESS>:<Port_Number>
#fdisk -l
iscsiadm -m node -T <iSCSI Target IQN name> -p <ISCSI-SERVER-IP-ADDRESS>:<Port_Number> -l
#fdisk –l
# mkdir /iscsi
# mount /dev/sdc1 /iscsi
/dev/sdc1 /iscsi ext3 _netdev 0 0
The Backup Server can now connect to the iSCSI volume and can recover data from the iSCSI volume.