On Sun, Jul 10, 2011 at 10:10 PM, Gary Mills <mi...@cc.umanitoba.ca> wrote:
> The `lofiadm' man page describes how to export a file as a block
> device and then use `mkfs -F pcfs' to create a FAT filesystem on it.
>
> Can't I do the same thing by first creating a zvol and then creating
> a FAT filesystem on it?

seems not.

>  Nothing I've tried seems to work.  Isn't the
> zvol just another block device?

That's the problem: zvol is just another block device.

Some solaris tools (like fdisk, or "mkfs -F pcfs") needs disk geometry
to function properly. zvols doesn't provide that. If you want to use
zvols to work with such tools, the easiest way would be using lofi, or
exporting zvols as iscsi share and import it again.

For example, if you have a 10MB zvol and use lofi, fdisk would show
these geometry

             Total disk size is 34 cylinders
             Cylinder size is 602 (512 byte) blocks

... which will then be used if you run "mkfs -F pcfs -o
nofdisk,size=20480". Without lofi, the same command would fail with

Drive geometry lookup (need tracks/cylinder and/or sectors/track:
Operation not supported

-- 
Fajar
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to