|
Thank you for rating this answer.
|
How to connect to an iSCSI Snapshot
Open-iscsi in Linux ( Redhat ES 5, CentOS 5, Fedora Core 6, Fedora Release 7, Debian 4.0 )
Connecting to an ISCSI Snapshot is a nearly identical process as connecting to your regular iSCSI volume. If you have not already, you will need to follow the steps listed under “How to Connect to a Iscsi Volume” for your Operating System. Once you’ve completed those you will need to enable the snapshot by clicking “Enable” under the mountable column.
·Run a discovery against the iscsi target host which should list the iSCSI device and any active snapshots: iscsiadm -m discovery -t sendtargets –p ISCSI_TARGET_HOST
·The following command will login to the specific ISCSI snapshot that was listed by the previous command: iscsiadm --mode node -l –targetname ISCSI_SNAPSHOT—portal ISCSI_TARGET_HOST
·You should now see additional drives on the system along with your regular iSCSI drive. You can print out the drive device with the following command: find /sys/devices/platform/host* -name block\* -exec ls -la '{}' \; | sed s#^.*../block/#/dev/#g
Linux-iscsi in Linux ( Redhat ES 4, CentOS 4 )
Connecting to an ISCSI Snapshot is a nearly identical process as connecting to your regular iSCSI volume. If you have not already, you will need to follow the steps listed under “How to Connect to a Iscsi Volume” for your Operating System. Once you’ve completed those steps you will need to enable the snapshot by clicking “Enable” under the mountable column.
·Reload the iscsi service. This should not disconnect or interrupt current iSCSI service: /etc/init.d/iscsi reload
· You can verify it has detected the new snapshot with the following command: iscsi-ls
·You should now see additional drives on the system along with your regular iSCSI drive. You can print out the drive device with the following command: find /sys/devices/platform/host* -name block\* -exec ls -la '{}' \; | sed s#^.*../block/#/dev/#g
Connect in Windows
Connecting to an ISCSI Snapshot is a nearly identical process as connecting to your regular iSCSI volume. If you have not already, you will need to follow the steps listed under “How to Connect to a Iscsi Volume” for your Operating System. Once you’ve completed those steps you will need to enable the snapshot by clicking “Enable” under the mountable column.
·Open the ISCSI Initiator configuration at Start -> All Programs -> Microsoft iSCSI Initiator ·Select the "Targets" tab. Click the refresh button so it can see the snapshot. The snapshot will be identified by the date and time of the snapshot to the very right, just as it is displayed in the portal. ·Select the snapshot and click “Log On…” to open the "Log On to Target" popup menu.
- Select the "Automatically restore this connection when the system boots" check box if you would like this connection to persist between reboots.
- Click on the "Advanced..." button.
- Under the "General" tab enable "CHAP logon information" by selecting the check box.
- Type or paste your username ("ISCSI_USER") into the "User name:" input box.
- Type or paste your password ("ISCSI_PASS") into the "Target secret:" input box.
- Click the "OK" button.
- Click the "OK" button.
·The status for the target should now be set to "Connected" under the "Targets" tab. ·Click the "OK" button.
|