From owner-freebsd-questions@FreeBSD.ORG Tue Aug 12 13:43:23 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 655356DA for ; Tue, 12 Aug 2014 13:43:23 +0000 (UTC) Received: from mail-qg0-f42.google.com (mail-qg0-f42.google.com [209.85.192.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 22BF6217D for ; Tue, 12 Aug 2014 13:43:22 +0000 (UTC) Received: by mail-qg0-f42.google.com with SMTP id j5so9546636qga.15 for ; Tue, 12 Aug 2014 06:43:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=/x4UBt8X2cuEYq859t3NGZvzK0no3zILbLECaKyjgz4=; b=CK2mg99PuZ23tMGcImMg3yIfPBEMYsfj74cKYdDetOk1shbEV6sKxMpx9T0VVTTQFw sSIAyncbK2izLNPc4g9U9mAW75R3gmCAklO4pKHxKv1/pEHsIehq/bQBHH3pcb8gflU5 wQW+hqvBE/EZcXmJCK5nJWqAjj1zoAmf4n44FesYXc0oa1sD1p0+oosYg6AKY0gGpF81 hE5/wAa6clbdfa9bKODsAbtq1iRDGWjGck3UT0vJrV/f40KfJlACpIpVLPmunNw9tiRt dkwBPomv1EyRz3UCPA+stur3s8kUQPgYlsy2fxWgCkcJw34c6ztZoyMPu65GM5Z14R9A NnJg== X-Gm-Message-State: ALoCoQlGIKIUqFLlEEAnr1OgRtLhCyPvasClrjdmeTZRR7tIxe98Jo30d/jNag35B9SlYjyVOx0e X-Received: by 10.224.129.6 with SMTP id m6mr6799796qas.84.1407850994522; Tue, 12 Aug 2014 06:43:14 -0700 (PDT) Received: from [192.168.2.65] ([96.236.21.80]) by mx.google.com with ESMTPSA id j65sm17631149qgf.22.2014.08.12.06.43.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Aug 2014 06:43:13 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: zpool from 32bit os to 64bit os From: Paul Kraus In-Reply-To: <53E9C0D0.1080206@chroot.pl> Date: Tue, 12 Aug 2014 09:43:12 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <53E92013.2020206@chroot.pl> <53E9C0D0.1080206@chroot.pl> To: Lukasz , freebsd-questions@FreeBSD.org X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 13:43:23 -0000 On Aug 12, 2014, at 3:22, Lukasz wrote: > Thank you for answers. I'll try with export/import... I hope my data > will be safe during this operation. :) If you want your data to be really, really safe, then: 1. Make sure to export from the original server. While you *can* force = the import on the new server, I really, really hate using the force = option as the check you are overriding is there for a reason. Sometimes = you don=92t have a choice, but this is not a Disaster Recovery situation = (and you do not want it to become one). 2. When you run the initial `zpool import` on the new system it will = list the zpools it finds *and* their state. If the zpool is not complete = or is any way not clean, then DO NOT IMPORT it and put the drives back = in the old system and figure out what is wrong there. 3. When you run the `zpool import ` also set the = readonly property using the -o option. This way if there is some kind of = incompatibility (and ZFS does check for this and should want you, but it = never really hurts to be paranoid) the new system will not write = anything to the zpool. 4. If the readonly import goes well and all the data is there and looks = good, then export the zpool and import it again without the readonly = property and you should be all set. The above may be overkill (depending on what your data is worth :-), but = I have seen bugs in ZFS (although not very many in the past few years, = I=92ve been using ZFS since about 2007) and the additional time can save = you lots of time in recovery later on. -- Paul Kraus paul@kraus-haus.org