Project

General

Profile

Actions

Bug #7286

closed

sata doesn't support 4knative disks

Added by Igor Kozhukhov about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
driver - device drivers
Start date:
2016-08-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

we have chases with :
https://www.supermicro.com/products/motherboard/Xeon/C236_C232/X11SSH-F.cfm

we have attached to ahci/sata:
1 x ssd 500g drive
3 x 8tb with native 4k

Issues: we can see list of drives by 'format', but we can't operate with 8tb drives with native 4k: all tools said about: drives are unformated, 'format' can't latel drives, zpool can't create zfs zpool because can't label drive too.

iostat -En show only 1tb for 8tb drives.

problem is: we have hardcoded 512b block size in sata module and can't recognize drives with native 4k sectors.

with out update we can do anything with drives: can label to VTOC/EFI by 'format', create zpools, etc.
we have tested update by zfs tests.

root@dilos1:/root# format -e
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c0t4d0 <ATA-MICRON_M510DC_MTFDDAK480MBP-0005-447.13GB>
          /pci@0,0/pci15d9,884@17/disk@4,0
       1. c0t5d0 <HGST-HUH728080ALN600-A4GNT7J0-7.28TB>
          /pci@0,0/pci15d9,884@17/disk@5,0
       2. c0t6d0 <HGST-HUH728080ALN600-A4GNT7J0-7.28TB>
          /pci@0,0/pci15d9,884@17/disk@6,0
       3. c0t7d0 <HGST-HUH728080ALN600-A4GNT7J0-7.28TB>
          /pci@0,0/pci15d9,884@17/disk@7,0
Specify disk (enter its number): 3
selecting c0t7d0
[disk formatted]
/dev/dsk/c0t7d0s0 is part of active ZFS pool xpool. Please see zpool(1M).

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        inquiry    - show vendor, product and revision
        scsi       - independent SCSI mode selects
        cache      - enable, disable or query SCSI disk cache
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> label
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Warning: This disk has an EFI label. Changing to SMI label will erase all
current partitions.
Continue? y
You must use fdisk to delete the current EFI partition and create a new
Solaris partition before you can convert the label.
format> fdisk

             Total disk size is 60800 cylinders
             Cylinder size is 32130 (4096 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  60799    60799    100

SELECT ONE OF THE FOLLOWING:
   1. Create a partition
   2. Specify the active partition
   3. Delete a partition
   4. Change between Solaris and Solaris2 Partition IDs
   5. Edit/View extended partitions
   6. Exit (update disk configuration and exit)
   7. Cancel (exit without updating disk configuration)
Enter Selection: 6

format> label
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Auto configuration via format.dat[no]? 
Auto configuration via generic SCSI-2[no]? yes
format> list
`list' is not expected.
format> help
Expecting one of the following: (abbreviations ok):
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        scsi       - independent SCSI mode selects
        cache      - enable, disable or query SCSI disk cache
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit

format> disk

AVAILABLE DISK SELECTIONS:
       0. c0t4d0 <ATA-MICRON_M510DC_MTFDDAK480MBP-0005-447.13GB>
          /pci@0,0/pci15d9,884@17/disk@4,0
       1. c0t5d0 <HGST-HUH728080ALN600-A4GNT7J0-7.28TB>
          /pci@0,0/pci15d9,884@17/disk@5,0
       2. c0t6d0 <HGST-HUH728080ALN600-A4GNT7J0-7.28TB>
          /pci@0,0/pci15d9,884@17/disk@6,0
       3. c0t7d0 <ATA-HGSTHUH728080AL-T7J0 cyl 60797 alt 2 hd 255 sec 126>
          /pci@0,0/pci15d9,884@17/disk@7,0

as test result - we can see VTOC label on disk3, what was not possible before patch
if we try operate with 8tb 4k drive we can see info about - disk unformated - on fdisk.
and we can't label disk and can't create zpool

Actions #1

Updated by Igor Kozhukhov about 5 years ago

  • Description updated (diff)
Actions #2

Updated by Igor Kozhukhov about 5 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 80
Actions #3

Updated by Igor Kozhukhov about 5 years ago

  • Description updated (diff)
Actions #4

Updated by Igor Kozhukhov about 5 years ago

  • Description updated (diff)
Actions #5

Updated by Electric Monk about 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

git commit fbc2697c538d75e4d5d938d24a995afa043c99d2

commit  fbc2697c538d75e4d5d938d24a995afa043c99d2
Author: Igor Kozhukhov <igork@argotech.io>
Date:   2016-08-25T17:17:04.000Z

    7286 sata doesn't support 4knative disks
    Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Actions

Also available in: Atom PDF