From owner-freebsd-fs@FreeBSD.ORG Sun Jul 6 11:17:12 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 BB0A4A97; Sun, 6 Jul 2014 11:17:12 +0000 (UTC) Received: from archeo.suszko.eu (archeo.unixguru.pl [91.121.179.122]) (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 4FF112873; Sun, 6 Jul 2014 11:17:11 +0000 (UTC) Received: from archeo (localhost [127.0.0.1]) by archeo.suszko.eu (Postfix) with ESMTP id 454D22063805; Sun, 6 Jul 2014 13:17:03 +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 jz3zsLaLQNfU; Sun, 6 Jul 2014 13:17:03 +0200 (CEST) Received: from leo.lan (89-66-16-9.dynamic.chello.pl [89.66.16.9]) by archeo.suszko.eu (Postfix) with ESMTPSA id 8A688206380E; Sun, 6 Jul 2014 13:17:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=suszko.eu; s=dkim; t=1404645422; bh=bq6LOvD6x9/bjWYhMr2fB4FJkk38azJybT2DgoTpHKQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Zq3DVKu0zafh8bePlgmhnCcS8W/7UD58KN0z6E9MNVnU9/9JI8g9Y36nTTLbQpNH1 MaWMA0zYycqK28vZrnJOBmuP+jYywn7qEEUZOcvJRkT8p3eddzKCfnu/7k8hKVJ5Vg XeeJO6LuorTXOZ6USqAcy5fOORIsQQIXwlWdj4nw= Date: Sun, 6 Jul 2014 13:16:58 +0200 From: Maciej Suszko To: freebsd-fs@freebsd.org Subject: Re: ccdconfig and Linux mdadm Message-ID: <20140706131658.782e8ba5@leo.lan> In-Reply-To: References: <20140703114254.6472055a@helium> <53B5395B.6040301@freebsd.org> <20140703152801.695a39e6@helium> <53B57935.3090209@freebsd.org> <20140703223548.49b5c907@leo.lan> <04F83DC7-CB5F-4308-A9E5-99F6EE35C7B7@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_/Kyn==2iiQBe76g58praqcAO"; protocol="application/pgp-signature" 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: Sun, 06 Jul 2014 11:17:12 -0000 --Sig_/Kyn==2iiQBe76g58praqcAO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Warren Block wrote: > On Fri, 4 Jul 2014, Mark Felder wrote: >=20 > > > > On Jul 3, 2014, at 15:35, Maciej Suszko wrote: > >> > >> 180mb.* files were created under Linux. Again I can say FreeBSD > >> rocks! ... as usual :D > >> > >> > > > > Wow, this is excellent. I hope this doesn't get lost to the mailing > > list archives... >=20 > Agreed! >=20 > I suspect this can also be done with gconcant and gstripe. If so, > I'm willing to add it as an example to the gconcat man page. Indeed, it can :) Here are details what I just have checked: root@fbsd:~ # gpart show ada{1,3} =3D> 1 204799 ada1 MBR (100M) 1 204799 1 linux-raid (100M) =3D> 1 204799 ada3 MBR (100M) 1 204799 1 linux-raid (100M) root@fbsd:~ # file -s /dev/ada{1,3}s1 /dev/ada1s1: data /dev/ada3s1: data root@fbsd:~ # gnop create -o 520192 /dev/ada{1,3}s1 root@fbsd:~ # gstripe create -s 512K stripe0 /dev/ada1s1.nop /dev/ada3s1.nop root@fbsd:~ # file -s /dev/stripe/stripe0=20 /dev/stripe/stripe0: ReiserFS V3.6 root@fbsd:~ # mount -t reiserfs -o ro /dev/stripe/stripe0 nobackup root@fbsd:~ # cd nobackup/ && ls -1 .reiserfs_priv 150mb.MD5 150mb.file root@fbsd:~ # df -ht reiserfs Filesystem Size Used Avail Capacity Mounted on /dev/stripe/stripe0 199M 182M 17M 92% /root/nobackup root@fbsd:~/nobackup # gmd5sum -c 150mb.MD5=20 150mb.file: OK The only "magic" here is to create accurate nop device (this can be found reading first few KB from device - in case of superblock v1.2). I'm sure it can be automated. The next step is to create stripe with the same stripe size as created in Linux. I suggest someone to do more testing, for example creating md device in Linux with ext3 filesystem, mounting that in FreeBSD, doing some writes, checksums and going back to Linux - check all created files against those sums. > ccd and ccdconfig are really old, although the ccdconfig man page was=20 > updated in October 2013. The example could go there, but I'd really=20 > rather update the more modern tools. Your welcome to do so :) --=20 regards, Maciej Suszko. --Sig_/Kyn==2iiQBe76g58praqcAO Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlO5MCwACgkQCikUk0l7iGo4TgCeINmJmBrfs5FaP3FH+nBHMAhM 8t0An0iA/jvKuOGHN5Nxh6mJ88zxo9+z =AFKe -----END PGP SIGNATURE----- --Sig_/Kyn==2iiQBe76g58praqcAO--