Solaris iSCSI Server

This document describes how to build Iscsi server based on Solaris platform on sun X4500 server.



On the target (server)


The server has six controllers each with eight disks and I have built the storage pool to spread I/O evenly and to enable me to build 8 RAID-Z stripes of equal length.


zpool create -f  tank \\
raidz c0t0d0 c1t0d0 c4t0d0 c6t0d0 c7t0d0 \\
raidz c1t1d0 c4t1d0 c5t1d0 c6t1d0 c7t1d0 \\
raidz c0t2d0 c4t2d0 c5t2d0 c6t2d0 c7t2d0 \\
raidz c0t3d0 c1t3d0 c5t3d0 c6t3d0 c7t3d0 \\
raidz c0t4d0 c1t4d0 c4t4d0 c6t4d0 c7t4d0 \\
raidz c0t5d0 c1t5d0 c4t5d0 c5t5d0 c7t5d0 \\
raidz c0t6d0 c1t6d0 c4t6d0 c5t6d0 c6t6d0 \\
raidz c0t7d0 c1t7d0 c4t7d0 c6t7d0 c7t7d0 \\
spare c0t1d0 c1t2d0 c4t3d0 c6t5d0 c7t6d0 c5t7d0

After the pool is created, the zfs utility can be used to create 50GB ZFS volume.


zfs create -V 50g tank/iscsivol000

Enable the Iscsi service


svcadm enable iscsitgt

Verify that the service is enabled.


svcs –a | grep iscsitgt


To view the list of commands, iscsitadm can be run without any options:


iscsitadm

Usage: iscsitadm -?,-V,--help Usage: iscsitadm create [-?]  [-?] [ Usage: iscsitadm list [-?]  [-?] [ Usage: iscsitadm modify [-?]  [-?] [ Usage: iscsitadm delete [-?]  [-?] [ Usage: iscsitadm show [-?] 

[-?] [ For more information, please see iscsitadm(1M)



To begin using the iSCSI target, a base directory needs to be created.


This directory is used to persistently store the target and initiator configuration that is added through the iscsitadm utility.


iscsitadm modify admin -d /etc/iscsi




Once the volumes are created, they need to be exported to an initiator


iscsitadm create target -b /dev/zvol/rdsk/tank/iscsivol000 target-label


Once the targets are created, iscsitadm's "list" command and "target" subcommand can be used to display the targets and their properties:


iscsitadm list target -v

On the initiator (client)


Install iscsi client from http://www.microsoft.com/downloads/details.aspx?FamilyID=12cb3c1a-15d6-4585-b385-befd1319f825&displaylang=en 

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blog covers cloud computing, big data and virtualization technologies

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today