sbdadm - SCSI Block Disk command line interface
sbdadm create-lu [-s, --size size] filename
sbdadm delete-lu lu_name
sbdadm import-lu lu_name
sbdadm list-lu lu_name
sbdadm modify-lu [-s, --size size] lu_name | filename
The sbdadm command creates and manages SCSI-block-device-based logical units that are registered with the SCSI Target Mode Framework (STMF).
The sbdadm command supports the subcommands listed below. Note that if you enter a question mark as an argument to the command (sbdadm ?), sbdadm responds with a help display.
create-lu [-s, --size size] filename
k
m
g
t
p
e
If you do not specify size, the size defaults to the size of filename.
The size specified can exceed the size of the file or device.
delete-lu lu_name
import-lu lu_name
list-lu
modify-lu [-s, --size size] lu_name | filename
The size specified can exceed the size of the file or device represented by lu_name.
sbdadm use the following operands:
filename
lu_name
Example 1 Creating a Logical Unit
The following series of commands creates a 10-gigabyte logical unit.
# touch /export/lun/0 # sbdadm create-lu -s 10g /export/lun/0 # sbdadm create-lu /dev/rdsk/c1t1d0s0
Example 2 Listing Logical Units
The following command lists all logical units.
# sbdadm list-lu Found 2 LU(s) GUID DATA SIZE SOURCE -------------------------------- ----------- ------ 6000ae4000144f21d92c47b0dd650002 10737352704 /export/lun/0 6000ae4000144f21d92c47b0de300032 134283264 /dev/rdsk/c1t1d0s0
0
non-zero
See attributes(5) for descriptions of the following attributes:
|
stmfadm(1M), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |