Help Please - FreeNAS doesn't recognize previously created USB3 UFS Drive

Status
Not open for further replies.

NASbox

Guru
Joined
May 8, 2012
Messages
650
I am having trouble getting a previously created USB3
hard drive to be recognized by FreeNAS. Any help in
troubleshooting would be much appreciated.

Background info follows:

I am running FreeNAS-8.3.0-RELEASE-p1-x64 (r12825).
ASUS P8Z68 - 16GB DDR3 - ST3000DM001 HD RAID-Z2

I successfully made an rsync backup for my volumes on
a USB3 harddrive (ST2000DM001 in a USB3 enclosure) by
plugging the drive in and then using the volume manager
in the GUI I used the following options

Volume name EXTUSB1

Volume to extend -----
Member disks da1
Filesystem type UFS

This successfully mounted the volume at /mnt/EXTUSB1,
and I was able to backup my data.

I then used the 'Detach Volume' tab in the volumes display
to detach the volume (without checking the "Mark the disks
as new (destroy data)" option).

I subsequently decided to add a second USB thumb drive for
storing scripts using the same procedure as above.

That second thumb drive is USB2 and plugged into a USB2 port.
It shows up on the system with geom label as:

Code:
Geom name: da1p2
Providers:
1. Name: ufs/USBDRIVE
   Mediasize: 5737725440 (5.4G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 11206495
   length: 5737725440
   index: 0
Consumers:
1. Name: da1p2
   Mediasize: 5737725440 (5.4G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r1w1e2


Today I went to plug in my external USB3 drive and it wasn't
recognized.

Code:
camcontrol devlist -v
scbus0 on ahcich0 bus 0:
<>                                 at scbus0 target -1 lun -1 ()
scbus1 on ahcich1 bus 0:
<>                                 at scbus1 target -1 lun -1 ()
scbus2 on ahcich2 bus 0:
<ST3000DM001-9YN166 CC9C>          at scbus2 target 0 lun 0 (pass0,ada0)
<>                                 at scbus2 target -1 lun -1 ()
scbus3 on ahcich3 bus 0:
<ST3000DM001-9YN166 CC4C>          at scbus3 target 0 lun 0 (pass1,ada1)
<>                                 at scbus3 target -1 lun -1 ()
scbus4 on ahcich4 bus 0:
<ST3000DM001-9YN166 CC4C>          at scbus4 target 0 lun 0 (pass2,ada2)
<>                                 at scbus4 target -1 lun -1 ()
scbus5 on ahcich5 bus 0:
<ST3000DM001-9YN166 CC47>          at scbus5 target 0 lun 0 (pass3,ada3)
<>                                 at scbus5 target -1 lun -1 ()
scbus6 on umass-sim0 bus 0:
<Kingston DT Mini Fun G2 PMAP>     at scbus6 target 0 lun 0 (pass4,da0)
scbus7 on umass-sim1 bus 1:
<Lexar JumpDrive 1100>             at scbus7 target 0 lun 0 (pass5,da1)
scbus-1 on xpt0 bus 0:
<>                                 at scbus-1 target -1 lun -1 (xpt0)


I have two USB3 ports on the box, and I have tried plugging the drive into
both of them. When I plug the drive in, it spins up, and there is a bit of
noise due to head activity as would be expected when a USB drive is
registered by the system. However there is no sign of the drive and I get
no messages when the drive is plugged in or unplugged from the USB port.

Below is a complete listing of dmesg. I don't see anything, but I have included
just in case there is something that I am missing, and to provide insight into
system configuration.

Code:
freenas# dmesg
Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.3-RELEASE-p5 #2 r244158M: Wed Dec 12 10:04:42 PST 2012
    root@build.ixsystems.com:/home/jpaetzel/8.3.0/os-base/amd64/usr/home/jpaetzel/8.3.0/FreeBSD/src/sys/FREENAS.amd64 amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) CPU G620 @ 2.60GHz (2608.53-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x206a7  Family = 6  Model = 2a  Stepping = 7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x59ae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,TSCDLT,XSAVE>
  AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 17179869184 (16384 MB)
avail memory = 16431353856 (15670 MB)
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  2
WARNING: VIMAGE (virtualized network stack) is a highly experimental feature.
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
hpt27xx: RocketRAID 27xx controller driver v1.0 (Dec 12 2012 10:04:31)
cryptosoft0: <software crypto> on motherboard
aesni0: No AESNI support.
acpi0: <ALASKA A M I> on motherboard
acpi0: [ITHREAD]
ACPI Error: [RAMB] Namespace lookup failure, AE_NOT_FOUND (20101013/psargs-464)
ACPI Exception: AE_NOT_FOUND, Could not execute arguments for [RAMW] (Region) (20101013/nsinit-452)
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem 0xfe000000-0xfe3fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0
pci0: <simple comms> at device 22.0 (no driver attached)
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe607000-0xfe6073ff irq 23 at device 26.0 on pci0
ehci0: [ITHREAD]
usbus0: EHCI version 1.0
usbus0: <EHCI (generic) USB 2.0 controller> on ehci0
pci0: <multimedia, HDA> at device 27.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0
pci3: <ACPI PCI bus> on pcib3
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 0xd0004000-0xd0004fff,0xd0000000-0xd0003fff irq 16 at device 0.0 on pci3
re0: Using 1 MSI-X message
re0: Chip rev. 0x2c800000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Ethernet address: c8:60:00:6d:86:3b
re0: [ITHREAD]
pcib4: <ACPI PCI-PCI bridge> irq 16 at device 28.5 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> irq 17 at device 0.0 on pci4
pci5: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> irq 18 at device 28.6 on pci0
pci6: <ACPI PCI bus> on pcib6
ahci0: <ASMedia ASM1061 AHCI SATA controller> port 0xd050-0xd057,0xd040-0xd043,0xd030-0xd037,0xd020-0xd023,0xd000-0xd01f mem 0xfe500000-0xfe5001ff irq 18 at device 0.0 on pci6
ahci0: [ITHREAD]
ahci0: AHCI v1.20 with 2 6Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich1: [ITHREAD]
pcib7: <ACPI PCI-PCI bridge> irq 19 at device 28.7 on pci0
pci7: <ACPI PCI bus> on pcib7
pci7: <serial bus, USB> at device 0.0 (no driver attached)
ehci1: <EHCI (generic) USB 2.0 controller> mem 0xfe606000-0xfe6063ff irq 23 at device 29.0 on pci0
ehci1: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <EHCI (generic) USB 2.0 controller> on ehci1
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci1: <Intel Cougar Point AHCI SATA controller> port 0xf0b0-0xf0b7,0xf0a0-0xf0a3,0xf090-0xf097,0xf080-0xf083,0xf060-0xf07f mem 0xfe605000-0xfe6057ff irq 20 at device 31.2 on pci0
ahci1: [ITHREAD]
ahci1: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported
ahcich2: <AHCI channel> at channel 0 on ahci1
ahcich2: [ITHREAD]
ahcich3: <AHCI channel> at channel 1 on ahci1
ahcich3: [ITHREAD]
ahcich4: <AHCI channel> at channel 2 on ahci1
ahcich4: [ITHREAD]
ahcich5: <AHCI channel> at channel 3 on ahci1
ahcich5: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
ppc1: <Parallel port> port 0x378-0x37f irq 5 on acpi0
ppc1: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppc1: [ITHREAD]
ppbus0: <Parallel port bus> on ppc1
lpt0: <Printer> on ppbus0
lpt0: [ITHREAD]
lpt0: Interrupt-driven port
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
orm0: <ISA Option ROM> at iomem 0xc0000-0xcdfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
Timecounters tick every 1.000 msec
hpt27xx: no controller detected.
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
ugen0.2: <vendor 0x8087> at usbus0
uhub2: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus0
ugen1.2: <vendor 0x8087> at usbus1
uhub3: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus1
uhub2: 6 ports with 6 removable, self powered
uhub3: 8 ports with 8 removable, self powered
ugen0.3: <Kingston> at usbus0
umass0: <Kingston DT Mini Fun G2, class 0/0, rev 2.00/1.00, addr 3> on usbus0
ugen0.4: <Lexar> at usbus0
umass1: <Lexar JumpDrive, class 0/0, rev 2.00/11.00, addr 4> on usbus0
ada0 at ahcich2 bus 0 scbus2 target 0 lun 0
ada0: <ST3000DM001-9YN166 CC9C> ATA-8 SATA 3.x device
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich3 bus 0 scbus3 target 0 lun 0
ada1: <ST3000DM001-9YN166 CC4C> ATA-8 SATA 3.x device
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C)
ada2 at ahcich4 bus 0 scbus4 target 0 lun 0
ada2: <ST3000DM001-9YN166 CC4C> ATA-8 SATA 3.x device
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C)
ada3 at ahcich5 bus 0 scbus5 target 0 lun 0
ada3: <ST3000DM001-9YN166 CC47> ATA-8 SATA 3.x device
ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada3: Command Queueing enabled
ada3: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C)
da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
da1: <Lexar JumpDrive 1100> Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: 7520MB (15400960 512 byte sectors: 255H 63S/T 958C)
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <Kingston DT Mini Fun G2 PMAP> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 3745MB (7669824 512 byte sectors: 255H 63S/T 477C)
SMP: AP CPU #1 Launched!
GEOM: da0s1: geometry does not match label (16h,63s != 255h,63s).
GEOM: da0s2: geometry does not match label (16h,63s != 255h,63s).
Trying to mount root from ufs:/dev/ufs/FreeNASs2a
ZFS filesystem version 5
ZFS storage pool version 28
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
USB3 isn't enabled by default in FreeNAS. I know you are saying you used USB3 before, but if you didn't enable it I assure you that you didn't use an actual USB3 port. Consult the manual for exact instructions on how to enable USB3. Be warned though that USB3 isn't enabled by default because it causes FreeBSD to crash on alot of hardware because USB3 drivers aren't very good.
 

NASbox

Guru
Joined
May 8, 2012
Messages
650
[Solved] Help Please - FreeNAS doesn't recognize previously created USB3 UFS Drive

USB3 isn't enabled by default in FreeNAS. I know you are saying you used USB3 before, but if you didn't enable it I assure you that you didn't use an actual USB3 port. Consult the manual for exact instructions on how to enable USB3. Be warned though that USB3 isn't enabled by default because it causes FreeBSD to crash on alot of hardware because USB3 drivers aren't very good.

Thanks very much cyberjock for the quick reply... you saved my bacon.

I guess I plugged the drive in the wrong port when I was creating it. At least I can mount the drive from a USB2 port.

Maybe I should start a new thread for this one, but do you know if is it safe to enable USB3 to give it a try???.

If it doesn't work, am I likely to damage the main pool or create a box that won't boot?

If so what precautions do I need to take, and how would I get control back to a non booting system?

Thanks again.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
From what I've heard the only reason USB3 was disabled is because it causes some machines to panic on bootup. It's a little difficult for noobies to fix a machine that panics before it finishes booting, but is fixable. Your data wouldn't be at risk if it gets stuck panicing on bootup.

I'd think that it would be a situation where it either would work or wouldn't. I wouldn't think that your data would really be at risk. It's really not recommended that you use USB drives for FreeNAS long term. Too many people gamble with the risk of unplugging the USB or power cables and lose. :P
 

NASbox

Guru
Joined
May 8, 2012
Messages
650
USB3 works fine with FreeNAS-8.3.0-RELEASE-p1-x64 (r12825) ASUS P8Z68

Thanks again cyberjock... looked at the stuff under tunables and it
didn't look too hard, so I gave it a shot... and I lucked out and USB3
works fine.

For anyone searching USB3 works fine with
FreeNAS-8.3.0-RELEASE-p1-x64 (r12825) on ASUS P8Z68
 
Status
Not open for further replies.
Top