Re: LSI SAS2008 mps(4) 4TB disk only shows 2TB on CURRENT r255089

2013-09-02 Thread Sam Fourman Jr.
On Sat, Aug 31, 2013 at 1:07 PM, Sam Fourman Jr. sfour...@gmail.com wrote:

 Hello list

 I have two issues that may in fact be both related to the LSI SAS2008 card
 or
 the mps(4) driver.

 this server is running FreeBSD 10.0-CURRENT #0 r255089


 1) All of the SSD disks are showing up at SATA2 300MB's
 but the card is in fact a 6GB Sata3 card..

 2) a Westren Digital 4TB disk only shows 2TB (connected to the LSI
 controller)

 full dmesg here
 https://gist.github.com/sfourman/6399419

 full pciconf here
 https://gist.github.com/sfourman/6399454



 Below is some disk info,


 $ sudo camcontrol identify da6
 pass6: WDC WD4000FYYZ-01UL1B0 01.01K01 ATA-8 SATA 3.x device
 pass6: 300.000MB/s transfers, Command Queueing Enabled

 protocol  ATA/ATAPI-8 SATA 3.x
 device model  WDC WD4000FYYZ-01UL1B0
 firmware revision 01.01K01
 serial number WD-WCC130721596
 WWN   50014ee25de95b67
 cylinders 16383
 heads 16
 sectors/track 63
 sector size   logical 512, physical 512, offset 0
 LBA supported 268435455 sectors
 LBA48 supported   7814037168 sectors
 PIO supported PIO4
 DMA supported WDMA2 UDMA6
 media RPM 7200

 Feature  Support  Enabled   Value   Vendor
 read ahead yes yes
 write cacheyes yes
 flush cacheyes yes
 overlapno
 Tagged Command Queuing (TCQ)   no no
 Native Command Queuing (NCQ)   yes 32 tags
 SMART  yes yes
 microcode download yes yes
 security   yes no
 power management   yes yes
 advanced power management  yes yes 128/0x80
 automatic acoustic management  no no
 media status notification  no no
 power-up in Standbyyes no
 write-read-verify  no no
 unload yes yes
 free-fall  no no
 Data Set Management (DSM/TRIM) no
 Host Protected Area (HPA)  yes  no  7814037168/7814037168
 HPA - Security no
 $


 sudo gpart create -s gpt /dev/da6
 da6 created
 $ gpart show
 =   34  234441581  da0  GPT  (111G)
  341281  freebsd-boot  (64k)
 162  2243951362  freebsd-ufs  (107G)
   22439529883886083  freebsd-swap  (4.0G)
   2327839061657709   - free -  (809M)

 =34  4294967227  da6  GPT  (2T)
   34  4294967227   - free -  (2T)


 $ sudo gpart add -a 4k -t freebsd-zfs -l backup da6
 da6p1 added
 $
 $
 $
 $
 $
 $ gpart show
 =   34  234441581  da0  GPT  (111G)
  341281  freebsd-boot  (64k)
 162  2243951362  freebsd-ufs  (107G)
   22439529883886083  freebsd-swap  (4.0G)
   2327839061657709   - free -  (809M)

 =34  4294967227  da6  GPT  (2T)
   34   6   - free -  (3.0k)
   40  42949672161  freebsd-zfs  (2T)
   4294967256   5   - free -  (2.5k)
 --

 Sam Fourman Jr.



 is it possible that the problem is in the cam layer and not the mps(4)
driver?

-- 

Sam Fourman Jr.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: LSI SAS2008 mps(4) 4TB disk only shows 2TB on CURRENT r255089

2013-09-02 Thread Kenneth D. Merry
On Sat, Aug 31, 2013 at 13:07:53 -0400, Sam Fourman Jr. wrote:
 Hello list
 
 I have two issues that may in fact be both related to the LSI SAS2008 card
 or
 the mps(4) driver.
 
 this server is running FreeBSD 10.0-CURRENT #0 r255089
 
 
 1) All of the SSD disks are showing up at SATA2 300MB's
 but the card is in fact a 6GB Sata3 card..
 
 2) a Westren Digital 4TB disk only shows 2TB (connected to the LSI
 controller)
 
 full dmesg here
 https://gist.github.com/sfourman/6399419

Both problems are because the drives in question are plugged into an mpt(4)
controller, not the mps(4) controller in the system.

The first one is because mpt(4) controllers only support up to 3Gb of
course, but the second one is because mpt(4) controllers don't support
SATA drives over 2TB.  Or more precisely don't let you access the capacity
over 2TB.

Both problems should go away if you plug them into the mps(4) controller.

From the dmesg:

mps0: LSI SAS2008 port 0xe000-0xe0ff mem 
0xfeb3c000-0xfeb3,0xfeb4-0xfeb7 irq 24 at device 0.0 on pci9
mps0: Firmware: 15.00.00.00, Driver: 16.00.00.00-fbsd
mps0: IOCCapabilities: 
1285cScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay,HostDisc
pcib2: ACPI PCI-PCI bridge irq 52 at device 3.0 on pci0
pci8: ACPI PCI bus on pcib2
mpt0: LSILogic SAS/SATA Adapter port 0xd000-0xd0ff mem 
0xfe7ec000-0xfe7e,0xfe7f-0xfe7f irq 28 at device 0.0 on pci8
mpt0: MPI Version=1.5.20.0
[ ...]
da0 at mpt0 bus 0 scbus1 target 1 lun 0
da0: ATA INTEL SSDSC2BB12 0350 Fixed Direct Access SCSI-5 device 
da0: 300.000MB/s transfers
da0: Command Queueing enabled
da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C)
cd0 at ata0 bus 0 scbus6 target 1 lun 0
cd0: MATSHITA DVD-ROM UJ8B0AC 1.00 Removable CD-ROM SCSI-0 device 
cd0: 150.000MB/s transfers (SATA, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray 
closed
da1 at mpt0 bus 0 scbus1 target 2 lun 0
da1: ATA INTEL SSDSC2BB12 0350 Fixed Direct Access SCSI-5 device 
da1: 300.000MB/s transfers
da1: Command Queueing enabled
da1: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C)
da2 at mpt0 bus 0 scbus1 target 3 lun 0
da2: ATA INTEL SSDSC2BA80 0250 Fixed Direct Access SCSI-5 device 
da2: 300.000MB/s transfers
da2: Command Queueing enabled
da2: 763097MB (1562824368 512 byte sectors: 255H 63S/T 97281C)
da3 at mpt0 bus 0 scbus1 target 4 lun 0
da3: ATA INTEL SSDSC2BA80 0250 Fixed Direct Access SCSI-5 device 
da3: 300.000MB/s transfers
da3: Command Queueing enabled
da3: 763097MB (1562824368 512 byte sectors: 255H 63S/T 97281C)
da4 at mpt0 bus 0 scbus1 target 5 lun 0
da4: ATA INTEL SSDSC2BA80 0250 Fixed Direct Access SCSI-5 device 
da4: 300.000MB/s transfers
da4: Command Queueing enabled
da4: 763097MB (1562824368 512 byte sectors: 255H 63S/T 97281C)
da5 at mpt0 bus 0 scbus1 target 6 lun 0
da5: ATA INTEL SSDSC2BA80 0250 Fixed Direct Access SCSI-5 device 
da5: 300.000MB/s transfers
da5: Command Queueing enabled
da5: 763097MB (1562824368 512 byte sectors: 255H 63S/T 97281C)
da6 at mpt0 bus 0 scbus1 target 8 lun 0
da6: ATA WDC WD4000FYYZ-0 1K01 Fixed Direct Access SCSI-5 device 
da6: 300.000MB/s transfers
da6: Command Queueing enabled
da6: 2097151MB (4294967294 512 byte sectors: 255H 63S/T 267349C)


Ken
-- 
Kenneth Merry
k...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


LSI SAS2008 mps(4) 4TB disk only shows 2TB on CURRENT r255089

2013-08-31 Thread Sam Fourman Jr.
Hello list

I have two issues that may in fact be both related to the LSI SAS2008 card
or
the mps(4) driver.

this server is running FreeBSD 10.0-CURRENT #0 r255089


1) All of the SSD disks are showing up at SATA2 300MB's
but the card is in fact a 6GB Sata3 card..

2) a Westren Digital 4TB disk only shows 2TB (connected to the LSI
controller)

full dmesg here
https://gist.github.com/sfourman/6399419

full pciconf here
https://gist.github.com/sfourman/6399454



Below is some disk info,


$ sudo camcontrol identify da6
pass6: WDC WD4000FYYZ-01UL1B0 01.01K01 ATA-8 SATA 3.x device
pass6: 300.000MB/s transfers, Command Queueing Enabled

protocol  ATA/ATAPI-8 SATA 3.x
device model  WDC WD4000FYYZ-01UL1B0
firmware revision 01.01K01
serial number WD-WCC130721596
WWN   50014ee25de95b67
cylinders 16383
heads 16
sectors/track 63
sector size   logical 512, physical 512, offset 0
LBA supported 268435455 sectors
LBA48 supported   7814037168 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA6
media RPM 7200

Feature  Support  Enabled   Value   Vendor
read ahead yes yes
write cacheyes yes
flush cacheyes yes
overlapno
Tagged Command Queuing (TCQ)   no no
Native Command Queuing (NCQ)   yes 32 tags
SMART  yes yes
microcode download yes yes
security   yes no
power management   yes yes
advanced power management  yes yes 128/0x80
automatic acoustic management  no no
media status notification  no no
power-up in Standbyyes no
write-read-verify  no no
unload yes yes
free-fall  no no
Data Set Management (DSM/TRIM) no
Host Protected Area (HPA)  yes  no  7814037168/7814037168
HPA - Security no
$


sudo gpart create -s gpt /dev/da6
da6 created
$ gpart show
=   34  234441581  da0  GPT  (111G)
 341281  freebsd-boot  (64k)
162  2243951362  freebsd-ufs  (107G)
  22439529883886083  freebsd-swap  (4.0G)
  2327839061657709   - free -  (809M)

=34  4294967227  da6  GPT  (2T)
  34  4294967227   - free -  (2T)


$ sudo gpart add -a 4k -t freebsd-zfs -l backup da6
da6p1 added
$
$
$
$
$
$ gpart show
=   34  234441581  da0  GPT  (111G)
 341281  freebsd-boot  (64k)
162  2243951362  freebsd-ufs  (107G)
  22439529883886083  freebsd-swap  (4.0G)
  2327839061657709   - free -  (809M)

=34  4294967227  da6  GPT  (2T)
  34   6   - free -  (3.0k)
  40  42949672161  freebsd-zfs  (2T)
  4294967256   5   - free -  (2.5k)
-- 

Sam Fourman Jr.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org