From owner-freebsd-stable@FreeBSD.ORG Wed Oct 31 20:48:21 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 89CF57FD; Wed, 31 Oct 2012 20:48:21 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id D23388FC14; Wed, 31 Oct 2012 20:48:20 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id e12so1737766lag.13 for ; Wed, 31 Oct 2012 13:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Ktu6RtoKL5Q+g7H5K7CQOJ9ljDL+ED865hmblXtv+6o=; b=qb02R/da5H6TDOhjYsgPDRfobKg5Nvu5hhg6XZaN6K99vOjZxdIqJaBPa68ZjnwQZk ZXbWWQ1NOwXWC9jxvlp0TkHLFykbCQmx5BJOBos8URbopnliU/Pnd2S8MmpsDagKk+Y5 hNkG/X1/uh4qTxFo2iUoExw4QSDg4Y9iBNWYnW0pt3MNAxuEvj+/5zVfgaOWr9+s/RpB 5T/RCc9Ux+WL1Bk4Ix2CQ8Ytc44NWxEcthehBp9706ipBHhywtSY5GOyaWuhc2MB4JO7 JmGCzYojvIC22E3xy26mzeixP7jBnnvP54Si6Co0YlCSX7ksuQ8RGkSuWIUXwuyndiFj ajOQ== MIME-Version: 1.0 Received: by 10.112.37.138 with SMTP id y10mr3753593lbj.121.1351716499843; Wed, 31 Oct 2012 13:48:19 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.112.80.103 with HTTP; Wed, 31 Oct 2012 13:48:19 -0700 (PDT) In-Reply-To: References: <27087376D1C14132A3CC1B4016912F6D@multiplay.co.uk> Date: Wed, 31 Oct 2012 13:48:19 -0700 X-Google-Sender-Auth: MhwlRgIxjzGvohr-bO9q9AaqRbk Message-ID: Subject: Re: ZFS corruption due to lack of space? From: Artem Belevich To: Steven Hartland Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-fs@freebsd.org, freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 20:48:21 -0000 On Wed, Oct 31, 2012 at 10:55 AM, Steven Hartland wrote: > At that point with the test seemingly successful I went > to delete test files which resulted in:- > rm random* > rm: random1: Unknown error: 122 ZFS is a logging filesystem. Even removing a file apparently requires some space to write a new record saying that the file is not referenced any more. One way out of this jam is to try truncating some large file in place. Make sure that file is not part of any snapshot. Something like this may do the trick: #dd if=/dev/null of=existing_large_file Or, perhaps even something as simple as 'echo -n > large_file' may work. Good luck, --Artem