From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alaric Turner Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: problem with Defragcron , Tru64 4.0G & dev/null Date: Mon, 15 Dec 2003 17:18:03 +0000 Organization: Albourne Partners Limited Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3FDDECCB.6030908@albourne.com> References: <3FDD9871.9070900@albourne.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1071508739 21751 80.91.224.253 (15 Dec 2003 17:18:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2003 17:18:59 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Dec 15 18:18:56 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AVwMx-0004S8-00 for ; Mon, 15 Dec 2003 18:18:55 +0100 Original-Received: (qmail 3254 invoked by uid 5); 15 Dec 2003 17:18:48 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3239 invoked by uid 49493); 15 Dec 2003 17:18:47 -0000 Original-Received: from a.turner@albourne.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.6/5.0):. Processed in 21.005836 secs); 15 Dec 2003 17:18:47 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 15 Dec 2003 17:18:26 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HPY00MKQ5EP6Q@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 15 Dec 2003 12:18:26 -0500 (EST) Original-Received: from circe.uk.albourne.com (circe.albourne.com [195.212.0.60]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTPS id <0HPY0064X5E4HK@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 15 Dec 2003 12:18:06 -0500 (EST) Original-Received: from terracotta.uk.albourne.com (terracotta.uk.albourne.com [192.168.1.10]) by circe.uk.albourne.com (8.11.4/8.11.4/Albourne/R/1.15) with ESMTP id hBFHI4k27175 for ; Mon, 15 Dec 2003 17:18:04 +0000 (GMT) Original-Received: from albourne.com (tabon.uk.albourne.com [192.168.1.91]) by terracotta.uk.albourne.com (8.9.3/8.9.3/Albourne/S/1.8) with ESMTP id RAA21098 for ; Mon, 15 Dec 2003 17:18:03 +0000 (GMT) Original-To: tru64-unix-managers@ornl.gov X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 Xref: main.gmane.org gmane.os.tru64.managers:6033 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6033 Many Thanks to those that replied, as ever Dr Blinn of HP came up trumps, basically the problem was that a change has been made in defragcron (possibly in Patchkit 4)such that it deleted /dev/null every time it ran. alaric Dr Blinns' reply in full: >That's bizarre. I run V4.0G but I disabled defragcron long ago. > >It's a shell script; go see if you can spot a point where it does >an "rm -f" or whatever on /dev/null. A privileged user (and you have >to be running as root to run defragcron) has sufficient privilege to >remove /dev/null and if the device name is then used as the output >from some command invocation, it will be recreated as a "normal" file. > >I see in the version of the script in the patch kit output area this >stuff: > > quiet_file="/dev/null" > > /bin/rm "$quiet_file" > >and if you are root and that quiet_file is "/dev/null" and you do that >/bin/rm then /dev/null is GONE. This was NOT in the original version >of the script, someone put it in there as a "maintenance fix". Do >not run defragcron, it's dangerous anyway. > > >Tom Alaric Turner wrote: > Managers, > > I seem to have a somewhat strange problem, on a DS20 running 4.0G > Patchkit4, > > every morning around 04:50 /dev/null was changed from a system file to a > standard normal file, obviously not correct. By a process of elimination > it appears that the daily defragcron job was responsible (since I > commented it out in the crontab the problem has not re-occured). however > we also run a defragment by directly calling defragment once a week & > this seems not to cause a problem. > > In the short term the problem has been resolved but I would like to > re-enable the daily defrag if possible. Has anyone seen a similar problem ? > > Alaric Turner -- Alaric Turner Systems Manager Albourne Partners Limited +44 (0)20 77209201