iscsi
Различия
Показаны различия между двумя версиями страницы.
Следующая версия | Предыдущая версия | ||
iscsi [16.04.2024 17:24] – создано augin | iscsi [08.07.2024 11:51] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 37: | Строка 37: | ||
esxcli storage core claimrule run | esxcli storage core claimrule run | ||
</ | </ | ||
+ | |||
+ | ====== Настройка iSCSI CentOS7 ====== | ||
+ | |||
+ | <pre> | ||
+ | yum -y install epel-release | ||
+ | yum -y install scsi-target-utils | ||
+ | </ | ||
+ | <pre> | ||
+ | systemctl enable tgtd | ||
+ | </ | ||
+ | <pre> | ||
+ | # cat / | ||
+ | <target iqn.2016-10.ru.optim-m.st1: | ||
+ | direct-store / | ||
+ | initiator-address 10.1.0.51 | ||
+ | initiator-address 10.1.0.52 | ||
+ | initiator-address 10.1.0.53 | ||
+ | initiator-address 10.1.0.54 | ||
+ | initiator-address 10.1.0.55 | ||
+ | </ | ||
+ | |||
+ | |||
+ | MaxRecvDataSegmentLength 262144 | ||
+ | MaxXmitDataSegmentLength 262144 | ||
+ | InitialR2T No | ||
+ | MaxOutstandingR2T 8 | ||
+ | |||
+ | </ | ||
+ | <pre> | ||
+ | </ | ||
+ | <pre> | ||
+ | </ | ||
+ | |||
+ | yum install -y cryptsetup | ||
+ | </ | ||
+ | <pre> | ||
+ | modprobe dm_crypt | ||
+ | cryptsetup luksFormat /dev/sdX | ||
+ | echo " | ||
+ | </ | ||
+ | <pre> | ||
+ | </ | ||
+ | ====== Настройка iSCSI CentOS6 ====== | ||
+ | <pre> | ||
+ | # yum -y install scsi-target-utils | ||
+ | </ | ||
+ | |||
+ | <pre> | ||
+ | # nano / | ||
+ | default-driver iscsi | ||
+ | |||
+ | <target iqn.2015-12.ru.company.st1: | ||
+ | controller_tid 11 | ||
+ | backing-store / | ||
+ | initiator-address 10.1.0.51 | ||
+ | initiator-address 10.1.0.52 | ||
+ | initiator-address 10.1.0.53 | ||
+ | initiator-address 10.1.0.54 | ||
+ | initiator-address 10.1.0.55 | ||
+ | lun 2 | ||
+ | </ | ||
+ | |||
+ | <target iqn.2015-12.ru.company.st1: | ||
+ | direct-store /dev/sdb #LUN1 | ||
+ | initiator-address 10.1.0.51 | ||
+ | initiator-address 10.1.0.52 | ||
+ | initiator-address 10.1.0.53 | ||
+ | initiator-address 10.1.0.54 | ||
+ | initiator-address 10.1.0.55 | ||
+ | </ | ||
+ | |||
+ | |||
+ | MaxRecvDataSegmentLength 262144 | ||
+ | MaxXmitDataSegmentLength 262144 | ||
+ | InitialR2T No | ||
+ | MaxOutstandingR2T 8 | ||
+ | |||
+ | </ | ||
+ | <pre> | ||
+ | service tgtd restart | ||
+ | chkconfig tgtd on | ||
+ | </ | ||
+ | |||
+ | * iptables | ||
+ | <pre> | ||
+ | # nano / | ||
+ | -A INPUT -m state --state NEW -m tcp -p tcp --dport 3260 -j ACCEPT | ||
+ | </ | ||
+ | * Создание контейнера 10Gb | ||
+ | <pre> | ||
+ | dd if=/ | ||
+ | </ | ||
+ | |||
iscsi.1713288291.txt.gz · Последнее изменение: 08.07.2024 11:48 (внешнее изменение)