On 01/14/10 09:55, Michael W Lucas wrote:
> Thanks for the guidance, much obliged.  Views added.  I believe that I'm 
> exporting partitions, though:
> 
> datastore1~; stmfadm list-lu -v
> LU Name: 600144F07D05C90000004B44F0560001
>     Operational Status: Online
>     Provider Name     : sbd
>     Alias             : /dev/rdsk/c10t0d0s2
>     View Entry Count  : 1
> 
> Now that I have views, format shows the exorted disk on the other machine, 
> but not the locally disk:
> 
> AVAILABLE DISK SELECTIONS:
>        0. c0t600144F0C838CC0000004B44F0770001d0 <DEFAULT cyl 60722 alt 2 hd 
> 255 sec 126>
>           /scsi_vhci/disk at g600144f0c838cc0000004b44f0770001
>        1. c8t0d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 126>
>           /pci at 0,0/pci1043,819e at 1f,2/disk at 0,0
>        2. c8t1d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 126>
>           /pci at 0,0/pci1043,819e at 1f,2/disk at 1,0
>        3. c8t2d0 <ATA-SAMSUNG HD103UJ-1118-931.51GB>
>           /pci at 0,0/pci1043,819e at 1f,2/disk at 2,0
> 
> datastore1~;/usr/cluster/bin/cldevice list -v
> DID Device          Full Device Path
> ----------          ----------------
> d1                  datastore2:/dev/rdsk/c7t0d0
> d2                  datastore2:/dev/rdsk/c8d0
> d3                  datastore2:/dev/rdsk/c8d1
> d4                  datastore2:/dev/rdsk/c9d1
> d5                  datastore1:/dev/rdsk/c10t0d0
> d6                  datastore1:/dev/rdsk/c8t0d0
> d7                  datastore1:/dev/rdsk/c8t1d0
> d8                  datastore1:/dev/rdsk/c8t2d0
> d9                  datastore2:/dev/rdsk/c0t600144F07D05C90000004B44F0560001d0
> 
> If I try to create a pool off of disks 4 and 5 in the cldevice list, I get:
> 
> zpool create data3 mirror /dev/did/dsk/d4 /dev/did/dsk/d5
> cannot open '/dev/did/dsk/d4': No such device or address
> 

According to the output above, d4 is not accessible from datastore1.

After a disk(say diskA) is exported as a iSCSI target, there must be a 
iSCSI session established to that iSCSI target from both the 
nodes(datastore1 and datastore2, in this case). In the format command, 
each of this iSCSI sessions will show up as a *new* disk on both the 
nodes. Run format on these new disks to label them.

Now, run the commands "scdidadm -r" and "cldevice populate", then a new 
DID device will show up with paths from both the nodes. It should look 
like below,

datastore1# /usr/cluster/bin/cldevice list -v
DID Device          Full Device Path
----------          ----------------
...
d10                  datastore1:/dev/rdsk/c14t1d0
d10                  datastore2:/dev/rdsk/c15t1d0
...

If you follow similar steps for another disk(say diskB), then there will 
be one more like below,

...
d11                  datastore1:/dev/rdsk/c25t1d0
d11                  datastore2:/dev/rdsk/c27t1d0
...

Now, you can mirror d10 and d11 and the mirrors will be accessible from 
both the nodes. This is in effect mirroring diskA and diskB using the 
iSCSI session.

The figure 1-1 at 
http://docs.sun.com/app/docs/doc/820-7821/z40000f557a?a=view

is a picture of this configuration. Notice that there are 2 iSCSI 
sessions to each of the iSCSI targets.

A similar picture with I/O multipathing configured is on my blog,
http://blogs.sun.com/augustus/entry/shared_nothing_storage_in_open

Augustus.
-- 
Augustus Franklin, Solaris Cluster, http://blogs.sun.com/augustus

Reply via email to