subscribe iconSubscribe to this information

mkbdsp command

Purpose

Assign storage from a storage pool to be a backing device for a virtual SCSI adapter.

Syntax

Create a backing device file or logical volume:

mkbdsp [-sp StoragePool] Size -bd BackingDevice

Assign an existing file or logical volume as a backing device:

mkbdsp [-sp StoragePool]-bd BackingDevice -vadapter ServerVirtualSCSIAdapter -tn TargetDeviceName

Create a new file or logical volume as a backing device:

mkbdsp [-sp StoragePool] Size [-bd BackingDevice] -vadapter ServerVirtualSCSIAdapter -tn TargetDeviceName

Description

The mkbdsp command assigns a backing device to a virtual SCSI server adapter. If the -sp flag is not specified the default storage pool will be used. The storage pool must be specified when working with file backed devices. The default storage pool will still be used when working with logical volumes. If the storage size is given, the mkvdev command will create a backing device of at least the specified size and assign it as the backing device. When working with file backed devices the -bd flag must be specified. The system will not generate a name. The type of backing device created will be determined by the storage pool type. Size can be given in megabytes (###M/n) or gigabytes (###G/g)or physical partition (###).
Note:
  • Specifying physical partitions only works for logical volume backing devices.
  • The backing device specified cannot be assigned to a shared memory pool (to be used as a paging space device by a shared memory partition).
You must specify the name for the newly created backing device using the -bd flag in combination with the size parameter. Naming the backing device is optional when working with logical volumes. You also have the option of assigning the name for the newly created virtual target device using the -tn flag in combination with the -vadapter flag.

Flags

-bd BackingDevice Specifies the backing device.
-sp StoragePool Specifies the storage pool to be used.
-vadapter Specifies the virtual SCSI server adapter.
-tn Specifies the name of the target device.
Note: The only values accepted are alphanumeric, a dash, an underscore, or a period.

Exit Status

23 Specified storage pool is not a valid storage pool.
26 Specified name is already used. Choose a different name.
34 Specified name is reserved. Choose a different name.

Examples

To create a virtual target device that maps a 3 GB backing device from the default storage pool the virtual SCSI server adapter vhost3, type the following command:
mkbdsp -bd bdname 3g -vadapter vhost3

Send feedback | Rate this page

Last updated: Fri, Oct 30, 2009