Table of Contents
In the following example, 5-Gbyte ZFS volume,
zfs create -V 5gb tank/vol
When you create a volume, a reservation is automatically set to the initial size of the volume. The reservation size continues to equal the size of the volume so that unexpected behavior doesn't occur. For example, if the size of the volume shrinks, data corruption might occur. You must be careful when changing the size of the volume.
If you are using a Solaris system with zones installed, you cannot create or clone a ZFS volume in a non-global zone. Any attempt to create or clone a volume from within a non-global zone will fail. For information about using ZFS volumes in a global zone, see.
In the following example, the 5-Gbyte
is added as a swap device.
swap -a /dev/zvol/dsk/tank/vol#
swap -lswapfile dev swaplo blocks free /dev/dsk/c0t0d0s1 32,33 16 1048688 1048688 /dev/zvol/dsk/tank/vol 254,1 16 10485744 10485744
Using a ZFS volume as a dump device is not supported. Use the dumpadm command to set up a dump device.