Create a block storage object

The block driver allows the use of any block device that appears in the /sys/block/ directory to be used with Linux-IO (LIO). This includes physical devices, such as HDDs, SSDs, CDs, and DVDs, and logical devices, such as software or hardware RAID volumes, or LVM volumes.

Before you begin

  • Installed and running targetcli.

Procedure

  1. Navigate to the block/ from the backstores/ directory:
    /> backstores/block/
  2. Create a block backstore:
    /backstores/block> create name=block_backend dev=/dev/sdb
    Created block storage object block_backend using /dev/sdb.

Results

  • Verify the created block storage object:
    /backstores/block> ls