On 6/2/2010 9:03 AM, zfsnoob4 wrote:
Wow thank you very much for the clear instructions.
And Yes, I have another 120GB drive for the OS, separate from A, B and C. I
will repartition the drive and install Solaris. Then maybe at some point I'll
delete the entire drive and just install a single OS.
I have a question about step 6, "Step 6: create a "dummy" drive as a sparse file:
mkfile -n 1500G /foo"
I understand that I need to create a dummy drive and then immediatly remove it
to run the raidz in degraded mode. But by creating the file with mkfile, will
it allocate the 1.5TB right away on the OS drive? I was wondering because my OS
drive is only 120GB, so won't it have a problem with creating a 1.5TB sparse
file?
Thanks
No. The '-n' option tells Solaris that this is a "sparse" file - that
is, it only takes up space as you use it. It reports it's size to 'ls'
and similar utilities as the size you created it, but actually, the
on-disk allocation is only that which has been actually written to the
file. In this case, you're not going to be writing any data to it (well,
just a trivial ZFS header file), so you're all set.
I just tested it again to make sure - it works just fine creating a file
size N on a zfs filesystem size M, where N >> M.
--
Erik Trimble
Java System Support
Mailstop: usca22-123
Phone: x17195
Santa Clara, CA
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss