How to set up iSCSI virtualization

Hi All,

I am going to set up iSCSI virtualization on two SPARC machines.

I have read that there is need the following requirements:

* iSCSI Target Machine (server side)

HW: Sparc or Opteron

OS: Solaris 11 or higher

* iSCSI Initiator Machine (client side)

HW: Sparc or Opteron

OS: Solaris 10 or higher

Do you know some guide that will help to set up iSCSI virtualization?

Is it true that for Target Machine I need Solaris 11? If yes from where I can download this OS?

Kind regards,

Daniel

[572 byte] By [nagardda] at [2007-11-27 6:23:29]
# 1
Solaris express has the iSCSI initiator. It identifies itself as solaris 11 as its a beta for the next version...Its downloadable from the sun web site.
robert.cohena at 2007-7-12 17:41:30 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Hi,

I was starting to configure virtual iSCSI. But there is one problem. Please see my configuration steps:

- -

Reqirement

* iSCSI Target Machine (server side)

HW: Sparc

OS: Solaris 11

* iSCSI Initiator Machine (client side)

HW: Sparc

OS: Solaris 10

1. Configure iSCSI Target

* Enable iSCSI Services

# svcadm enable iscsitgt

# svcs -a | grep iscsi

disabled 21:20:36 svc:/network/iscsi_initiator:default

online 21:49:29 svc:/system/iscsitgt:default |

* Create ZFS storage

# mkfile 2g /usr/tmp/iscsitest.2g

# zpool create test /usr/tmp/iscsitest.2g

# zpool list

NAME SIZE USED AVAIL CAP HEALTH ALTROOT

test 1.98G 88K 1.98G 0% ONLINE -

* Create ZFS Volume

# zfs create -V 1gb test/vol

# zfs list

NAME USED AVAIL REFER MOUNTPOINT

test 1.00G 976M 24.5K /test

test/vol 22.5K 1.95G 22.5K

* Assign ZFS as Virtual iSCSI HD

# iscsitadm modify admin -d /test

# iscsitadm show admin

iscsitadm:

Base Directory: /test

CHAP Name: Not set

RADIUS Access: Not set

RADIUS Server: Not set

iSNS Access: Not set

Fast Write ACK: Not set

# zfs set shareiscsi=on test/vol

* Make sure iSCSI Target has been created

# iscsitadm list target -v

Target: test/vol

iSCSI Name: iqn.1986-03.com.sun:02:882dc508-86d5-47be-a7cc-92c931245fea

Alias: test/vol

Connections: 0

ACL list:

TPGT list:

LUN information:

LUN: 0

GUID: 0x0

VID: SUN

PID: SOLARIS

Type: disk

Size: 1.0G

Backing store: /dev/zvol/rdsk/test/vol

Status: online

2. Configure iSCSI Initiator

* Enable iSCSI Services

# svcadm enable iscsi_initiator

# svcs -a | grep iscsi

enable 21:20:36 svc:/network/iscsi_initiator:default

iscsiadm list initiator-node

Initiator node name: iqn.1986-03.com.sun:01:e0000000783b.45b5b9dc

Initiator node alias:

Login Parameters (Default/Configured):

Header Digest: NONE/

Data Digest: NONE/-

Authentication Type: NONE

RADIUS Server: NONE

RADIUS access: unknown

Configured Sessions: 1

* Connect to iSCSI Target machine

# iscsiadm add discovery-address 10.160.19.50

# iscsiadm modify discovery -t enable

* Make sure connection (Initiator side)

# iostat -En

c4t010000144F00461E00002A004669325Ed0 Soft Errors: 2 Hard Errors: 1 Transport Errors: 49

Vendor: SUNProduct: SOLARIS Revision: 1Serial No:

Size: 1.07GB <1073741824 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 2 Predictive Failure Analysis: 0

# devfsadm -c iscsi

# format

iSCSI disk formatted

* Make sure connection (Target side)

# iscsitadm list target -v

Target: test/vol

iSCSI Name: iqn.1986-03.com.sun:02:786b6a3d-6d70-e4f2-d27d-ec32de14d5eb

Alias: test/vol

Connections: 1

Initiator:

iSCSI Name: iqn.1986-03.com.sun:01:00144f006482.464afd49

Alias: unknown

ACL list:

TPGT list:

LUN information:

LUN: 0

GUID: 010000144f00461e00002a004669325e

VID: SUN

PID: SOLARIS

Type: disk

Size: 1.0G

Backing store: /dev/zvol/rdsk/test/vol

Status: online

* Create ZFS

# zpool create test c4t010000144F00461E00002A004669325Ed0

cannot open 'c4t010000144F00461E00002A004669325Ed0': no such device in /dev/dsk must be a full path or shorthand device name

- -

Actually I couldn't find c4t01000014... drive on Target machine.

What is the problem?

Thanks,

Daniel

nagardda at 2007-7-12 17:41:30 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
I have forgotten. I was using the guide from: http://blogs.sun.com/yappri/entry/iscsi_on_solarisThis is in Japanese so you can simply translate it using Google Language tool.Kind regards,Daniel
nagardda at 2007-7-12 17:41:30 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

Is there any one that could help me?

I have seen the following error message during the iSCSI configuration:

Jun 9 02:21:39 sun2 scsi: WARNING: /scsi_vhci/ssd@g010000144f00461e00002a0046698fba (ssd48):

Jun 9 02:21:39 sun2Corrupt label; wrong magic number

Thanks,

Daniel

nagardda at 2007-7-12 17:41:30 > top of Java-index,Solaris Operating System,Solaris 10 Features...