mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-01 05:37:18 +00:00
The scstadmin manuals still describe the 2.0 parser, a database backend
and SysV-only service integration. They omit current ALUA operations
and call -check_config an offline check even though it reads live sysfs.
Commit 3a8d70b166 ("- Remove old scst_db stuff which no longer
works with even procfs.") removed the database implementation. The
current grammar and apply order live in scstadmin.sysfs/scstadmin,
while SCST/SCST.pm consumes the kernel-provided sysfs metadata.
Document the current commands, quoting, comments, DEVICE references
and systemd environment handling. Keep deprecated-format conversion,
but explain that it reconciles live state. Mark conversion, checking,
examples, installation and service operations with their root, sysfs
and exported-storage effects.
142 lines
1.9 KiB
Plaintext
142 lines
1.9 KiB
Plaintext
# SCST configuration syntax example.
|
|
# Replace every path and fabric identifier before use. Applying this file
|
|
# changes live SCST state and can export the named backing storage.
|
|
|
|
setup_id 0x1234
|
|
|
|
HANDLER dev_disk {
|
|
DEVICE 1:0:0:0
|
|
DEVICE 2:0:0:0
|
|
}
|
|
|
|
HANDLER vdisk_fileio {
|
|
DEVICE disk1 {
|
|
filename /disk1
|
|
nv_cache 1
|
|
}
|
|
|
|
DEVICE disk2 {
|
|
filename /disk2
|
|
blocksize 4096
|
|
removable 1
|
|
}
|
|
}
|
|
|
|
HANDLER vdisk_blockio {
|
|
DEVICE blockio1 {
|
|
filename /dev/sda5
|
|
}
|
|
}
|
|
|
|
HANDLER vcdrom {
|
|
DEVICE cdrom1 {
|
|
filename /cdrom1.iso
|
|
}
|
|
}
|
|
|
|
TARGET_DRIVER scst_local {
|
|
TARGET scst_local_tgt {
|
|
session_name scst_local_host
|
|
|
|
LUN 0 disk1
|
|
LUN 1 disk2
|
|
}
|
|
}
|
|
|
|
TARGET_DRIVER iscsi {
|
|
IncomingUser "joe 12charsecret"
|
|
enabled 1
|
|
|
|
TARGET iqn.2006-10.net.vlnb:tgt {
|
|
IncomingUser "joe 12charsecret"
|
|
HeaderDigest CRC32C,None
|
|
enabled 1
|
|
|
|
LUN 0 disk1
|
|
LUN 1 disk2
|
|
LUN 2 blockio1 {
|
|
read_only 1
|
|
}
|
|
}
|
|
}
|
|
|
|
TARGET_DRIVER qla2x00t {
|
|
TARGET 25:00:00:f0:98:87:92:f3 {
|
|
enabled 1
|
|
|
|
GROUP INI1 {
|
|
LUN 0 blockio1
|
|
LUN 1 1:0:0:0 {
|
|
read_only 1
|
|
}
|
|
LUN 5 cdrom1
|
|
|
|
INITIATOR 25:00:00:f0:99:87:94:a3
|
|
INITIATOR 25:00:00:f0:99:87:94:a4
|
|
}
|
|
}
|
|
|
|
TARGET 25:00:00:f0:98:87:92:f4 {
|
|
}
|
|
}
|
|
|
|
TARGET_DRIVER ib_srpt {
|
|
TARGET fe80:0000:0000:0000:0002:c903:0005:f34b {
|
|
enabled 1
|
|
|
|
LUN 0 disk1
|
|
LUN 1 disk2
|
|
}
|
|
|
|
TARGET fe80:0000:0000:0000:0002:c903:0005:f34c {
|
|
enabled 1
|
|
|
|
LUN 0 disk1
|
|
LUN 1 disk2
|
|
}
|
|
}
|
|
|
|
DEVICE_GROUP dgroup1 {
|
|
DEVICE disk1
|
|
|
|
TARGET_GROUP tgroup1 {
|
|
group_id 1
|
|
state active
|
|
|
|
TARGET fe80:0000:0000:0000:0002:c903:0005:f34b {
|
|
rel_tgt_id 1
|
|
}
|
|
}
|
|
|
|
TARGET_GROUP tgroup2 {
|
|
group_id 2
|
|
state offline
|
|
|
|
TARGET fe80:0000:0000:0000:0002:c903:0005:f34c {
|
|
rel_tgt_id 2
|
|
}
|
|
}
|
|
}
|
|
|
|
DEVICE_GROUP dgroup2 {
|
|
DEVICE disk2
|
|
|
|
TARGET_GROUP tgroup1 {
|
|
group_id 1
|
|
state offline
|
|
|
|
TARGET fe80:0000:0000:0000:0002:c903:0005:f34b {
|
|
rel_tgt_id 1
|
|
}
|
|
}
|
|
|
|
TARGET_GROUP tgroup2 {
|
|
group_id 2
|
|
state active
|
|
|
|
TARGET fe80:0000:0000:0000:0002:c903:0005:f34c {
|
|
rel_tgt_id 2
|
|
}
|
|
}
|
|
}
|