6.5. Creating 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.
Prerequisites
-
Installed and running
targetcli. For more information, see Installing targetcli.
Procedure
Navigate to the
block/from thebackstores/directory:/> backstores/block/Create a
blockbackstore:/backstores/block> create name=block_backend dev=/dev/sdb Created block storage object block_backend using /dev/sdb.
Verification
Verify the created
blockstorage object:/backstores/block> ls