Solaris 11 - sshd and iSCSI Initiator

I just installed the latest Solaris Express Release into an VMware Virtual Machine. For the installation I used the "reduced network Cluster".

-bash-3.00$ cat /var/sadm/system/admin/CLUSTER

To get the SSH Daemon working I used the following commands:

-bash-3.00# mount -F hsfs /dev/dsk/c1t0d0p0 /mnt
-bash-3.00# cd /mnt/Solaris_11/Product/
-bash-3.00# pkgadd -d . SUNWgssc SUNWgss \
SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr SUNWsshu
-bash-3.00# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
-bash-3.00# ssh-keygen -t dsa -f/etc/ssh/ssh_host_dsa_key
-bash-3.00# svcadm enable network/ssh
-bash-3.00# svcs -xv network/ssh
svc:/network/ssh:default (SSH server)
 State: online since Fri Aug 11 12:24:14 2006
   See: man -M /usr/share/man -s 1M sshd
   See: /var/svc/log/network-ssh:default.log
Impact: None.

[Update:] To generate the SSH-Keys for sshd you could also use:

bash# /lib/svc/method/sshd -c

Afterwards I made some experiments with the included iSCSI Initiator. For the tests I used my existing Linux iSCSI Enterprise Target Installation. To configure the Solaris Initiator I used:

bash-3.00# iscsiadm modify discovery -t enable
bash-3.00# iscsiadm add discovery-address
bash-3.00# iscsiadm list target
        Alias: -
        TPGT: 1
        ISID: 4000002a0000
        Connections: 1
        Alias: -
        TPGT: 1
        ISID: 4000002a0000
        Connections: 1
bash-3.00# devfsadm -c iscsi
bash-3.00# format
Searching for disks...done
0. c0d0 
1. c3t0d0 
2. c3t1d0 
Specify disk (enter its number): 1
selecting c3t0d0
[disk formatted]
format> inq
Vendor:   IET
Revision: 0
format> quit
bash-3.00# newfs /dev/rdsk/c3t0d0s2
newfs: construct a new file system /dev/rdsk/c3t0d0s2: (y/n)? y
4186112 sectors in 1022 cylinders of 128 tracks, 32 sectors
2044.0MB in 45 cyl groups (23 c/g, 46.00MB/g, 11264 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 94272, 188512, 282752, 376992, 471232, 565472, 659712
bash-3.00# mkdir /foo
bash-3.00# mount /dev/dsk/c3t0d0s2 /foo/
bash-3.00# df -ah
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0        536M   283M   199M    59%    /
/dev/dsk/c3t0d0s2      1.9G   2.0M   1.9G     1%    /foo

You can find more about iSCSI under Solaris in the "System Administration Guide: Devices and File Systems" Chapter 15 Configuring Solaris iSCSI Initiators (Tasks).