Project

General

Profile

Bug #12036

iscsi: zpool create pool fails to create label

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
comstar - iSCSI/FC/SAS target
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

I have 2 luns:

AVAILABLE DISK SELECTIONS:
       0. c0t600144F07A6B316A00005DCFD2FD0001d0 <SUN-COMSTAR-1.0-10.00GB>
          /scsi_vhci/disk@g600144f07a6b316a00005dcfd2fd0001
       1. c0t600144F07A6B316A00005DDD73FA0001d0 <SUN-COMSTAR-1.0-10.00GB>
          /scsi_vhci/disk@g600144f07a6b316a00005ddd73fa0001

Attempting to create pool:

root@test:/home/tsoome# zpool create tank1 c0t600144F07A6B316A00005DDD73FA0001d0
cannot label 'c0t600144F07A6B316A00005DDD73FA0001d0': try using fdisk(1M) and then provide a specific slice
root@test:/home/tsoome# 

This command did result with log spam:

Nov 26 20:54:47 test scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/disk@g600144f07a6b316a00005ddd73fa0001 (sd18):
Nov 26 20:54:47 test    SYNCHRONIZE CACHE command failed (5)

The lun is created as:

root@beastie:/code/illumos-gate# stmfadm list-lu -v
LU Name: 600144F07A6B316A00005DCFD2FD0001
    Operational Status: Online
    Provider Name     : sbd
    Alias             : /dev/zvol/dsk/rpool/iscsi/disk1
    View Entry Count  : 1
    Data File         : /dev/zvol/dsk/rpool/iscsi/disk1
    Meta File         : not set
    Size              : 10737418240
    Block Size        : 4096
    Management URL    : not set
    Vendor ID         : SUN     
    Product ID        : COMSTAR         
    Serial Num        : not set
    Write Protect     : Disabled
    Writeback Cache   : Disabled
    Access State      : Active
LU Name: 600144F07A6B316A00005DDD73FA0001
    Operational Status: Online
    Provider Name     : sbd
    Alias             : /dev/zvol/dsk/rpool/iscsi/disk2
    View Entry Count  : 1
    Data File         : /dev/zvol/dsk/rpool/iscsi/disk2
    Meta File         : not set
    Size              : 10737418240
    Block Size        : 512
    Management URL    : not set
    Vendor ID         : SUN     
    Product ID        : COMSTAR         
    Serial Num        : not set
    Write Protect     : Disabled
    Writeback Cache   : Disabled
    Access State      : Active
root@beastie:/code/illumos-gate# 

However, the label actually was created:

format> ver

Volume name = <        >
ascii name  = <SUN-COMSTAR-1.0-10.00GB>
bytes/sector    =  512
sectors = 20971520
accessible sectors = 20971486
Part      Tag    Flag     First Sector        Size        Last Sector
  0        usr    wm               256       9.99GB         20955102    
  1 unassigned    wm                 0          0              0    
  2 unassigned    wm                 0          0              0    
  3 unassigned    wm                 0          0              0    
  4 unassigned    wm                 0          0              0    
  5 unassigned    wm                 0          0              0    
  6 unassigned    wm                 0          0              0    
  8   reserved    wm          20955103       8.00MB         20971486    

format> 

Also available in: Atom PDF