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
[-- Attachment #1 --]
Warren Block <wblock@wonkity.com> wrote:
> On Fri, 4 Jul 2014, Mark Felder wrote:
>
> >
> > 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...
>
> Agreed!
>
> 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}
=> 1 204799 ada1 MBR (100M)
1 204799 1 linux-raid (100M)
=> 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
/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
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
> updated in October 2013. The example could go there, but I'd really
> rather update the more modern tools.
Your welcome to do so :)
--
regards, Maciej Suszko.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlO5MCwACgkQCikUk0l7iGo4TgCeINmJmBrfs5FaP3FH+nBHMAhM
8t0An0iA/jvKuOGHN5Nxh6mJ88zxo9+z
=AFKe
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140706131658.782e8ba5>
