h1. How to Create a ZFS Volume SCSI Logical Unit
ZFS, a file system that is part of OpenSolaris, combines the functionality of a file system and a volume manager. ZFS enables you to easily create storage pools and volumes that can provide data services, such as RAID, mirroring, snapshots, clones, and much more. For more information about ZFS, see the [Solaris ZFS Administration Guide|http://docs.sun.com/app/docs/doc/817-2271?l=en&q=system+administration+guide%3A+devices+and+file+systems].
The following procedure initializes a ZFS volume and creates a logical unit as a backing store. In this example, the {{zpool}} uses six disks. The disks are located in the {{/dev/rdsk}} directory. The disks are labeled by ZFS, so they contain a single large slice and the data is dynamically striped across a slice. See the {{zpool}}(1M) man page for more information.
# Create a RAID-Z storage pool.
{code}
# zpool create pool_1 raidz c0t0d0 c0t1d0 c0t2d0 c0t3d0 c0t4d0 spare c0t5d0
{code}
# Create a 100–Gbyte volume named {{zvol1}}.
{code}
# zfs create -V 100G pool_1/vol_1
{code}
# Create a logical unit using the volume.
{code}
# sbdadm create-lu /dev/zvol/rdsk/pool_1/vol_1
{code}
{code}
Created the following LU:
GUID DATA SIZE SOURCE
-------------------------------- ------------------- ----------------
6000ae40980000000000486a6f930002 107374116864 /dev/zvol/rdsk/pool_1/vol_1
{code}
# Verify the creation of the logical unit.
{code}
# sbdadm list-lu
{code}
h2. Where to Go Next
* [How to Make SCSI Logical Units Available]
* [How to Configure an iSCSI Target for Discovery]
ZFS, a file system that is part of OpenSolaris, combines the functionality of a file system and a volume manager. ZFS enables you to easily create storage pools and volumes that can provide data services, such as RAID, mirroring, snapshots, clones, and much more. For more information about ZFS, see the [Solaris ZFS Administration Guide|http://docs.sun.com/app/docs/doc/817-2271?l=en&q=system+administration+guide%3A+devices+and+file+systems].
The following procedure initializes a ZFS volume and creates a logical unit as a backing store. In this example, the {{zpool}} uses six disks. The disks are located in the {{/dev/rdsk}} directory. The disks are labeled by ZFS, so they contain a single large slice and the data is dynamically striped across a slice. See the {{zpool}}(1M) man page for more information.
# Create a RAID-Z storage pool.
{code}
# zpool create pool_1 raidz c0t0d0 c0t1d0 c0t2d0 c0t3d0 c0t4d0 spare c0t5d0
{code}
# Create a 100–Gbyte volume named {{zvol1}}.
{code}
# zfs create -V 100G pool_1/vol_1
{code}
# Create a logical unit using the volume.
{code}
# sbdadm create-lu /dev/zvol/rdsk/pool_1/vol_1
{code}
{code}
Created the following LU:
GUID DATA SIZE SOURCE
-------------------------------- ------------------- ----------------
6000ae40980000000000486a6f930002 107374116864 /dev/zvol/rdsk/pool_1/vol_1
{code}
# Verify the creation of the logical unit.
{code}
# sbdadm list-lu
{code}
h2. Where to Go Next
* [How to Make SCSI Logical Units Available]
* [How to Configure an iSCSI Target for Discovery]