|
|||
|
2. Setting Up a Storage Array With OpenSolaris COMSTAR |
Creating SCSI Logical UnitsThe logical unit provider for creating disk-type logical units is called sbd. However, before you can export a disk-type logical unit, you have to initialize the storage for the logical unit. The process for creating SCSI logical units includes the following steps:
When the logical unit is created it is assigned a global unique identifier (GUID), for example, 6000ae4000144f972b2e486291410001. The GUID is used in subsequent tasks to refer to the logical unit, for example, mapping a logical unit to select hosts. This section shows you how apply this process by creating SCSI logical units in the following ways: Note - Determine which backing store is best suited for the available capacity on the SCSI target. Using a Regular File Backing StoreThis section covers the following ways to create a logical unit by using a regular file backing store: Thin-provisioning enables you to create a logical unit of a specific size, for example, 100 gigabytes, without allocating any storage space right away. You define the allotted size so that the target mode software can communicate that information to initiators when prompted for the size of the logical unit. However, the actual space for the logical unit's back-end storage is only allocated when the initiators write data to that space. Dynamic logical unit expansion enables you to skip defining the allotted size for the logical unit. You can simply define the space that you need today and later grow the size as the demand for space increases. This method is beneficial when you do not want to allocate the space up-front for a large, thin-provisioned logical unit. Consider the following before creating a file logical unit:
To Create a Regular File-Based Logical UnitThis procedure shows you how to create a regular file-based SCSI logical unit, with a 10–Gbyte backing store.
To Create a Thin-Provisioned File Logical UnitThis procedure shows you how to initialize a zero-byte file, and establish a 1–Tbyte backing store.
To Dynamically Grow a Logical UnitDynamic logical unit expansion enables you to change the size of an existing logical unit dynamically with the modify-lu option (supported by sbd). This example takes a 10–Gbyte logical unit and changes its size to 1500 Gbytes. Note - When the size of a logical unit is modified, the initiators currently accessing the logical unit are notified, through a SCSI check condition, that CAPACITY HAS CHANGED. The initiators and file systems on the initiators must be capable of handling this notification, and capable of adjusting the size accordingly.
Using a Raw Disk Device Backing StoreRaw storage devices can also be used as a backing store, just like regular files. Examples are raw storage devices under the /dev/dsk or /dev/rdsk directory. The following task shows you how to create a logical unit by using a disk partition. To Create a Disk Partition Logical Unit
Using a ZFS Volume Backing StoreZFS, 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. The following procedure initializes a ZFS volume and creates a logical unit as a backing store in three steps. First you create a ZFS storage pool. Then you divide the zpool into ZFS volumes. And finally, you create a logical unit by using a ZFS volume. To create a ZFS pool, or zpool, use the zpool create command. 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. To Create a ZFS Volume Logical Unit
|
||
|