91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

linux環境掃描不出iSCSI共享資源怎么辦

發布時間:2020-06-01 15:06:19 來源:億速云 閱讀:544 作者:鴿子 欄目:系統運維

配置環境信息:
Redhat7  target:192.168.23.10
Redhat7  initiator:192.168.23.20
Windows10 initiator:192.168.23.1

問題:在192.168.23.20客戶端掃描服務端,沒有發現資源。

第一步:檢查網絡連通性,網絡正常。

第二步:檢查initiator文件中寫入的客戶端名稱與target目錄中acls的參數一致
[root@client Desktop]# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.3c9133ae8aee:client

o- iscsi ............................................................................................................ [Targets: 1]
| o- iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.3c9133ae8aee ....................................................... [TPGs: 1]
|   o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
|     o- acls .......................................................................................................... [ACLs: 1]
|     | o- iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.3c9133ae8aee:client ................................... [Mapped LUNs: 1]

檢查結果表示一致!

第三步:檢查initiator的服務狀態
[root@client Desktop]# systemctl restart iscsid
[root@client Desktop]# systemctl status iscsid
iscsid.service - Open-iSCSI
Loaded: loaded (/usr/lib/systemd/system/iscsid.service; enabled)
Active: active (running) since Fri 2020-02-07 08:42:17 EST; 10s ago
Docs: man:iscsid(8)
man:iscsiadm(8)
Process: 3950 ExecStop=/sbin/iscsiadm -k 0 2 (code=exited, status=0/SUCCESS)
Process: 3955 ExecStart=/usr/sbin/iscsid (code=exited, status=0/SUCCESS)
Main PID: 3957 (iscsid)
CGroup: /system.slice/iscsid.service
├─3956 /usr/sbin/iscsid
└─3957 /usr/sbin/iscsid

Feb 07 08:42:17 client systemd[1]: Starting Open-iSCSI...
Feb 07 08:42:17 client systemd[1]: Failed to read PID from file /var/run/iscsid.pid: Invali...ment
Feb 07 08:42:17 client iscsid[3956]: iSCSI daemon with pid=3957 started!
Feb 07 08:42:17 client systemd[1]: Started Open-iSCSI.
Hint: Some lines were ellipsized, use -l to show in full.

檢查結果表示,運行正常!

第四步:檢查target的服務狀態
[root@localhost Desktop]# systemctl status targetd
targetd.service - targetd storage array API daemon
Loaded: loaded (/usr/lib/systemd/system/targetd.service; enabled)
Active: failed (Result: exit-code) since Fri 2020-02-07 07:45:27 EST; 11s ago
Process: 3597 ExecStart=/usr/bin/targetd (code=exited, status=255)
Main PID: 3597 (code=exited, status=255)

Feb 07 07:45:27 localhost.localdomain systemd[1]: Starting targetd storage array API daemon...
Feb 07 07:45:27 localhost.localdomain systemd[1]: Started targetd storage array API daemon.
Feb 07 07:45:27 localhost.localdomain targetd[3597]: CRITICAL:root:password not set in /etc/target/targetd.yaml
Feb 07 07:45:27 localhost.localdomain systemd[1]: targetd.service: main process exited, code=exited, status=255/n/a
Feb 07 07:45:27 localhost.localdomain systemd[1]: Unit targetd.service entered failed state.

iSCSI服務運行有報錯,“ CRITICAL:root:password not set in /etc/target/targetd.yaml”。
查看該文件/etc/target/targetd.yaml,網上搜索該文件的相關配置文檔,未果,后續待補充。
自我嘗試配,未果。

此時,依據現有信息無法判斷我的iSCSI target是否配置正常。
但是按照網絡一個文檔提示,該報錯并不影響服務正常使用,initiator依然可以發現target。

第五步:在Windows 客戶都嘗試掃描 iSCSI共享資源,未果,沒有搜索到。

此時,基本可以判斷我的iSCSI target配置有問題,列出target所有目錄進行檢查。
[root@localhost Desktop]# targetcli
targetcli shell version 2.1.fb34
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/> ls
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
| o- block .................................................................................................. [Storage Objects: 1]
| | o- desk0 ........................................................................... [/dev/md0 (40.0GiB) write-thru activated]
| o- fileio ................................................................................................. [Storage Objects: 0]
| o- pscsi .................................................................................................. [Storage Objects: 0]
| o- ramdisk ................................................................................................ [Storage Objects: 0]
o- iscsi ............................................................................................................ [Targets: 1]
| o- iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.3c9133ae8aee ....................................................... [TPGs: 1]
|   o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
|     o- acls .......................................................................................................... [ACLs: 1]
|     | o- iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.3c9133ae8aee:client ................................... [Mapped LUNs: 1]
|     |   o- mapped_lun0 ................................................................................. [lun0 block/desk0 (rw)]
|     o- luns .......................................................................................................... [LUNs: 1]
|     | o- lun0 ......................................................................................... [block/desk0 (/dev/md0)]
|     o- portals .................................................................................................... [Portals: 1]
|       o- 192.168.23.20:3260 ............................................................................................... [OK]
o- loopback ......................................................................................................... [Targets: 0]

逐行檢查,問題發現了,提供訪問共享資源的網卡地址寫錯了,正確的應該是192.168.23.10。

第六步:修改正確的TCP/IP地址
通過help可得刪除命令。
/iscsi/iqn.20.../tpg1/portals> help

刪除錯誤的TCP/IP信息:
/iscsi/iqn.20.../tpg1/portals> delete 192.168.23.20 3260
Deleted network portal 192.168.23.20:3260
添加正確的TCP/IP信息:
/iscsi/iqn.20.../tpg1/portals> create 192.168.23.10
Using default IP port 3260
Created network portal 192.168.23.10:3260.

重啟服務,initiator再次嘗試掃描。
[root@client Desktop]# iscsiadm -m discovery -t sendtargets -p 192.168.23.10
192.168.23.10:3260,1 iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.3c9133ae8aee

總結,targetd.yaml關于root password的保存不影響iSCSI服務的正常運行。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

中方县| 石门县| 察雅县| 洛宁县| 蕲春县| 库尔勒市| 藁城市| 东海县| 黄浦区| 普兰店市| 佳木斯市| 正定县| 江油市| 虹口区| 偏关县| 南丹县| 咸宁市| 故城县| 珠海市| 乌兰察布市| 永清县| 崇阳县| 敦煌市| 昆山市| 化州市| 石林| 闸北区| 资中县| 德江县| 无极县| 东辽县| 建宁县| 秭归县| 丹阳市| 龙江县| 石首市| 丽水市| 梨树县| 汉中市| 堆龙德庆县| 和顺县|