Professional Documents
Culture Documents
D79440GC10 Les05
D79440GC10 Les05
5-2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Introduction to iSCSI
iSCSI Server
(target)
iSCSI Client iSCSI Client
(initiator) (initiator)
Ethernet / IP
network
5-3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
iSCSI Target Files
5-4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
iSCSI Target Configuration File
<target iqn.2012-01.com.example.host01:target1>
direct-store /dev/sdb # LUN 1
direct-store /dev/sdc # LUN 2
</target>
5-5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
tgtadm Utility
5-7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
tgt-admin Script
Server
hba 1 hba 2
ctrl 1 ctrl 2
Storage
defaults {
udev_dir /dev
polling_interval 10
path_selector “round-robin 0”
path_grouping_policy multibus
getuid_callout “/lib/udev/scsi_id
--whitelisted --device=/dev/%n”
prio alua
path_checker readsector0
rr_min_io 100
max_fds 8192
rr_weight priorities
failback immediate
no_path_retry fail
user_friendly_names yes
}
blacklist {
wwid “*” # blacklist all devices by
WWID
devnode “^sd[a-z]” # blacklist all SCSI devices
device { # blacklist by device type
vendor “COMPAQ ”
product “HSV110 (C)COMPAQ”
}
}
blacklist_exceptions {
wwid “360000970000292602744533030303730”
}
multipaths {
multipath {
wwid 3600508b4000156d700012000000b0000
alias yellow
failback manual
no_path_retry 5
}
multipath {
wwid 360000970000292602744533032443941
alias green
}
}
devices {
device {
vendor “SUN”
product “(StorEdge 3510|T4”
getuid_callout “/sbin/scsi_id –-whitelisted
--device=/dev/%n”
features “0”
hardware_handler “0”
path_selector “round-robin 0”
path_grouping_policy multibus
rr_weight uniform
rr_min_io 1000
path_checker directio
prio const
}
}
SUBSYSTEM==“block”, SYMLINK{unique}+=“block/%M:%m”
SUBSYSTEM!=“block”, SYMLINK{unique}+=“char/%M:%m”
KERNEL==“tty[0123456789abcdef]”, GROUP=“tty”,
MODE=“0660”
# mem
KERNEL==“mem|kmem|port|nvram”, GROUP=“kmem”, MODE=“0640”
# block
SYBSYSTEM==“block”, GROUP=“disk”
# network
KERNEL==“tun”, MODE=“0666”
# cpu
KERNEL==“cpu[0-9]*”, MODE=“0444”
# do not delete static device nodes
ACTION==“remove”, NAME==“?*”,
TEST==“/lib/udev/devices/$name”,
OPTIONS+=“ignore_remove”