This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

USB drive prevents shutdown, with solution

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
carloskar
Starter
Starter
Posts: 19
Joined: 28 Oct 2013 19:56
Status: Offline

USB drive prevents shutdown, with solution

Post by carloskar »

Hi

The other day I added a USB drive (WD Elements) to be used as an external backup disk. But when doing so my NAS would not shutdown properly, the shutdown process stopped when shutting down the USB bus that the external harddrive was connected to and I had to do a 4-sec power button shutdown. This is the output during the shutdown process:

Code: Select all

...
usbus3: Controller shutdown
uhub3: at usbus3, port 1, addr 1 (disconnected)
usbus3: Controller shutdown complete
usbus4: Controller shutdown
I found this thread at forums.freebsd.org that exactly described my problem, and there also was a suggestion for how to solve the problem.
Just add hw.usb.no_shutdown_wait=1 to sysctl.conf and the shutdown will work again.

One problem with this solution might be if a write occurs just before shutting down then it could potentially be lost. I don't think this is a problem for me at least since after the backup is done the NAS is up for at least two hours so any write should have plenty of time to finish.
11.2.0.4 - Omnius (revision 5748)
ASRock E3C226D2I, Intel(R) Celeron(R) CPU G1820 @ 2.70GHz, 8GB DDR3 ECC
ZFS main pool: Samsung SSD 850 EVO 1TB
ZFS backup pool: 3x WD10EFRX 1TB + 1x WD20EFRX 2TB, mirror, synced daily with main pool

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: USB drive prevents shutdown, with solution

Post by chrisf4lc0n »

Great find...
I had the same problem with my USB backup HDD, but now it should be sorted.
I did not look for the solution as I thought the drive itself was faulty :(

EDIT: No it is not :( Now I have a different error, there need to be something wrong with the disk, but it seems to be OK when formatted to NTFS and ran under Windows...
Last edited by chrisf4lc0n on 17 Dec 2013 16:34, edited 1 time in total.
Watercooling is just the beginning ;)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: USB drive prevents shutdown, with solution

Post by raulfg3 »

hw.usb.no_shutdown_wait=1 to sysctl.conf do not work for you?
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “Hard disk & controller”