Syntax for "logging in" to regular file

2008-06-07 Thread HIMANSHU

Hi,

1.To discover targets,

iscsiadm --mode discovery --type sendtargets --portal 'target_ip'

2.For login,

iscsiadm -m node -T 'target_name' -p 'target_ip':3260 --login

3. Use exported disk on initiator(create PV,LV,use that LV etc.)

4. For logout,

iscsiadm -m node -T 'target_name' -p 'target_ip':3260 --logout

All above is for Virtual block devices(RAID/LVM).

What are the similar commands if i want to discover,login,logout
"regular files"?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Syntax for "logging in" to regular file

2008-06-09 Thread Mike Christie

HIMANSHU wrote:
> Hi,
> 
> 1.To discover targets,
> 
> iscsiadm --mode discovery --type sendtargets --portal 'target_ip'
> 
> 2.For login,
> 
> iscsiadm -m node -T 'target_name' -p 'target_ip':3260 --login
> 
> 3. Use exported disk on initiator(create PV,LV,use that LV etc.)
> 
> 4. For logout,
> 
> iscsiadm -m node -T 'target_name' -p 'target_ip':3260 --logout
> 
> All above is for Virtual block devices(RAID/LVM).
> 
> What are the similar commands if i want to discover,login,logout
> "regular files"?

If on the target you are exporting regular files as storage, IET will do 
some magic so to the initiator they look like disks, and so the commands 
are the same.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Syntax for "logging in" to regular file

2008-06-10 Thread HIMANSHU

Currently iSCSI targets contains LV's.

--
Target iqn.2008-06.com.qualexsystems:Tar3
Alias Tar3
#instead of adding LV here,regular file should be added.
Lun 0 Path=/dev/Vg1/lvISCSI3,Type=fileio
HeaderDigest CRC32C,None
InitialR2T Yes
MaxBurstLength 262144
MaxRecvDataSegmentLength 8192
DataPDUInOrder Yes
ImmediateData No
MaxXmitDataSegmentLength 8192
FirstBurstLength 65536
MaxOutstandingR2T 8
DataSequenceInOrder Yes
DataDigest CRC32C,None
DefaultTime2Wait 2
MaxConnections 1
DefaultTime2Retain 20
ErrorRecoveryLevel 0
Wthreads 8
-
Do u know how it can be achieved?i.e.Basically how to export regular
files from target?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Syntax for "logging in" to regular file

2008-06-11 Thread Konrad Rzeszutek

On Tue, Jun 10, 2008 at 10:27:00PM -0700, HIMANSHU wrote:
> 
> Currently iSCSI targets contains LV's.
> 
> --
> Target iqn.2008-06.com.qualexsystems:Tar3
> Alias Tar3
> #instead of adding LV here,regular file should be added.
> Lun 0 Path=/dev/Vg1/lvISCSI3,Type=fileio
 -> /tmp/some_file

Wherein your /tmp/some_file is maybe an ISO copy of your favorite distro
or what-not.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Syntax for "logging in" to regular file

2008-06-11 Thread Mike Christie

HIMANSHU wrote:
> Currently iSCSI targets contains LV's.
> 
> --
> Target iqn.2008-06.com.qualexsystems:Tar3
> Alias Tar3
> #instead of adding LV here,regular file should be added.
> Lun 0 Path=/dev/Vg1/lvISCSI3,Type=fileio
> HeaderDigest CRC32C,None
> InitialR2T Yes
> MaxBurstLength 262144
> MaxRecvDataSegmentLength 8192
> DataPDUInOrder Yes
> ImmediateData No
> MaxXmitDataSegmentLength 8192
> FirstBurstLength 65536
> MaxOutstandingR2T 8
> DataSequenceInOrder Yes
> DataDigest CRC32C,None
> DefaultTime2Wait 2
> MaxConnections 1
> DefaultTime2Retain 20
> ErrorRecoveryLevel 0
> Wthreads 8
> -
> Do u know how it can be achieved?i.e.Basically how to export regular
> files from target?

This is really a IET list questions, but since for once I might know the 
asnwer here is what I do:

Lun 0 Path=/home/mnc/iet_lun0,Type=fileio

In this case iet_lun0 is just a normal old file on the target that I 
created by doing

dd if=/dev/zero of=/home/mnc/iet_lun0 bs=1G count=10

so the lu that is exported ends up being about 10 gigs. If this is not 
what you wanted then you should probably post to the IET list.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---