6.6. Creating a pscsi storage object
You can configure as a backstore any storage object that supports direct pass-through of SCSI commands without SCSI emulation and with an underlying SCSI device that appears with lsscsi in the /proc/scsi/scsi, such as a SAS hard drive. SCSI-3 and higher is supported with this subsystem.
pscsi should only be used by advanced users. Advanced SCSI commands such as for Asymmetric Logical Unit Assignment (ALUAs) or Persistent Reservations (for example, those used by VMware ESX, and vSphere) are usually not implemented in the device firmware and can cause malfunctions or crashes. When in doubt, use block backstore for production setups instead.
Prerequisites
-
Installed and running
targetcli. For more information, see Installing targetcli.
Procedure
Navigate to the
pscsi/from thebackstores/directory:/> backstores/pscsi/Create a
pscsibackstore for a physical SCSI device, a TYPE_ROM device using/dev/sr0in this example:/backstores/pscsi> create name=pscsi_backend dev=/dev/sr0 Created pscsi storage object pscsi_backend using /dev/sr0
Verification
Verify the created
pscsistorage object:/backstores/pscsi> ls