6.4. Creating a fileio storage object
fileio storage objects can support either the write_back or write_thru operations. The write_back operation enables the local file system cache. This improves performance but increases the risk of data loss.
It is recommended to use write_back=false to disable the write_back operation in favor of the write_thru operation.
Prerequisites
-
Installed and running
targetcli. For more information, see Installing targetcli.
Procedure
Navigate to the
fileio/from thebackstores/directory:/> backstores/fileioCreate a
fileiostorage object:/backstores/fileio> create file1 /tmp/disk1.img 200M write_back=false Created fileio file1 with size 209715200
Verification
Verify the created
fileiostorage object:/backstores/fileio> ls