Re: [libvirt] Re: ISCSI howto, example, etc?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 14 May 2008, Stefan de Konink wrote:

> Something is present, thus the login was succesfull. How to get this to
> work with the libvirt storage pool?
>
> I have tried to change the target path. But it doesn't give me any output.
> I'll now look in the C code to see what you are giving as command for this
> list.

static int
virStorageBackendISCSIFindLUNs(virConnectPtr conn,
                               virStoragePoolObjPtr pool,
                               const char *session)
{
    /*
     * # iscsiadm --mode session -r $session -P 3
     *
     *           scsi1 Channel 00 Id 0 Lun: 0
     *           scsi1 Channel 00 Id 0 Lun: 1
     *                   Attached scsi disk sdc          State: running
     *           scsi1 Channel 00 Id 0 Lun: 2
     *                   Attached scsi disk sdd          State: running
     *           scsi1 Channel 00 Id 0 Lun: 3
     *                   Attached scsi disk sde          State: running
     *           scsi1 Channel 00 Id 0 Lun: 4
     *                   Attached scsi disk sdf          State: running
     *           scsi1 Channel 00 Id 0 Lun: 5
     *                   Attached scsi disk sdg          State: running
     *
     * Need a regex to match the Channel:Id:Lun lines
     */


I consider my output interesting... it seems the -P option is ignored.
(I'm running open-iscsi-2.0.868_rc1)

xen01 src # iscsiadm --mode session -r 10 -P 3
node.name =
iqn.1992-08.com.netapp:sn.118046347:vf.88fa4694-0ba6-11dd-b8a9-00a09807592f
node.tpgt = 2003
node.startup = manual
iface.hwaddress = default
iface.iscsi_ifacename = default
iface.net_ifacename = default
iface.transport_name = tcp
node.discovery_address = 172.16.103.200
node.discovery_port = 3260
node.discovery_type = send_targets
node.session.initial_cmdsn = 0
node.session.initial_login_retry_max = 4
node.session.cmds_max = 128
node.session.queue_depth = 32
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 = 20
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.16.103.200
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.MaxRecvDataSegmentLength = 131072
node.conn[0].iscsi.HeaderDigest = None,CRC32C
node.conn[0].iscsi.DataDigest = None
node.conn[0].iscsi.IFMarker = No
node.conn[0].iscsi.OFMarker = No


--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]