From owner-freebsd-fs@FreeBSD.ORG Fri Sep 28 15:43:06 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7551C1065675 for ; Fri, 28 Sep 2012 15:43:06 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id EFF008FC16 for ; Fri, 28 Sep 2012 15:43:05 +0000 (UTC) Received: by bkcjf20 with SMTP id jf20so2793421bkc.13 for ; Fri, 28 Sep 2012 08:43:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=OWn1kwtxyhTf9DK5CcmhV9tXKXPloz9UswuG8w4tAPc=; b=da+Rx4/4pRHbkCpzzDbjwU/3H/0wqo5D5OJr0PTH4XhZ4GIZ4pPviEamSFWPOtuNAe r788S2Jmc1DBEOC/FCr7YCN8NkyW8Wbc0mHJ7rRk/pcWoudhcfh3dSEDwfJ5jaZk+nF3 7i0xEf31YmZSqlT0fzZJIKFIBFVr/0jAF3szr2MBgB0kDkqPBW4Gf08FpU24iitEihrU eBRSy0/Wqc4nMWut/QEKdo3DWKHfNG5gY/5785kxouyeaXLVqA1SIsygRJeBulwADkss fZBPIdy7fqNhSdTufS6y3cRr5+cdkQQQ2PFRm6jc+hF1zcYG2aVSHZnt2aQsnCqCR+5r T3NA== MIME-Version: 1.0 Received: by 10.112.100.8 with SMTP id eu8mr2916413lbb.12.1348846984791; Fri, 28 Sep 2012 08:43:04 -0700 (PDT) Received: by 10.112.2.36 with HTTP; Fri, 28 Sep 2012 08:43:04 -0700 (PDT) Date: Fri, 28 Sep 2012 17:43:04 +0200 Message-ID: From: Olivier Smedts To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQldsYVxMkQCcW0IDDeqUzoR0TVanGGtj1LXyHg8/YxxlQZzAbRqpREqb7Rly2xu2tQXYeWO Subject: 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: Fri, 28 Sep 2012 15:43:06 -0000 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 -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."