Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2014 13:16:58 +0200
From:      Maciej Suszko <maciej@suszko.eu>
To:        freebsd-fs@freebsd.org
Subject:   Re: ccdconfig and Linux mdadm
Message-ID:  <20140706131658.782e8ba5@leo.lan>
In-Reply-To: <alpine.BSF.2.11.1407041014570.27613@wonkity.com>
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> <alpine.BSF.2.11.1407041014570.27613@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/Kyn==2iiQBe76g58praqcAO
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Warren Block <wblock@wonkity.com> wrote:
> On Fri, 4 Jul 2014, Mark Felder wrote:
>=20
> >
> > On Jul 3, 2014, at 15:35, Maciej Suszko <maciej@suszko.eu> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140706131658.782e8ba5>