From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glen Davison Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Deleting advfs quota.* file links Date: Mon, 24 May 2004 17:56:28 +1000 Organization: UNSW Maths Computing Centre Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200405241756.28854.glen@maths.unsw.edu.au> Reply-To: g.davison@unsw.edu.au NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1085385474 10908 80.91.224.253 (24 May 2004 07:57:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 May 2004 07:57:54 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon May 24 09:57:44 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BSALA-0005Cb-00 for ; Mon, 24 May 2004 09:57:44 +0200 Original-Received: (qmail 1569 invoked by uid 5); 24 May 2004 07:57:35 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 1554 invoked by uid 49501); 24 May 2004 07:57:35 -0000 Original-Received: from glen@maths.unsw.edu.au by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-4.9/5.0):. Processed in 0.885701 secs); 24 May 2004 07:57:35 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 24 May 2004 07:57:33 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0HY700CPEKRW33@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 24 May 2004 03:57:33 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0HY700J02KR62E@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 24 May 2004 03:57:07 -0400 (EDT) Original-Received: from maths.unsw.edu.au (haiku.maths.unsw.edu.au [129.94.176.22]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0HY700FDTKR0Z5@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 24 May 2004 03:57:06 -0400 (EDT) Original-Received: from localhost (localhost [[UNIX: localhost]]) by maths.unsw.edu.au (8.11.6/8.11.6) id i4O7uSB02734 for tru64-unix-managers@ornl.gov; Mon, 24 May 2004 17:56:28 +1000 Original-To: tru64-unix-managers@ornl.gov User-Agent: KMail/1.4.3 Xref: main.gmane.org gmane.os.tru64.managers:6985 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6985 ---------- Forwarded Message ---------- Subject: Deleting advfs quota.* file links Date: Wed, 19 May 2004 16:19:02 +1000 From: Glen Davison To: tru64-unix-managers@ornl.gov Q: How can I delete a hard-link to quota.user or quota.group? BKG: I wrote and ran a perl script which made hard-links to files recursi= vely throughout a directory hierarchy. Unfortunately this also included the quota.* files at the top of the fileset. I have now inserted a test to s= top this happening again, but the damage is already done. Once I have these new links to quota.user (let's call it 'uuu') and quota.group ('ggg') I found that rm uuu ggg didn't work (failed noisily) and rm -f uuu ggg failed silently. Looking through the tru64 archives, I see that people have asked several times about deleting the quota.* files because they looked large and unneeded, but were always mollified by the info that the files were spar= se.=20 Unfortunately this doesn't help me. Strangely, I thought I did manage to fix this same problem last week from= an earlier run, but I can't do it today. Glen ------------------------------------------ SUMMARY Tru64 doesn't let you delete the quota files at all. Some sort of hook i= n a=20 lower level of the AdvFS. Doesn't just recognise the name; you can happi= ly=20 link to them, and move the links anywhere within the fileset. unlink is equally ineffective. Thanks to Bob Harris for the most informative answer. Apparently Tru64=20 version 5.1b "... is the first version that allows the removal of extra=20 st_nlink entries for the quota files." I'm running 4.0f I think. In the end, I have pushed them to the side. I can live with them there. = I=20 feel confident that I could get rid of them by doing a rmfset, but it's n= ot=20 worth it. Thanks to Bob, Matthew Wild and John Lanier for your suggestions. sincerely, Glen -- Glen Davison=09=09=09glen@maths.unsw.edu.au Computer System Administrator=09phone: +61 2 9385 7018 Maths, UNSW=09=09=09fax: +61 2 9385 7192 ------------------------------------------------------- --=20 Glen Davison=09=09=09glen@maths.unsw.edu.au Computer System Administrator=09phone: +61 2 9385 7018 Maths, UNSW=09=09=09fax: +61 2 9385 7192