Knowledge Base : Configure Solaris iSCSI access to ZFS

Configure Solaris iSCSI access to filer

  1. Install current Solaris 10 w/ ZFS boot volume.
  2. Config ILOM
  3. Config IPv4, sshd login, unprivileged user
  4. Configure ISCSI access to filer:

bash-3.00# svcadm clear /network/ssh
bash-3.00# iscsiadm add static-config iqn.1986-03.com.sun:02:491a186e-8513-6b63-c28a-e9bdaac50baf,192.168.10.60:3260
bash-3.00# iscsiadm list static-config
Static Configuration Target: iqn.1986-03.com.sun:02:491a186e-8513-6b63-c28a-e9bdaac50baf,192.168.10.60:3260

5. import the LUN

bash-3.00# iscsiadm modify discovery -s enable
bash-3.00# devfsadm -i iscsi -v

6. format the disk

bash-3.00# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
1. c4t010000304858E76E00002A004C2F4856d0 <DEFAULT cyl 33416 alt 2 hd 255 sec 126> /scsi_vhci/disk@g010000304858e76e00002a004c2f4856
format> p
WARNING – This disk may be in use by an application that has
modified the fdisk table. Ensure that this disk is
not currently in use before proceeding to use fdisk.
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% “SOLARIS System” partition
Type “y” to accept the default partition, otherwise type “n” to edit the
partition table.
y
format> p
partition> p
Current partition table (original):
Total disk cylinders available: 33415 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 – 33414 511.94GB (33415/0/0) 1073623950
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 – 0 15.69MB (1/0/0) 32130
9 unassigned wm 0 0 (0/0/0) 0
partition> label
Ready to label disk, continue? y
partition> quit

see: http://wikis.sun.com/display/VDI3/Getting+Started+-+VDI+Demo