Using GTP and glabel for ZFS arrays

Dan Langille dan at langille.org
Sat Jul 24 13:01:28 UTC 2010


On 7/24/2010 7:56 AM, Pawel Tyll wrote:
>> Easiest way to create sparse eg 20 GB assuming test.img doesn't exist
>> already

You trim posts too much... there is no way to compare without opening 
another email.

Adam wrote:

> truncate -s 20g test.img
> ls -sk test.img
> 1 test.img


> No no no. Easiest way to do what you want to do:
> mdconfig -a -t malloc -s 3t -u 0
> mdconfig -a -t malloc -s 3t -u 1

In what way is that easier?  Now I have /dev/md0 and /dev/md1 as opposed 
to two sparse files.

> Just make sure to offline and delete mds ASAP, unless you have 6TB of
> RAM waiting to be filled ;) - note that with RAIDZ2 you have no
> redundancy with two fake disks gone, and if going with RAIDZ1 this
> won't work at all. I can't figure out a safe way (data redundancy all
> the way) of doing things with only 2 free disks and 3.5TB data - third
> disk would make things easier, fourth would make them trivial; note
> that temporary disks 3 and 4 don't have to be 2TB, 1.5TB will do.

The lack of redundancy is noted and accepted.  Thanks.  :)

-- 
Dan Langille - http://langille.org/


More information about the freebsd-stable mailing list