Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Mar 2007 10:46:46 -0800
From:      Russell Jackson <raj@csub.edu>
To:        Barry Pederson <bp@barryp.org>
Cc:        freebsd-fs@freebsd.org, Joao Barros <joao.barros@gmail.com>, freebsd-current@freebsd.org, Pawel Jakub Dawidek <pjd@freebsd.org>
Subject:   Re: ZFS port to FreeBSD: 2nd patchset available.
Message-ID:  <45EDB716.6070303@csub.edu>
In-Reply-To: <45ED9289.4090001@barryp.org>
References:  <20070304123801.GA22350@garage.freebsd.pl>	<20070306005831.22fb6115.nork@FreeBSD.org>	<70e8236f0703060725j3487764enffe1ad524a098c96@mail.gmail.com> <45ED9289.4090001@barryp.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Barry Pederson wrote:
> Joao Barros wrote:
> 
>> After some tries I finally got it to buildworld, but at 3am I never
>> got to test anything other than 'kldload zfs'
>>
>> I was reading the man pages and I was wondering if files are supported
>> devices like in this example:
>>
>> Example 4 Creating a ZFS Storage Pool by Using Files
>>
>> The following command creates an unmirrored pool using files. While
>> not recommended, a pool based on files can be useful for experimental
>> purposes.
>>
>> # zpool create tank /path/to/file/a /path/to/file/b
>>
>> I'd have to feed some noisy disks to my machine if file devs are not
>> supported -.-
> 
> I tried something like that, with a 512mb file:
> 
> 	dd if=/dev/zero of=/tmp/foo bs=1048976 count=512
> 	zpool create tank /tmp/foo
> 
> but it comes back with
> 
> 	cannot use '/dev//tmp/foo': must be a GEOM provider
> 
> mdconfig is one way to go here, creating a memory disk based on that 
> file. and then creating a pool from that
> 
> 	mdconfig -a -t vnode -f /tmp/foo
> 
> (comes back with "md0" perhaps, meaning it's created a /dev/md0 )
> 
> 	zpool create tank md0
> 
> and you should be in business.
> 
>   	Barry

You can also use ggatel to make a GEOM provider out of a file.

-- 
Russell A. Jackson <raj@csub.edu>
Network Analyst
California State University, Bakersfield

[-- Attachment #2 --]
0	*H
010	+0	*H
00ʠ
D+
0
	*H
0Q10
	&,dedu10
	&,dcsub10
	&,dad10Uad-csub0
070220000242Z
080220000242Z010
	&,dedu10
	&,dcsub10
	&,dad10UUsers10U	rjackson310	*H
	raj@csub.edu00
	*H
0&r,4.DK]hVM2z%#3cZeL\#eﺯ4@ÓfeUkE@1SujЇŜ]8rB.zKjt˼<4&la4bj0
0U06	*H
	)0'0
*H
80
*H
80+0U-*mݡSX3*0	+7
User0U#0xO\ԫϷJ^0U00堁⠁߆ldap:///CN=ad-csub,CN=ad2,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=ad,DC=csub,DC=edu?certificateRevocationList?base?objectClass=cRLDistributionPoint-http://ad2.ad.csub.edu/CertEnroll/ad-csub.crl0+00+0ldap:///CN=ad-csub,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=ad,DC=csub,DC=edu?cACertificate?base?objectClass=certificationAuthority0I+0=http://ad2.ad.csub.edu/CertEnroll/ad2.ad.csub.edu_ad-csub.crt0)U%"0 
+7
++0>U705%
+7rjackson3@ad.csub.eduraj@csub.edu0
	*H
IƠ=s	40QKtDa@\)a2C
,Bg~&_ ]o1:/rk5Pz:l| .
Wƚa+n$r%AW	I]!҈z5Љ&{GBcy:x~]lq-M?'(ϟpj0ϣ{W<C>Hy	ٛ	g3A:{jWUm&00ʠ
D+
0
	*H
0Q10
	&,dedu10
	&,dcsub10
	&,dad10Uad-csub0
070220000242Z
080220000242Z010
	&,dedu10
	&,dcsub10
	&,dad10UUsers10U	rjackson310	*H
	raj@csub.edu00
	*H
0&r,4.DK]hVM2z%#3cZeL\#eﺯ4@ÓfeUkE@1SujЇŜ]8rB.zKjt˼<4&la4bj0
0U06	*H
	)0'0
*H
80
*H
80+0U-*mݡSX3*0	+7
User0U#0xO\ԫϷJ^0U00堁⠁߆ldap:///CN=ad-csub,CN=ad2,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=ad,DC=csub,DC=edu?certificateRevocationList?base?objectClass=cRLDistributionPoint-http://ad2.ad.csub.edu/CertEnroll/ad-csub.crl0+00+0ldap:///CN=ad-csub,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=ad,DC=csub,DC=edu?cACertificate?base?objectClass=certificationAuthority0I+0=http://ad2.ad.csub.edu/CertEnroll/ad2.ad.csub.edu_ad-csub.crt0)U%"0 
+7
++0>U705%
+7rjackson3@ad.csub.eduraj@csub.edu0
	*H
IƠ=s	40QKtDa@\)a2C
,Bg~&_ ]o1:/rk5Pz:l| .
Wƚa+n$r%AW	I]!҈z5Љ&{GBcy:x~]lq-M?'(ϟpj0ϣ{W<C>Hy	ٛ	g3A:{jWUm&100_0Q10
	&,dedu10
	&,dcsub10
	&,dad10Uad-csub
D+
0	+0	*H
	1	*H
0	*H
	1
070306184646Z0#	*H
	1:)n:Jd{0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0n	+71a0_0Q10
	&,dedu10
	&,dcsub10
	&,dad10Uad-csub
D+
0p*H
	1a_0Q10
	&,dedu10
	&,dcsub10
	&,dad10Uad-csub
D+
0
	*H
Z<Sv"Zvkbmȱ+{rn@YN̨2Rd)2Hc)r46H]rB~u+/j#L8*-\mK`>%Jw\Pq"
/Amt8P|G¤
help

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