From owner-freebsd-questions@freebsd.org Sun Jul 1 22:24:59 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D072FE0B8D for ; Sun, 1 Jul 2018 22:24:59 +0000 (UTC) (envelope-from paul.schmehl@gmail.com) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C6D11813B2 for ; Sun, 1 Jul 2018 22:24:58 +0000 (UTC) (envelope-from paul.schmehl@gmail.com) Received: by mail-oi0-x22a.google.com with SMTP id y207-v6so13007692oie.13 for ; Sun, 01 Jul 2018 15:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:reply-to:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-disposition; bh=Mbd40zS3YG7T4vCyNxvauMGVrj0+/efayASOe25YQ9o=; b=Dsi+nztTSaNuxqZum49kQZnBJP4EhaVDDMMHYopgArMVIASAzdyR8EBhpFDdj2ubLb Pn3FYE2BjnKslTBLRbdon4GK+gC8PuTE+eS5iw2Bw0MW0VEPUPjO+FDgM6cfMpG8xyKi v85aIePu1SYDaTPNjuYYLH20EJPfmjGkvfL2jbxORrV7Qc1zQNO0WDI376Hp0FkXL8z6 IeIhMUiZ6Xfyew2YqBK99S1FPBlXmVN9abJE47UQ8GXlly2lJzHEiKVnCTQAZbw8RUdt 5d77BI2D2GaOY2j6tIEW3Hoxl+7oB10dPUxAB1cSiQVNrj5A+xRt+jwyUHLR1/uWH1nm rsYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:reply-to:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding :content-disposition; bh=Mbd40zS3YG7T4vCyNxvauMGVrj0+/efayASOe25YQ9o=; b=ndFB8nH02ps6iUtR24ywPOSwyhS9zi19299/Kg/abJN1+GiRogJO7DEMRo+laf+x4/ 8Yf9rOStUHmnup4VhJKIoWxwTD8eu9grMoSsetnDndsqdx5Zc32ubGeFNZCWMW4mgn+T 3g3X20ofbSHTn0i6TSEn22Q2BSogPkgHMo7PT+g/TqqsSm45luTSUsV0VW44HhCQQVck TiRURKgaQe1GM3rcBinGcRd5p5iy0+MwyU0WI3IkfNLhUelYJaxomNENIoIUAe+5BIKW dMNXBnBhXy2MRui5ETaU1zvEZRlxJ0t3PtFrenfke1vISy5+teEGiGKZ+7KiAm67y4aL z/GQ== X-Gm-Message-State: APt69E2UKpcyU90nk+ckD9E9jB/DlnZT2q00Pc+BdzlL3AZC/stihZEG cO+kkX0pkR+R0iL59YTMGwI= X-Google-Smtp-Source: AAOMgpdW8I9x7i7+O+HCCcp9CUuejwMnCG1oQps93IfvnCEK2bRHws58zX4tdFUSqPe5oSLp3XAV8w== X-Received: by 2002:aca:f007:: with SMTP id o7-v6mr12695891oih.193.1530483898168; Sun, 01 Jul 2018 15:24:58 -0700 (PDT) Received: from [192.168.0.10] (cpe-70-121-63-82.tx.res.rr.com. [70.121.63.82]) by smtp.gmail.com with ESMTPSA id k189-v6sm6994813oif.32.2018.07.01.15.24.57 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 01 Jul 2018 15:24:57 -0700 (PDT) Date: Sun, 01 Jul 2018 17:24:56 -0500 From: Paul Schmehl Reply-To: Paul Schmehl To: Polytropon cc: FreeBSD Questions Subject: Re: Problem deleting files Message-ID: In-Reply-To: <20180701223144.d331ae10.freebsd@edvax.de> References: <85B4CFC22AC0CA70B917D42D@Pauls-MacBook-Pro.local> <20180701223144.d331ae10.freebsd@edvax.de> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2018 22:24:59 -0000 --On July 1, 2018 at 10:31:44 PM +0200 Polytropon wrote: > On Sun, 01 Jul 2018 14:13:30 -0500, Paul Schmehl wrote: >> I have a problem with a directory full of files that I can't seem to >> delete. [...] >> If I try to delete that specific filename, it seems to work. (Running rm >> twice returns no such file the second time.) Yet the file count remains >> the same. > > Is this on UFS or ZFS? > > If UFS, unmount the partition and perform a "fsck -f" for > that partition. In worst case, do it twice. > The problem is, I'm working remotely on a production server. Unmounting /var would bring a lot of things to a screeching halt, wouldn't it? The process that Yasuhiro suggested is working. It's just taking an interminably long period of time. I'm down to just over 4 million files now. I'm going to let it run overnight and see where we're at tomorrow. Paul Schmehl Independent Researcher