From owner-freebsd-fs@FreeBSD.ORG Thu Jul 3 13:28:08 2014 Return-Path: Delivered-To: freebsd-fs@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 5498D7B9; Thu, 3 Jul 2014 13:28:08 +0000 (UTC) Received: from archeo.suszko.eu (archeo.unixguru.pl [IPv6:2001:41d0:1:f47a::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 126BA279D; Thu, 3 Jul 2014 13:28:07 +0000 (UTC) Received: from archeo (localhost [127.0.0.1]) by archeo.suszko.eu (Postfix) with ESMTP id 418942063809; Thu, 3 Jul 2014 15:28:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at archeo.local Received: from archeo.suszko.eu ([127.0.0.1]) by archeo (archeo.local [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BR52lJxT_I3g; Thu, 3 Jul 2014 15:28:04 +0200 (CEST) Received: from helium (gate.grtech.pl [195.8.99.234]) by archeo.suszko.eu (Postfix) with ESMTPSA id 9E7F62063802; Thu, 3 Jul 2014 15:28:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=suszko.eu; s=dkim; t=1404394083; bh=xgYqQpAPYKSi8YDgY9nUzOD+K93OVM3/t6YQskXNYd4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=sY4bx57A0eblnC/FPY2Y20na2ULHe5ctokywe7ak66QRNzjNSzCbd7VMCmEKSEoQ+ 8Q4kiCLa1G0ZIh18QWLqIpSrZLMwzl30aomQNF9xrDrhuCf/G6evE6QJof0R30ld6F 7kNHnmBvhN0eSUaNsz0Q4LzMeocg958zbFgZOvPc= Date: Thu, 3 Jul 2014 15:28:01 +0200 From: Maciej Suszko To: Stefan Esser Subject: Re: ccdconfig and Linux mdadm Message-ID: <20140703152801.695a39e6@helium> In-Reply-To: <53B5395B.6040301@freebsd.org> References: <20140703114254.6472055a@helium> <53B5395B.6040301@freebsd.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/lqX7EpxMeMLt.RhDezI2/jC"; protocol="application/pgp-signature" Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 13:28:08 -0000 --Sig_/lqX7EpxMeMLt.RhDezI2/jC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 03 Jul 2014 13:07:07 +0200 Stefan Esser wrote: > Well, you should first check whether the Ext3 file system has been > created with parameters that are compatible with the ext2 driver in > FreeBSD (which has grown some Ext3 extensions, but many are missing). >=20 > But AFAIK, the ext2/3 tools are direct and full ports of the Linux > versions, and they should just work on file systems that the FreeBSD > kernel does not support. ext3 partition created directly on disk is recognized under FreeBSD - simple checking `file -s /dev/ada1s1` and `file -s /dev/sdb1` give similar results. When using ccd - device is seen as data, as there was no filesystem. > OTOH, I'm not sure, whether the parameters to ccdconfig are correct. > A chunk size of 512KB does not match the parameter 512 in ccdconfig, > AFAICT (512 sectors =3D=3D 256KB). But this should not affect reading > the super-block, which ought to be in the first chunk, anyway. Tried setting ileave to 1024, using CCDF_NO_OFFSET - differet combinations but with no luck. > You may want to dump the raw data from the md/ccd device and compare > results under Linux and under FreeBSD. This may give some insight, > why fsck.ext3 does not find a valid super-block ... I dd'ed first 1MB directly from md0 and ccd0 - MD5 checksums are different. > Just my 2ct - I'm not using ccdconfig myself ... Thanks for suggestions. --=20 regards, Maciej Suszko. --Sig_/lqX7EpxMeMLt.RhDezI2/jC Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlO1WmEACgkQCikUk0l7iGosbACgirl0J9WdzZf4dZNlhq+QatNJ VNEAn2byQBjx0ZA5MLsLRcqkMnI6YDE3 =Pc5v -----END PGP SIGNATURE----- --Sig_/lqX7EpxMeMLt.RhDezI2/jC--