From owner-freebsd-questions@FreeBSD.ORG Thu Jul 16 11:07:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86CEC1065690 for ; Thu, 16 Jul 2009 11:07:10 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from lorca.tdx.co.uk (lorca.tdx.co.uk [62.13.128.6]) by mx1.freebsd.org (Postfix) with ESMTP id 228DD8FC1F for ; Thu, 16 Jul 2009 11:07:09 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from WorkQuad64 (thebrick.dmpriest.net.uk [62.13.130.30]) by lorca.tdx.co.uk (8.14.0/8.14.0/Kp) with ESMTP id n6GB76I8052667; Thu, 16 Jul 2009 12:07:07 +0100 (BST) Date: Thu, 16 Jul 2009 12:05:18 +0100 From: Karl Pielorz To: stopeme Message-ID: <9A36F2BF89E721543246FADC@WorkQuad64> In-Reply-To: <4A5F2FF2.7020600@gmail.com> References: <30202D4CE92AA65697481B1E@WorkQuad64> <4A5F2FF2.7020600@gmail.com> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-questions@freebsd.org Subject: Re: Hanging when trying to 'rm' files off a read-only NFS export? [7.2-R] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 11:07:10 -0000 --On 16 July 2009 13:49 +0000 stopeme wrote: >> The reason for the shutdown hang is that '/etc/rc.d/random' rm's the >> '/entropy' file if it exists as the system shuts down, and that rm >> never returns (the error output is redirected so you never see the >> errors) :( > grep entropy | /etc/defaults/rc.conf > > entropy_file="/entropy" # Set to NO to disable caching entropy through > reboots. > # /var/db/entropy-file is preferred if / is not avail. > entropy_dir="/var/db/entropy" # Set to NO to disable caching entropy via > cron. > entropy_save_sz="2048" # Size of the entropy cache files. > entropy_save_num="8" # Number of entropy cache files to save. > > move entropy file to rw fs - like /var or somewhere else Already done that as a 'workaround' - but the underlying problem is that rm hangs... Surely it shouldn't hang? Also the actual '/etc/rc.d/random' appears to have code designed to work around read-only root file systems, but that doesn't work in this case - it doesn't avoid the hang. Touch doesn't hang, cp's don't hang, file redirection (e.g. 'echo "hello" >test') doesn't hang - infact everything I can think of doing write wise doesn't hang, except for rm? The rm hangs for ever (left it for hours). If any other software, scripts, or anything on there attempts a similar operation - it'll lock up that process for eternity, that can't be right? -Karl