From owner-freebsd-stable@FreeBSD.ORG Mon Aug 29 20:06:57 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88BF3106564A for ; Mon, 29 Aug 2011 20:06:57 +0000 (UTC) (envelope-from dart@es.net) Received: from mailgw.es.net (mail1.es.net [IPv6:2001:400:201:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6519F8FC08 for ; Mon, 29 Aug 2011 20:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=es.net; h=message-id : date : from : reply-to : mime-version : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=es.net; bh=M52edY9Rw0YOEXI6mRwboEfYNZZ6EwGAbLxmMESaC7U=; b=F8UD1G2SgElx1Tn+eGraIc7/uRzPwAJvgQIKXlZxis9QvaVMTnbt2l4MDI21uiJeTjpG zKL3zA/+/DxErCyQTZyolP/y4ok5M7ceXmAUtGsbFJWINVnbe/GwpwiMVEbZM4B+GxAH 1g76mhrvFBD2cHLl6DzR2JQm9Ml23hqkBgQ= Received: from e4-ce-8f-6-ab-c8.dhcp.lbnl.us (e4-ce-8f-6-ab-c8.dhcp.lbnl.us [198.128.27.190]) (authenticated bits=0) by mailgw.es.net (8.14.5/8.14.5) with ESMTP id p7TK6tGt028151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 29 Aug 2011 13:06:56 -0700 Message-ID: <4E5BF15F.9070601@es.net> Date: Mon, 29 Aug 2011 13:06:55 -0700 From: Eli Dart Organization: Energy Sciences Network User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Bengt Ahlgren References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813, 1.0.211, 0.0.0000 definitions=2011-08-29_06:2011-08-29, 2011-08-29, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=2 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1108290243 Cc: freebsd-stable@freebsd.org Subject: Re: Unable to shutdown X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dart@es.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 20:06:57 -0000 On 8/28/11 1:06 PM, Bengt Ahlgren wrote: > Kevin Oberman writes: > >> I've run into an odd problem with dismounting file systems on a >> Seagate Expansion portable >> USB drive. Running 8-stable on an amd64 system and with two FAT32 >> (msdosfs) file systems >> on the drive. >> >> The drive is "green" and spins down when idle. If an attempt is made >> to shutdown the >> system while the drive is spun down, the system goes through the usual >> shutdown including >> flushing all buffer out to disk, but when the final disk access to >> mark the file systems as >> clean, the drive never spins up and the system hangs until it is >> powered down. I've found no >> way to avoid this other then to remember to access the disk and cause >> it to spin up before >> shutting down. >> >> If I attempt to unmount the file systems when the drive is shut down. >> the same thing >> happens, but I can recover as the second file system is still mounted >> and an ls(1) to that file >> system will cause the disk to spin up and everything is fine. >> >> This looks like a bug, but I don't see why the unmounting of an >> msdosfs system does not >> spin up the drive. It's clearly hanging on some operation that is not >> spinning up the drive, >> but does block. >> >> Any ideas what is going on? Possible fix? > > Not a solution to your problem, but a data point: > > I have a WD Passport 750GB (2.5") drive with an UFS filesystem on it. I > don't think I've tried shutdown with the drive mounted, but I've > experienced no problems after the drive has spun down, including umount. > There is just a delay while it spins up. This is on 8.2-REL/i386, that > is, with the new USB stack. In my experience, the issues don't show up at lower capacities. I've seen problems with 2TB drives, but 1TB and 1.5TB drives seem to work fine. Kevin - how big is the disk in question? Thanks, --eli > > Bengt > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Eli Dart NOC: (510) 486-7600 ESnet Network Engineering Group (AS293) (800) 333-7638 Lawrence Berkeley National Laboratory PGP Key fingerprint = C970 F8D3 CFDD 8FFF 5486 343A 2D31 4478 5F82 B2B3