root@client:~# aptitude -y install open-iscsi
root@client:~# vi /etc/iscsi/iscsid.conf
# line 53: uncomment
node.session.auth.authmethod = CHAP
# line 57,58: uncomment and set username and password which set on iSCSI Target
node.session.auth.username = username
node.session.auth.password = password
root@client:~# /etc/init.d/open-iscsi restart
# discover target
root@client:~# iscsiadm -m discovery -t sendtargets -p 10.0.0.50
10.0.0.50:3260,1 iqn.2013-05.world.server:target00
# confirm status after discovery
root@client:~# iscsiadm -m node -o show
# BEGIN RECORD 2.0-873
node.name = iqn.2013-05.world.server:target00
node.tpgt = 1
node.startup = manual
node.leading_login = No
.....
.....
# login to target
root@client:~# iscsiadm -m node --login
Logging in to [iface: default, target: iqn.2013-05.world.server:target00, portal: 10.0.0.50,3260] (multiple)
Login to [iface: default, target: iqn.2013-05.world.server:target00, portal: 10.0.0.50,3260] successful.
# confirm session
root@client:~# iscsiadm -m session -o show
tcp: [1] 10.0.0.50:3260,1 iqn.2013-05.world.server:target00
# confirm partitions
root@client:~# cat /proc/partitions
major minor #blocks name
8
0
31457280
sda
8
1
512000
sda1
8
2
30944256
sda2
253
0
20971520
dm-0
253
1
6160384
dm-1
253
2
3809280
dm-2
8
16
104857600
sdb
# added new device provided from target
open-iscsi
Перейти
- Операционные Системы
- ↳ FreeBSD
- ↳ ZFS
- ↳ PF
- ↳ Программирование
- ↳ Linux
- ↳ Ubuntu
- ↳ Debian
- ↳ Oracle Linux
- ↳ RedHat
- ↳ Cisco
- ↳ Proxmox
- ↳ Windows
- ↳ Mac OS
- ↳ Разные
- Программы
- ↳ LXC
- ↳ Firefox
- ↳ Exim
- ↳ Apache
- ↳ Postfix
- ↳ CStrike
- ↳ Shell
- ↳ Asterisk
- ↳ Perl
- ↳ Git
- ↳ 1c
- ↳ Thunderbird
- ↳ KVM
- ↳ CEPH
- ↳ Games
- ↳ OpenVPN
- ↳ SSL
- ↳ GO
- ↳ Samsung
- ↳ Bitrix24
- ↳ Visual Studio Code
- ↳ Java
- ↳ Podman
- ↳ SIP
- Файлы
- ↳ Файлы
- СУБД
- ↳ Oracle
- ↳ MySQL
- ↳ MS SQL Server
- ↳ PostgreSQL
- Mobile OS
- ↳ Android
- ↳ iOS
- Общее
- ↳ Принтеры