blob: 873614ac6f0709c21d48c9a05cc0139f23eb8f98 [file] [log] [blame] [edit]
# Sample SCST configuration file for scstadmin v2.0.
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 ib_srpt_target_0 {
enabled 1
LUN 0 disk1
LUN 1 disk2
}
TARGET ib_srpt_target_1 {
enabled 1
LUN 0 disk1
LUN 1 disk2
}
}
DEVICE_GROUP dgroup1 {
DEVICE disk1
TARGET_GROUP tgroup1 {
group_id 1
state active
TARGET ib_srpt_target_0 {
rel_tgt_id 1
}
}
TARGET_GROUP tgroup2 {
group_id 2
state offline
TARGET ib_srpt_target_1 {
rel_tgt_id 2
}
}
}
DEVICE_GROUP dgroup2 {
DEVICE disk2
TARGET_GROUP tgroup1 {
group_id 1
state offline
TARGET ib_srpt_target_0 {
rel_tgt_id 1
}
}
TARGET_GROUP tgroup2 {
group_id 2
state active
TARGET ib_srpt_target_1 {
rel_tgt_id 2
}
}
}