iscsi开机挂载和认证配置
iscsi 开机自启
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
node.startup = automatic
node.conn[0].startup = manual
[root@localhost ~]
192.168.0.10:3260,1 iqn.2021-8.com.target:mystore
[root@localhost ~]
● iscsid.service - Open-iSCSI
Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled; vendor preset: disabled)
Active: active (running) since 三 2022-02-23 22:24:05 CST; 10s ago
Docs: man:iscsid(8)
man:iscsiuio(8)
man:iscsiadm(8)
Main PID: 1518 (iscsid)
Status: "Ready to process requests"
CGroup: /system.slice/iscsid.service
└─1518 /sbin/iscsid -f
[root@localhost ~]
Rescanning session [sid: 1, target: iqn.2021-8.com.target:mystore, portal: 192.168.0.10,3260]
[服务未授权][root@localhost ~]
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: NECVMWar Model: VMware IDE CDR10 Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: IET Model: Controller Rev: 0001
Type: RAID ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 01
Vendor: sdb Model: VIRTUAL-DISK Rev: 0001
Type: Direct-Access ANSI SCSI revision: 05
[root@localhost ~]
/dev/sda: UUID="370b5610-c712-43c0-a210-0abc53ba2257" TYPE="ext4"
[root@localhost ~]
/dev/sdc: UUID="370b5610-c712-43c0-a210-0abc53ba2257" TYPE="ext4"
iscsi认证
[root@localhost ~]
192.168.0.10:3260,1 iqn.2021-8.com.target:mystore
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
Logging in to [iface: default, target: iqn.2021-8.com.target:mystore, portal: 192.168.0.10,3260] (multiple)
Login to [iface: default, target: iqn.2021-8.com.target:mystore, portal: 192.168.0.10,3260] successful.
[root@localhost ~]
..........................................................
node.session.auth.authmethod = CHAP
node.session.auth.username = iscsi
node.session.auth.password = 123456
node.startup = automatic
.............................................................
[root@localhost ~]
192.168.0.10:3260,1 iqn.2021-8.com.target:mystore
[root@localhost ~]
Logging in to [iface: default, target: iqn.2021-8.com.target:mystore, portal: 192.168.0.10,3260] (multiple)
Login to [iface: default, target: iqn.2021-8.com.target:mystore, portal: 192.168.0.10,3260] successful.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)