One update.

I tried to execute two create zpool commands continuously.
I found the first one is always failed, and the second one would be successful.

# zpool create nzp1  mirror c2t600144F0C691A30D000057BE942F0002d0 
c2t600144F0C691A30D000057BE942F0001d0; zpool create nzp1  mirror 
c2t600144F0C691A30D000057BE942F0002d0 c2t600144F0C691A30D000057BE942F0001d0
cannot create 'nzp1': one or more devices is currently unavailable
# zpool list
NAME    SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
nzp1   4.97G    93K  4.97G         -     0%     0%  1.00x  ONLINE  -

Thanks.

B.R.
Junqin Zhang

发件人: 张俊钦 [mailto:zhangjun...@briphant.com]
发送时间: 2016年10月15日 18:11
收件人: smartos-discuss@lists.smartos.org
主题: [smartos-discuss] problem when create zpool on iscsi target

Hi all,

I met a problem when I tried to create zpool on iscsi target.
I tried to create a zpool on two iscsi targets.
After I created and discovered the iscsi target 
600144F0C691A30D000057BE942F0002, I type format immediately to see as blow .

# format
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <VMware,-VMware Virtual S-1.0-40.00GB>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0 <VMware,-VMware Virtual S-1.0-16.00GB>
          /pci@0,0/pci15ad,1976@10/sd@1,0
       2. c1t2d0 <VMware,-VMware Virtual S-1.0 cyl 2086 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@2,0
       3. c2t600144F0C691A30D000057BE942F0001d0 <SUN-COMSTAR-1.0-5.00GB>
          /scsi_vhci/disk@g600144f0c691a30d000057be942f0001
       4. c2t600144F0C691A30D000057BE942F0002d0 <SUN-COMSTAR-1.0 cyl 2558 alt 2 
hd 128 sec 32>
          /scsi_vhci/disk@g600144f0c691a30d000057be942f0002

Then I try to create the zpool on above two iscsi targets immediately, but I 
got following failed reason.
# zpool create nzp1 mirror c2t600144F0C691A30D000057BE942F0002d0 
c2t600144F0C691A30D000057BE942F0001d0
cannot create 'nzp1': one or more devices is currently unavailable

Then I type format again, the information of the 
c2t600144F0C691A30D000057BE942F0002d0 changes to below.

# format
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <VMware,-VMware Virtual S-1.0-40.00GB>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0 <VMware,-VMware Virtual S-1.0-16.00GB>
          /pci@0,0/pci15ad,1976@10/sd@1,0
       2. c1t2d0 <VMware,-VMware Virtual S-1.0 cyl 2086 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@2,0
       3. c2t600144F0C691A30D000057BE942F0001d0 <SUN-COMSTAR-1.0-5.00GB>
          /scsi_vhci/disk@g600144f0c691a30d000057be942f0001
       4. c2t600144F0C691A30D000057BE942F0002d0 <SUN-COMSTAR-1.0-5.00GB>
          /scsi_vhci/disk@g600144f0c691a30d000057be942f0002

Then I create zpool again, it was crated successfully.
# zpool create nzp1  mirror c2t600144F0C691A30D000057BE942F0002d0 
c2t600144F0C691A30D000057BE942F0001d0

So my question is, what’s the meaning of <SUN-COMSTAR-1.0 cyl 2558 alt 2 hd 128 
sec 32> , and how long it will be changed to <SUN-COMSTAR-1.0-5.00GB>, and why?
Thank you very much.

B.R.
Junqin Zhang
smartos-discuss | Archives<https://www.listbox.com/member/archive/184463/=now> 
[https://www.listbox.com/images/feed-icon-10x10.jpg8d7439b.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc]
 <https://www.listbox.com/member/archive/rss/184463/28468616-4d206d8a> | 
Modify<https://www.listbox.com/member/?&;> Your Subscription

[https://www.listbox.com/images/listbox-logo-small.png8d7439b.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc]<http://www.listbox.com>





-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to