From owner-freebsd-questions@FreeBSD.ORG Mon Oct 31 10:04:10 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 576C1106564A for ; Mon, 31 Oct 2011 10:04:10 +0000 (UTC) (envelope-from antonio@antonioshome.net) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id EFE6C8FC14 for ; Mon, 31 Oct 2011 10:04:09 +0000 (UTC) Received: by wwp14 with SMTP id 14so376949wwp.31 for ; Mon, 31 Oct 2011 03:04:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.60.131 with SMTP id p3mr19317551wbh.4.1320055447980; Mon, 31 Oct 2011 03:04:07 -0700 (PDT) Received: by 10.180.95.68 with HTTP; Mon, 31 Oct 2011 03:04:07 -0700 (PDT) X-Originating-IP: [87.223.146.209] Date: Mon, 31 Oct 2011 11:04:07 +0100 Message-ID: From: Antonio Vieiro To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: FreeBSD 9.0RC1: zpool fails to import an exported pool? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 10:04:10 -0000 Hi all, I'm plugging this external USB drive of 250Gb on 9.0RC1 and doing this: LAB:~# zpool create MYPOOL /dev/da4 LAB:~# zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT MYPOOL 232G 89,5K 232G 0% 1.00x ONLINE - LAB:~# zpool status pool: MYPOOL state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM MYPOOL ONLINE 0 0 0 da4 ONLINE 0 0 0 errors: No known data errors LAB:~# zfs list NAME USED AVAIL REFER MOUNTPOINT MYPOOL 89,5K 228G 31K /MYPOOL So far so good, now I'm trying to export and import this pool, like this: LAB:~# zpool export MYPOOL; echo $? 0 LAB:~# zpool list no pools available But importing it fails: LAB:~# zpool import; echo $? pool: MYPOOL id: 17521547345542608 state: UNAVAIL status: One or more devices contains corrupted data. action: The pool cannot be imported due to damaged devices or data. see: http://www.sun.com/msg/ZFS-8000-5E config: MYPOOL UNAVAIL insufficient replicas 8987296282819450665 UNAVAIL corrupted data 0 If I force import I get this: LAB:~# zpool import -f MYPOOL cannot import 'MYPOOL': invalid vdev configuration So how is it possible I have corrupted data from a just exported volume? Am I doing something wrong here? Thanks in advance, Antonio