这个问题我昨天研究了一天,网上能找到的资料大多都是一样的,都不管用,windows 连接要么授权失败,要么 io 错误,手册也看了也查不出问题。
我昨天搭建的用 linux 的 iscsiadm 命令可以连接上,而且 io 正常,用 windows 连接不上或者 io 错误,另外我还试了 fedora 39 iso 安装程序的添加 iscsi 磁盘的方式,这种方式也是连接不上或者 io 错误。
1
julyclyde 305 天前
看看双方日志
|
2
wniming OP {
"fabric_modules": [], "storage_objects": [ { "aio": false, "alua_tpgs": [ { "alua_access_state": 0, "alua_access_status": 0, "alua_access_type": 3, "alua_support_active_nonoptimized": 1, "alua_support_active_optimized": 1, "alua_support_offline": 1, "alua_support_standby": 1, "alua_support_transitioning": 1, "alua_support_unavailable": 1, "alua_write_metadata": 0, "implicit_trans_secs": 0, "name": "default_tg_pt_gp", "nonop_delay_msecs": 100, "preferred": 0, "tg_pt_gp_id": 0, "trans_delay_msecs": 0 } ], "attributes": { "alua_support": 1, "block_size": 512, "emulate_3pc": 1, "emulate_caw": 1, "emulate_dpo": 1, "emulate_fua_read": 1, "emulate_fua_write": 1, "emulate_model_alias": 1, "emulate_pr": 1, "emulate_rest_reord": 0, "emulate_rsoc": 1, "emulate_tas": 1, "emulate_tpu": 0, "emulate_tpws": 0, "emulate_ua_intlck_ctrl": 0, "emulate_write_cache": 1, "enforce_pr_isids": 1, "force_pr_aptpl": 0, "is_nonrot": 0, "max_unmap_block_desc_count": 1, "max_unmap_lba_count": 8192, "max_write_same_len": 4096, "optimal_sectors": 16384, "pgr_support": 1, "pi_prot_format": 0, "pi_prot_type": 0, "pi_prot_verify": 0, "queue_depth": 128, "unmap_granularity": 1, "unmap_granularity_alignment": 0, "unmap_zeroes_data": 0 }, "dev": "/a/iscsi_disks/disk01.img", "name": "disk01", "plugin": "fileio", "size": 4294967296, "write_back": true, "wwn": "2f52555e-4eb5-4098-968e-792c7af177cc" } ], "targets": [ { "fabric": "iscsi", "parameters": { "cmd_completion_affinity": "-1" }, "tpgs": [ { "attributes": { "authentication": 0, "cache_dynamic_acls": 1, "default_cmdsn_depth": 64, "default_erl": 0, "demo_mode_discovery": 1, "demo_mode_write_protect": 0, "fabric_prot_type": 0, "generate_node_acls": 1, "login_keys_workaround": 1, "login_timeout": 15, "prod_mode_write_protect": 0, "t10_pi": 0, "tpg_enabled_sendtargets": 1 }, "enable": true, "luns": [ { "alias": "24b8c7c2c4", "alua_tg_pt_gp_name": "default_tg_pt_gp", "index": 0, "storage_object": "/backstores/fileio/disk01" } ], "node_acls": [ { "attributes": { "authentication": -1, "dataout_timeout": 3, "dataout_timeout_retries": 5, "default_erl": 0, "nopin_response_timeout": 30, "nopin_timeout": 15, "random_datain_pdu_offsets": 0, "random_datain_seq_offsets": 0, "random_r2t_offsets": 0 }, "mapped_luns": [ { "alias": "7e31ef56a4", "index": 0, "tpg_lun": 0, "write_protect": false } ], "node_wwn": "iqn.2023-11.world.srv:node01.initiator01" } ], "parameters": { "AuthMethod": "CHAP,None", "DataDigest": "CRC32C,None", "DataPDUInOrder": "Yes", "DataSequenceInOrder": "Yes", "DefaultTime2Retain": "20", "DefaultTime2Wait": "2", "ErrorRecoveryLevel": "0", "FirstBurstLength": "65536", "HeaderDigest": "CRC32C,None", "IFMarkInt": "Reject", "IFMarker": "No", "ImmediateData": "Yes", "InitialR2T": "Yes", "MaxBurstLength": "262144", "MaxConnections": "1", "MaxOutstandingR2T": "1", "MaxRecvDataSegmentLength": "8192", "MaxXmitDataSegmentLength": "262144", "OFMarkInt": "Reject", "OFMarker": "No", "TargetAlias": "LIO Target" }, "portals": [ { "ip_address": "0.0.0.0", "iser": false, "offload": false, "port": 3260 } ], "tag": 1 } ], "wwn": "iqn.2023-11.world.srv:dlp.target01" } ] } |