From owner-freebsd-questions@FreeBSD.ORG Thu Jul 16 10:47:26 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 C52691065673 for ; Thu, 16 Jul 2009 10:47:26 +0000 (UTC) (envelope-from stopeme@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 50CEB8FC18 for ; Thu, 16 Jul 2009 10:47:25 +0000 (UTC) (envelope-from stopeme@gmail.com) Received: by fxm24 with SMTP id 24so18527fxm.43 for ; Thu, 16 Jul 2009 03:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=MjGzhEkQkuVjoQ9E0/vn8dF6pXfV/zLpdrtSdbM2pqo=; b=JtK/MWo+H5BEIZkzHqdRDEIxV0yv/25L7Bp680Wlz/II3QQ+vvZuRmRJq9kMhVDwtW 0rxkXcJIZJsjcuSl9xZ6W7L+zH5oX7/z3lDVtAYwPqrpoqy7Ad5MSz815OWUbnoQA3Kf lJcY/5LraJfsxkGSzN0NgU5Mp0GnOls4qNAbU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=OH15sEar3qPIPJUsEZAXwRjUsTsQH3Xkss3N6z8dUgjBuP2/mBdKroHX7BVVZPw7Wy yNMjbUHx/c9GXaYGh7C1GSSVeyups6Nv6sT2mTGzVr2y7m/EGymydycE35BTXPwtlIEw oOqOraUU4ss69pEKP0N9OVZP3LBNQ7FJ/hfBc= Received: by 10.204.118.138 with SMTP id v10mr8604253bkq.40.1247741245115; Thu, 16 Jul 2009 03:47:25 -0700 (PDT) Received: from midnight.lubimetz.net ([87.120.162.65]) by mx.google.com with ESMTPS id g28sm14508033fkg.45.2009.07.16.03.47.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Jul 2009 03:47:23 -0700 (PDT) Message-ID: <4A5F2FF2.7020600@gmail.com> Date: Thu, 16 Jul 2009 13:49:38 +0000 From: stopeme User-Agent: Thunderbird 2.0.0.22 (X11/20090710) MIME-Version: 1.0 To: Karl Pielorz References: <30202D4CE92AA65697481B1E@WorkQuad64> In-Reply-To: <30202D4CE92AA65697481B1E@WorkQuad64> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 10:47:27 -0000 Karl Pielorz wrote: > > Hi, > > I've got a 7.2-RELEASE box that has it's root file system mounted > read/only via NFS. It hangs when trying to shutdown, at the "Writing > entropy file:" point. > > Having chased this down - it hangs *any* time you try to rm' a file > off of the filesystem. > > e.g. If I do: > > " > recovery# cd / > recovery# touch test > touch: test: Read-only file system > recovery# rm COPYRIGHT > nfs server 10.0.0.1:/usr2/boot/os/7.2-i386: not responding > nfs server 10.0.0.1:/usr2/boot/os/7.2-i386: not responding > nfs server 10.0.0.1:/usr2/boot/os/7.2-i386: not responding > " > > That last error is just repeated for infinity at about 5-10 second > intervals. > > Any suggestions? > > The NFS server exports line being used is: > > " > /usr2/boot/os -alldirs -maproot=root -ro -network 10.0.0.1 -mask > 255.255.255.0 > " > > 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) :( > > > -Karl > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > 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