From owner-freebsd-fs@FreeBSD.ORG Mon Apr 4 18:59:40 2011 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 9C7D11065675 for ; Mon, 4 Apr 2011 18:59:40 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4AC018FC27 for ; Mon, 4 Apr 2011 18:59:39 +0000 (UTC) Received: by iyj12 with SMTP id 12so7758075iyj.13 for ; Mon, 04 Apr 2011 11:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=GccO2Sv/VPa7oP4hHdZPtf/u1vk3tyxJAzbvpjwOmCI=; b=mYanVFJHYtUmeFOyTtjQaBXpJShy17myEX8QcC2RjJC8iQaYIQ2uvhl2XsHDSzvLmO cOijRxRUxUmEMwfWtC6ii+4KJCHPmCb8cG5lep+dhMp56G0ng8dX+8PPlGNWjpPmwzV7 egsJv4sqCqbUuMpjCGovtXV9L6qZMvfE8a42w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-openpgp-key-id :x-openpgp-key-fingerprint:x-openpgp-key-url; b=N5jZG+lyXUMPKw9m/uNNKFqbyRzhK++uHn9B+3VfvhdSu8DBDEqts4lgAAwsGFGEyb ci2nrX8GZ5wWOZpvSJhHYz+oNUqvb0cblCt2prtoJITijhafpTpNIDtsl9/ty9x5EKa0 31HlBfly/uJODl7M4oej0EB85Gc7eW44Uql8U= Received: by 10.42.145.71 with SMTP id e7mr1381148icv.314.1301943579514; Mon, 04 Apr 2011 11:59:39 -0700 (PDT) Received: from DataIX.net (adsl-99-181-155-201.dsl.klmzmi.sbcglobal.net [99.181.155.201]) by mx.google.com with ESMTPS id d9sm2243318ibb.36.2011.04.04.11.59.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Apr 2011 11:59:35 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p34IxV1e021479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Apr 2011 14:59:32 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p34IxUoq021478; Mon, 4 Apr 2011 14:59:30 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Mon, 4 Apr 2011 14:59:30 -0400 From: jhell To: Piotr Paczynski Message-ID: <20110404185930.GA96734@DataIX.net> References: <20110401013603.GA31034@icarus.home.lan> <84DF4838-CE43-430E-8C3A-4CC7881E44BD@gmail.com> <1301911993.17884.4.camel@core.nessbank> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E Cc: freebsd-fs@freebsd.org, Daryl Richards Subject: Re: ZFS failed after hard power off 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: Mon, 04 Apr 2011 18:59:40 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 04, 2011 at 12:48:35PM +0200, Piotr Paczynski wrote: > > gpt, not gpart. gpt - Guid Partition Table - is the table format, gpart > > is the tool. gpart can also create mbr partition tables. >=20 > Let me paste the partition table of my boot disk: >=20 > $ gpart show da0 > =3D> 34 3906207677 da0 GPT (1.8T) > 34 128 1 freebsd-boot (64K) > 162 8388608 2 freebsd-swap (4.0G) > 8388770 3897818941 3 freebsd-zfs (1.8T) >=20 > It looks like an ordinary GPT, which should work ok on Solaris, no? >=20 > Disks in my second pool do not use any partition table at all (raw > disk device is added directly to zpool) and this was imported ok in > Solaris. >=20 Just to put a final NOTE on this: Yes! ( *Solaris, OpenIndiana, IllumOS ) 1. Can... from FreeBSD... A. Import B. Destroy C. Scrub D. Export E. Send/Recieve F. Most anything else ZFS can do... ( *Solaris, OpenIndiana, IllumOS ) Recognizes pools from FreeBSD for... 2. A. Versions 6-28 MBR slice partitions from FreeBSD on ( *Solaris, OpenIndiana, IllumOS ) 3. A. Will relocate adNsN{x} to adNsN if imported on on any of the above resulting in the pool to be resized to entire length of slice. B. Does not see adNsN{x} and thus any other {x} will be lost on import. (3A) GPT partitions (adNpX) or (adaNpX) (daNpX) 4. A. Are interchangeable between both Solaris & FreeBSD upto v28 B. Usually results in using whole_disk enabling use of write cache. Labels, FreeBSD & ( *Solaris, OpenIndiana, IllumOS ) 5. A. Generic labels are not reccognized but the pool itself will be and will result in a loss of the label and a resize to the full length of the partition or slice if imported. B. GPT labels are not recognized but the disk still is. C. GPT labels can be used on FreeBSD while Solaris still uses the disk partition or slice. D. Labels as provided by glabel(8) are not found on other OS's do not expect them to show up anywhere but FreeBSD. Especially the generic labels. If your setting up a pool and you plan on using *Solaris for repair you should plan appropriately and setup your pool on a whole slice(sN) or partition(pN) and forget about using generic labels. That being said, Martin Matuska has created mfsBSD[6] images that have an available v28 module that can be used to repair your current install and can also be used to repair older pools without an upgrade of the on-disk versions. FreeBSD 9-CURRENT should also have snapshots available that will have ZFSv28 too! so relying on another OS is not entirely a must. At this time the URL to where those are located is not available from my location. Google ( site:ftp.freebsd.org snapshots ) for a list. 6. http://mfsbsd.vx.sk Good God, Good ZFS, Good Luck, Great Pawel! --=20 Regards, J. Hellenthal JJH48-ARIN 0x89D8547E --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNmhUSAAoJEJBXh4mJ2FR+xbUH/RX1YFKa0nswes/LP168zNFy rGB3igfCrFoitS/9jD7bbp9zBBv+3AScgnGBd7ulaSCbdFTI1MMeZDyRRc2lSiXA oyKAyZ1LXa7EXqI5PndQPtuxsEBoWNMiyPHgi2FY5dDQ5oqnk7QUwPfHl/q0kCfI f8dlIsgxXVubjUp+9G70nNebTnamINXgWX4opF3+nG/lvdlof1oW6hUj0g1BSX6a hfnE4T/DlPmEFyKaTumqVon+r9H+0NNV1SmGhBkcriFpHSD5zrzQQodzd6qe7G2Q xcR/wLac6Savv6bPwQLO4ThS4OlKlpVIMm62SwrACOd7xFqiA8pc+btBK1uXT88= =YiC1 -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw--