I have no idea what those tools do. You have to either report the
problem to virsh maintianers or maybe give me a description of what they
are trying to do and what the problem is now.


On 03/30/2014 08:50 PM, 陈江宏 wrote:
> think you very much,but virsh pool still can't startup,below is the
> major step.
> 1.virsh pool-define-as  --name whxg-mail  --type iscsi --source-host
> 172.18.133.210 --source-dev
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail  --target /dev/disk/by-path
> 2.virsh pool-dumpxml whxg-mail
> <pool type='iscsi'>
>   <name>whxg-mail</name>
>   <uuid>0cbe0cf1-6f5a-63de-0747-1a3f929bb5d8</uuid>
>   <capacity unit='bytes'>0</capacity>
>   <allocation unit='bytes'>0</allocation>
>   <available unit='bytes'>0</available>
>   <source>
>     <host name='172.18.133.210'/>
>     <device path='iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail'/>
>   </source>
>   <target>
>     <path>/dev/disk/by-path</path>
>     <permissions>
>       <mode>0755</mode>
>       <owner>-1</owner>
>       <group>-1</group>
>     </permissions>
>   </target>
> </pool>
> 3.virsh pool-start   whxg-mail
> error: Failed to start pool whxg-mail
> error: internal error cannot find session
> 
> 4.tail -100 /var/log/message
> Mar 31 09:38:12 whxgftz kernel: scsi186 : iSCSI Initiator over TCP/IP
> Mar 31 09:38:12 whxgftz kernel: scsi 186:0:0:0: Direct-Access    
> SYNOLOGY iSCSI Storage    3.1  PQ: 0 ANSI: 5
> Mar 31 09:38:12 whxgftz kernel: sd 186:0:0:0: Attached scsi generic sg2
> type 0
> Mar 31 09:38:12 whxgftz kernel: sd 186:0:0:0: [sdb] 1048576000 512-byte
> logical blocks: (536 GB/500 GiB)
> Mar 31 09:38:12 whxgftz kernel: sd 186:0:0:0: [sdb] Write Protect is off
> Mar 31 09:38:12 whxgftz kernel: sd 186:0:0:0: [sdb] Write cache:
> disabled, read cache: enabled, doesn't support DPO or FUA
> Mar 31 09:38:12 whxgftz udevd-work[7769]: setfilecon /dev/bsg/186:0:0:0
> failed: No such file or directory
> Mar 31 09:38:12 whxgftz kernel: Dev sdb: unable to read RDB block 0
> Mar 31 09:38:12 whxgftz kernel: sdb: unable to read partition table
> Mar 31 09:38:12 whxgftz kernel: sd 186:0:0:0: [sdb] Attached SCSI disk
> Mar 31 09:38:12 whxgftz udevd-work[7251]: error opening
> ATTR{/sys/devices/platform/host186/session181/target186:0:0/186:0:0:0/block/sdb/queue/iosched/slice_idle}
> for writing: No such file or directory
> Mar 31 09:38:12 whxgftz udevd-work[7251]: error opening
> ATTR{/sys/devices/platform/host186/session181/target186:0:0/186:0:0:0/block/sdb/queue/iosched/quantum}
> for writing: No such file or directory
> Mar 31 09:38:12 whxgftz iscsid: Connection181:0 to [target:
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail, portal:
> 172.18.133.210,3260] through [iface: default] is operational now
> Mar 31 09:38:12 whxgftz kernel: connection181:0: detected conn error (1020)
> Mar 31 09:38:13 whxgftz iscsid: Connection181:0 to [target:
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail, portal:
> 172.18.133.210,3260] through [iface: default] is shutdown.
> 
> 5. iscsiadm -m node -T iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail 
> # BEGIN RECORD 6.2.0-873.10.el6
> node.name = iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail
> node.tpgt = 0
> node.startup = automatic
> node.leading_login = No
> iface.hwaddress = <empty>
> iface.ipaddress = <empty>
> iface.iscsi_ifacename = default
> iface.net_ifacename = <empty>
> iface.transport_name = tcp
> iface.initiatorname = <empty>
> iface.state = <empty>
> iface.vlan_id = 0
> iface.vlan_priority = 0
> iface.vlan_state = <empty>
> iface.iface_num = 0
> iface.mtu = 0
> iface.port = 0
> iface.bootproto = <empty>
> iface.subnet_mask = <empty>
> iface.gateway = <empty>
> iface.dhcp_alt_client_id_state = <empty>
> iface.dhcp_alt_client_id = <empty>
> iface.dhcp_dns = <empty>
> iface.dhcp_learn_iqn = <empty>
> iface.dhcp_req_vendor_id_state = <empty>
> iface.dhcp_vendor_id_state = <empty>
> iface.dhcp_vendor_id = <empty>
> iface.dhcp_slp_da = <empty>
> iface.fragmentation = <empty>
> iface.gratuitous_arp = <empty>
> iface.incoming_forwarding = <empty>
> iface.tos_state = <empty>
> iface.tos = 0
> iface.ttl = 0
> iface.delayed_ack = <empty>
> iface.tcp_nagle = <empty>
> iface.tcp_wsf_state = <empty>
> iface.tcp_wsf = 0
> iface.tcp_timer_scale = 0
> iface.tcp_timestamp = <empty>
> iface.redirect = <empty>
> iface.def_task_mgmt_timeout = 0
> iface.header_digest = <empty>
> iface.data_digest = <empty>
> iface.immediate_data = <empty>
> iface.initial_r2t = <empty>
> iface.data_seq_inorder = <empty>
> iface.data_pdu_inorder = <empty>
> iface.erl = 0
> iface.max_receive_data_len = 0
> iface.first_burst_len = 0
> iface.max_outstanding_r2t = 0
> iface.max_burst_len = 0
> iface.chap_auth = <empty>
> iface.bidi_chap = <empty>
> iface.strict_login_compliance = <empty>
> iface.discovery_auth = <empty>
> iface.discovery_logout = <empty>
> node.discovery_address = 172.18.133.210
> node.discovery_port = 3260
> node.discovery_type = send_targets
> node.session.initial_cmdsn = 0
> node.session.initial_login_retry_max = 8
> node.session.xmit_thread_priority = -20
> node.session.cmds_max = 128
> node.session.queue_depth = 32
> node.session.nr_sessions = 1
> node.session.auth.authmethod = None
> node.session.auth.username = <empty>
> node.session.auth.password = <empty>
> node.session.auth.username_in = <empty>
> node.session.auth.password_in = <empty>
> node.session.timeo.replacement_timeout = 120
> node.session.err_timeo.abort_timeout = 15
> node.session.err_timeo.lu_reset_timeout = 30
> node.session.err_timeo.tgt_reset_timeout = 30
> node.session.err_timeo.host_reset_timeout = 60
> node.session.iscsi.FastAbort = Yes
> node.session.iscsi.InitialR2T = No
> node.session.iscsi.ImmediateData = Yes
> node.session.iscsi.FirstBurstLength = 262144
> node.session.iscsi.MaxBurstLength = 16776192
> node.session.iscsi.DefaultTime2Retain = 0
> node.session.iscsi.DefaultTime2Wait = 2
> node.session.iscsi.MaxConnections = 1
> node.session.iscsi.MaxOutstandingR2T = 1
> node.session.iscsi.ERL = 0
> node.conn[0].address = 172.18.133.218
> node.conn[0].port = 3260
> node.conn[0].startup = manual
> node.conn[0].tcp.window_size = 524288
> node.conn[0].tcp.type_of_service = 0
> node.conn[0].timeo.logout_timeout = 15
> node.conn[0].timeo.login_timeout = 15
> node.conn[0].timeo.auth_timeout = 45
> node.conn[0].timeo.noop_out_interval = 5
> node.conn[0].timeo.noop_out_timeout = 5
> node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
> node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
> node.conn[0].iscsi.HeaderDigest = None
> node.conn[0].iscsi.IFMarker = No
> node.conn[0].iscsi.OFMarker = No
> # END RECORD
> # BEGIN RECORD 6.2.0-873.10.el6
> node.name = iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail
> node.tpgt = 0
> node.startup = manual
> node.leading_login = No
> iface.hwaddress = <empty>
> iface.ipaddress = <empty>
> iface.iscsi_ifacename = default
> iface.net_ifacename = <empty>
> iface.transport_name = tcp
> iface.initiatorname = <empty>
> iface.state = <empty>
> iface.vlan_id = 0
> iface.vlan_priority = 0
> iface.vlan_state = <empty>
> iface.iface_num = 0
> iface.mtu = 0
> iface.port = 0
> iface.bootproto = <empty>
> iface.subnet_mask = <empty>
> iface.gateway = <empty>
> iface.dhcp_alt_client_id_state = <empty>
> iface.dhcp_alt_client_id = <empty>
> iface.dhcp_dns = <empty>
> iface.dhcp_learn_iqn = <empty>
> iface.dhcp_req_vendor_id_state = <empty>
> iface.dhcp_vendor_id_state = <empty>
> iface.dhcp_vendor_id = <empty>
> iface.dhcp_slp_da = <empty>
> iface.fragmentation = <empty>
> iface.gratuitous_arp = <empty>
> iface.incoming_forwarding = <empty>
> iface.tos_state = <empty>
> iface.tos = 0
> iface.ttl = 0
> iface.delayed_ack = <empty>
> iface.tcp_nagle = <empty>
> iface.tcp_wsf_state = <empty>
> iface.tcp_wsf = 0
> iface.tcp_timer_scale = 0
> iface.tcp_timestamp = <empty>
> iface.redirect = <empty>
> iface.def_task_mgmt_timeout = 0
> iface.header_digest = <empty>
> iface.data_digest = <empty>
> iface.immediate_data = <empty>
> iface.initial_r2t = <empty>
> iface.data_seq_inorder = <empty>
> iface.data_pdu_inorder = <empty>
> iface.erl = 0
> iface.max_receive_data_len = 0
> iface.first_burst_len = 0
> iface.max_outstanding_r2t = 0
> iface.max_burst_len = 0
> iface.chap_auth = <empty>
> iface.bidi_chap = <empty>
> iface.strict_login_compliance = <empty>
> iface.discovery_auth = <empty>
> iface.discovery_logout = <empty>
> node.discovery_address = 172.18.133.210
> node.discovery_port = 3260
> node.discovery_type = send_targets
> node.session.initial_cmdsn = 0
> node.session.initial_login_retry_max = 8
> node.session.xmit_thread_priority = -20
> node.session.cmds_max = 128
> node.session.queue_depth = 32
> node.session.nr_sessions = 1
> node.session.auth.authmethod = None
> node.session.auth.username = <empty>
> node.session.auth.password = <empty>
> node.session.auth.username_in = <empty>
> node.session.auth.password_in = <empty>
> node.session.timeo.replacement_timeout = 120
> node.session.err_timeo.abort_timeout = 15
> node.session.err_timeo.lu_reset_timeout = 30
> node.session.err_timeo.tgt_reset_timeout = 30
> node.session.err_timeo.host_reset_timeout = 60
> node.session.iscsi.FastAbort = Yes
> node.session.iscsi.InitialR2T = No
> node.session.iscsi.ImmediateData = Yes
> node.session.iscsi.FirstBurstLength = 262144
> node.session.iscsi.MaxBurstLength = 16776192
> node.session.iscsi.DefaultTime2Retain = 0
> node.session.iscsi.DefaultTime2Wait = 2
> node.session.iscsi.MaxConnections = 1
> node.session.iscsi.MaxOutstandingR2T = 1
> node.session.iscsi.ERL = 0
> node.conn[0].address = 172.18.133.210
> node.conn[0].port = 3260
> node.conn[0].startup = manual
> node.conn[0].tcp.window_size = 524288
> node.conn[0].tcp.type_of_service = 0
> node.conn[0].timeo.logout_timeout = 15
> node.conn[0].timeo.login_timeout = 15
> node.conn[0].timeo.auth_timeout = 45
> node.conn[0].timeo.noop_out_interval = 5
> node.conn[0].timeo.noop_out_timeout = 5
> node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
> node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
> node.conn[0].iscsi.HeaderDigest = None
> node.conn[0].iscsi.IFMarker = No
> node.conn[0].iscsi.OFMarker = No
> # END RECORD
> 
> even I adjust startup method as follow and then start pool,problem still
> exit.
> 1.iscsiadm -m node -o update -n node.startup -v manual -T
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail -p 172.18.133.218 
> 2.iscsiadm -m node -o update -n node.startup -v automatic -T
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail -p 172.18.133.210
> 3.virsh pool-start   whxg-mail
> 
> after pool start whxg-mail,system will automatic change portal
> 172.18.133.218 startup as automatic,and 172.18.133.210 startup as manual.
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to