Maurizio Vairani
2013-Jul-17 08:27 UTC
Shutdown problem with an USB memory stick as ZFS cache device
Hi all, on a Compaq Presario laptop I have just installed the latest stable #uname -a FreeBSD presario 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0: Tue Jul 16 16:32:39 CEST 2013 root at presario:/usr/obj/usr/src/sys/GENERIC amd64 For speed up the compilation I have added to the pool, tank0, a SanDisk memory stick as cache device with the command: # zpool add tank0 cache /dev/da0 But when I shutdown the laptop the process will halt with this screen shot: http://www.dump-it.fr/freebsd-screen-shot/2f9169f18c7c77e52e873580f9c2d4bf.jpg.html and I need to press the power button for more than 4 seconds to switch off the laptop. The problem is always reproducible. Regards Maurizio
Ivailo Tanusheff
2013-Jul-17 09:25 UTC
Shutdown problem with an USB memory stick as ZFS cache device
I think this is expected as your screenshot shows the USB has being disconnected, so you actually lost the cache device on the shutdown. Maybe you should implement a shutdown script that removes the USB cache from the pool before the shutdown command is issued :) Best regards, Ivailo Tanusheff -----Original Message----- From: owner-freebsd-stable at freebsd.org [mailto:owner-freebsd-stable at freebsd.org] On Behalf Of Maurizio Vairani Sent: Wednesday, July 17, 2013 11:27 AM To: freebsd-stable at FreeBSD.org; freebsd-fs at freebsd.org Subject: Shutdown problem with an USB memory stick as ZFS cache device Hi all, on a Compaq Presario laptop I have just installed the latest stable #uname -a FreeBSD presario 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0: Tue Jul 16 16:32:39 CEST 2013 root at presario:/usr/obj/usr/src/sys/GENERIC amd64 For speed up the compilation I have added to the pool, tank0, a SanDisk memory stick as cache device with the command: # zpool add tank0 cache /dev/da0 But when I shutdown the laptop the process will halt with this screen shot: http://www.dump-it.fr/freebsd-screen-shot/2f9169f18c7c77e52e873580f9c2d4bf.jpg.html and I need to press the power button for more than 4 seconds to switch off the laptop. The problem is always reproducible. Regards Maurizio _______________________________________________ freebsd-stable at freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
Ronald Klop
2013-Jul-17 09:50 UTC
Shutdown problem with an USB memory stick as ZFS cache device
On Wed, 17 Jul 2013 10:27:09 +0200, Maurizio Vairani <maurizio.vairani at cloverinformatica.it> wrote:> Hi all, > > > on a Compaq Presario laptop I have just installed the latest stable > > > #uname -a > > FreeBSD presario 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0: Tue Jul 16 > 16:32:39 CEST 2013 root at presario:/usr/obj/usr/src/sys/GENERIC amd64 > > > For speed up the compilation I have added to the pool, tank0, a SanDisk > memory stick as cache device with the command: > > > # zpool add tank0 cache /dev/da0 > > > But when I shutdown the laptop the process will halt with this screen > shot: > > > http://www.dump-it.fr/freebsd-screen-shot/2f9169f18c7c77e52e873580f9c2d4bf.jpg.html > > > and I need to press the power button for more than 4 seconds to switch > off the laptop. > > The problem is always reproducible.Does sysctl hw.usb.no_shutdown_wait=1 help? Ronald.