Re: Confused Really..........LV Vs. Regular fileAND FILEIO Vs. BLOCKIO

View: New views
2 Messages — Rating Filter:   Alert me  

Re: Confused Really..........LV Vs. Regular fileAND FILEIO Vs. BLOCKIO

by rswwalker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Re: [Iscsitarget-devel] Confused Really..........LV Vs. Regular fileAND FILEIO Vs. BLOCKIO

Maybe saying fileio=cacheio helps?

Fileio just means use VFS api for io and the page cache it brings with it. It also means you can use regular files for back-end storage as the VFS api allows one to access files as well as devices.

Regular files or devices, their usage depends on your needs. Devices will perform better, but aren't relocated easily.

Fileio or blockio, again their usage depends on your needs and a search of the list will bring up plenty of discussions on both.

Why not tell the list what you are setting up and for what purpose and you will get recommendations.

-Ross


----- Original Message -----
From: iscsitarget-devel-bounces@... <iscsitarget-devel-bounces@...>
To: iscsitarget-devel@... <iscsitarget-devel@...>
Sent: Tue Jun 24 08:48:56 2008
Subject: [Iscsitarget-devel] Confused Really..........LV Vs. Regular fileAND FILEIO Vs. BLOCKIO

If lun is having LV(i.e.Virtual Block device) in it,then should it be
exposed as "Blockio"?

If it is exposing Regular file,then it should use "Fileio".
Is it right?

Regular file is exposed as a disk.What is difference between 'Blockio"
and "Fileio" in iSCSI.

What is use of exporting Regular File as a disk and LV's as a Disk?
Which one is better?


& What is better ? Fileio or Blockio in terms of Performance/Other
issues?

Plz help...


This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Parent Message unknown Re: Confused Really..........LV Vs. Regular fileAND FILEIO Vs. BLOCKIO

by rswwalker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

himanshu padmanabhi wrote:

> On Wed, Jun 25, 2008 at 8:21 PM, Ross S. W. Walker <RWalker@...> wrote:
>
> >himanshu padmanabhi wrote:
> >
> >> I am using open-iscsi initiator and IET target.
> >>
> >> I just want to use the exported disk by creating VG's,LV's on
> >> the exported disk from the target.
> >>
> >> Then of what type should I export LUN from the target
> >> side.Fileio or BLockio?
> >
> > Let me ask you these questions:
> >
> > 1. What is the underlying storage type (RAID1, RAID10,
> > RAID5/RAID6, single disk)?
>
> It can be anything out of this.Lv''s will be created
> on anything.Can u specify for all?
>
> > 2. Is it software or hardware RAID?
>        
> We are using both.Can u specify for both?
>
> > 3. Does it have a write-back cache? Read-ahead cache?
>
> We used 3ware's  hardware RAID.I have to check what it uses?
>
> > 4. What is the application/use on the initiator for
> > this storage (file, database, backup, streaming media)?
>
> Initiator can use it for any above said purposes.
>
> So there isn't any generalised rule for this?

No, if there was then there wouldn't be any configuration needed.

Ok, so here is something that may or may not be helpful, of course as always YMMV:

1) Software RAID (which has no caching) use Type=fileio,IOMode=wb

2) Hardware RAID (with no caching) same as above

3) Hardware RAID (with write-back, no read-ahead) use Type=fileio

4) Hardware RAID (with write-back and read-ahead) use Type=blockio

Exceptions:

1) If you don't have a UPS don't use IOMode=wb

2) If you don't have a rock solid stable single-purpose target, don't use IOMode=wb

3) If you plan on connecting to target over loopback interface, use Type=blockio

4) If you are using the volume primarily for backups or streaming media, which do large sequential IO, use Type=blockio

5) If you are using the volume for databases, which do both random IO and large sequential IO, use Type=blockio

6) If you are using the volume for virtual machines, which do random IO, but request the same data over and over again use Type=fileio


Use LVM on the target to divide storage between the differing types (best practice is to have separate arrays for the differing types) and set the lun types as appropriate.

LVM on the target also has the advantage of being able to do live migrations of storage using pvmove which you will find extremely helpful when it's time to upgrade your arrays and move data over. Also if block level de-duplication and thin provisioning ever get incorporated into LVM then you are set to leverage those technologies as well.

-Ross

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel
LightInTheBox - Buy quality products at wholesale price