cedric briner wrote:
Nigel Smith wrote:
On 5/1/07, cedric briner wrote:
Cedric, you seem to be using method 2).
I have used this technique myself, & you can see example in these posts:
http://mail.opensolaris.org/pipermail/storage-discuss/2007-April/001061.html http://mail.opensolaris.org/pipermail/storage-discuss/2007-April/001093.html

Here's how I do method 3) on my PC:

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SEAGATE-ST318405LW-0105-17.09GB>
          /[EMAIL PROTECTED],0/pci8086,[EMAIL PROTECTED]/pci9005,[EMAIL 
PROTECTED]/[EMAIL PROTECTED],0
       1. c2t0d0 <DEFAULT cyl 9723 alt 2 hd 255 sec 63>
          /[EMAIL PROTECTED],0/pci1028,[EMAIL PROTECTED],2/[EMAIL PROTECTED],0
Specify disk (enter its number):
# zpool create tank c0t0d0
# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
tank                     17G     88K   17.0G     0%  ONLINE     -
# zfs create -s -V 10gb tank/iscsi-zvol
# zfs list
NAME              USED  AVAIL  REFER  MOUNTPOINT
tank              110K  16.7G  24.5K  /tank
tank/iscsi-zvol  22.5K  16.7G  22.5K  -
# zfs set shareiscsi=on tank/iscsi-zvol
# iscsitadm list target -v
Target: tank/iscsi-zvol
iSCSI Name: iqn.1986-03.com.sun:02:b0737f95-bd49-e3a3-e75c-b4272e552411
    Alias: tank/iscsi-zvol
    Connections: 0
    ACL list:
    TPGT list:
    LUN information:
        LUN: 0
            GUID: 0x0
            VID: SUN
            PID: SOLARIS
            Type: disk
            Size:   10G
            Backing store: /dev/zvol/rdsk/tank/iscsi-zvol
            Status: online
woooahoo , does that mean that if you do the following :
- zpool
- zfs
- zfs set shareiscsi=on

then if you export this HD from this machine and and re-import it on an other one, you will get a zfs, which will be already enabled and that the ISCSI Name wouldn't change !!!!

I've tried it.. and .. and it perfectly works !


--

Cedric BRINER
Geneva - Switzerland
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to