From owner-freebsd-fs@FreeBSD.ORG Sun Sep 30 11:06:52 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73387106564A for ; Sun, 30 Sep 2012 11:06:52 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id ED0B18FC0A for ; Sun, 30 Sep 2012 11:06:51 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TIHMC-0008DV-IN for freebsd-fs@freebsd.org; Sun, 30 Sep 2012 13:06:44 +0200 Received: from dhcp-077-251-055-099.chello.nl ([77.251.55.99] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TIHMB-0006Tj-Ol for freebsd-fs@freebsd.org; Sun, 30 Sep 2012 13:06:43 +0200 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-fs@freebsd.org References: Date: Sun, 30 Sep 2012 13:06:43 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.02 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.0 X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_50 autolearn=disabled version=3.2.5 X-Scan-Signature: 98cd051f671ee36aeaf0d6c34a549736 Subject: Re: Can't remove zil / separate log device from root pool X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2012 11:06:52 -0000 On Fri, 28 Sep 2012 17:43:04 +0200, Olivier Smedts wrote: > Hello, > > Some time ago I added a separate log device to my root pool (with the > "bootfs" unset hack) but now I can't remove it from my pool : > > # uname -a > FreeBSD zozo.afpicl.lan 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r241027: > Fri Sep 28 14:43:13 CEST 2012 > root@zozo.afpicl.lan:/usr/obj/usr/src/sys/CORE amd64 > root@zozo:/root# zpool status > pool: tank > state: ONLINE > status: The pool is formatted using a legacy on-disk format. The pool > can > still be used, but some features are unavailable. > action: Upgrade the pool using 'zpool upgrade'. Once this is done, the > pool will no longer be accessible on software that does not > support feature > flags. > scan: resilvered 7,27M in 0h0m with 0 errors on Mon Sep 17 12:43:16 > 2012 > config: > > NAME STATE READ WRITE CKSUM > tank ONLINE 0 0 0 > mirror-0 ONLINE 0 0 0 > gpt/disk1 ONLINE 0 0 0 > gpt/disk0 ONLINE 0 0 0 > logs > gpt/zil ONLINE 0 0 0 > > errors: No known data errors > root@zozo:/root# time zpool remove tank gpt/zil && echo "ok !" > 0.000u 0.008s 0:02.61 0.0% 0+0k 0+1io 0pf+0w > ok ! > root@zozo:/root# zpool status > pool: tank > state: ONLINE > status: The pool is formatted using a legacy on-disk format. The pool > can > still be used, but some features are unavailable. > action: Upgrade the pool using 'zpool upgrade'. Once this is done, the > pool will no longer be accessible on software that does not > support feature > flags. > scan: resilvered 7,27M in 0h0m with 0 errors on Mon Sep 17 12:43:16 > 2012 > config: > > NAME STATE READ WRITE CKSUM > tank ONLINE 0 0 0 > mirror-0 ONLINE 0 0 0 > gpt/disk1 ONLINE 0 0 0 > gpt/disk0 ONLINE 0 0 0 > logs > gpt/zil ONLINE 0 0 0 > > errors: No known data errors > > I tried unsetting bootfs before removing the log device. Not better. > I tried importing my pool with a 9.1-RC1 liveCD, removing the log > device. The same thing happens. > I tried by physically detaching the log device from my computer. The > system can't mount root. With the 9.1-RC1 liveCD, I can import the > pool with "-m" but then I still can't remove the log device from the > pool. > > Any idea on what I could do ? > > Thanks > What version is your zpool/zfs? Mind the message about upgrading in your output above. Not all version of ZFS support removing a log or cache disk. Run 'zpool upgrade' and 'zfs upgrade'. They will only print the current version. They need more options for real upgrading. Ronald.