October 24, 2010

ISCSI: nice to meet you!

Posted in Solaris at 10:44 am by alessiodini

I’m doing a two node cluster on vmware.
The software is:

– vmware workstation 7
– Solaris 10 x86 64 bit
– Sun Cluster 3.2u3 x86 64bit

Due to lot of problems with vmware disk sharing , i thinked to use ISCSI ( never seen before ).

I tried some test and finally i was able to share 1 or more  disks  for both nodes.
The environment is:

– nodo1 (192.168.1.160)
first disk: c0t0d0
second disk: c1t0d0

– nodo2 (192.168.1.161)
first disk: c0t0d0

I maked ISCSI target based on second disk of system nodo1.
Follow the commands:

(on nodo1)

1 – svcadm enable iscsitgt
2 – iscsitadm modify admin -d /etc/iscsi
3 – iscsitadm create target -b /dev/dsk/c1t1d0s2 target
4 – iscsiadm add discovery-address  192.168.1.160 <— add a discovery of himself
5 – iscsiadm list discovery-address -v
6 – iscsiadm add static-config NAME_OF_ISCSI_TARGET,IP_ADDRESS_OF_ISCSI_TARGET
7 – iscsiadm modify discovery –static enable
8 – devfsadm -i iscsi

(on nodo2)

1 – svcadm enable iscsitgt
2 – iscsitadm modify admin -d /etc/iscsi
3 – iscsiadm add discovery-address  192.168.1.160 <— add a discovery of nodo1
4 – iscsiadm list discovery-address -v
5 – iscsiadm add static-config NAME_OF_ISCSI_TARGET,IP_ADDRESS_OF_ISCSI_TARGET
6 – iscsiadm modify discovery –static enable
7 – devfsadm -i iscsi

After some second i can see the virtual LUN on both nodes. I try to make a volname and this is the output:

(nodo1)

# echo | format

c2t600144F04CC40CA400000C29A9A97400d0 <DEFAULT cyl 504 alt 2 hd 64 sec 32>  quorum

 

(nodo2)

# echo | format

c2t600144F04CC40CA400000C29A9A97400d0 <DEFAULT cyl 504 alt 2 hd 64 sec 32>  quorum

that’s nice 😀

Advertisements

5 Comments »

  1. pc games said,

    Visitors Mayhem Review- the content articles on this post is seriously a single of the most effective substance that i?ve in fact are readily available throughout. I seriously like your write-up, I’ll are available once more to verify for new posts.

    • alessiodini said,

      hi and thanks for visit my blog !
      i hope that u will like my new posts 😉

  2. webdesigner said,

    Lovely sharp publish. Never believed that it was this simple. Extolment to you!

  3. Emmanuel said,

    In this way if nodo1 goes down the disk becomes not available to node2 right?

    I’m trying to install 2 solaris 10 nodes with VBox on a Linux host and share a file trough a loop device with iscsi.

    I’ll let you know how goes this experiment.

    • alessiodini said,

      yes u right.
      That’s why in my cluster-test environment i used a third machine as iscsi/quorum server 😉


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: