LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2009, 04:03 PM   #1
nowlinuxed
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Rep: Reputation: 0
ISCSI target image sizing


Hello all

I wasn't sure where to post this question because it does overlap a few areas.

Could somebody please tell me how to use dd to create an image file for an iscsi target considering the follwoing info :

Following an ubuntu tutorial here:
http://www.howtoforge.com/using-iscs...tor-and-target (great how to by the way --so easy and fast)

I got this
mkdir /storage
dd if=/dev/zero of=/storage/lun1.img bs=1024k count=20000

I understand that the block size is 1024k and the count is 20000 records (right or wrong ?)

But what's confusing to me is what is the best block size (bs) and number of records (count) for a specific image size.

Is it a fairly good idea to maintain a 1024k block size ?

Could someone shed some light (explain) on the block sizes and performance of each considering a file of say 30GB 50GB 100GB 200GB 300GB 400GB and 500GB or even 1TB.

Would it be a good idea to create several smaller files and declare them as LUN's on the iscsi target or rather have one large file?

The reason I am asking all of this is becuase my plan is to have have the ubuntu box run iscsitarget with a 1TB hard drive containing the .img file(s) created using dd.
I will then mirror the 1TB drive using a software mirror.
The 1TB hard drives are SATA.

Would really love some feedback or help from others using ISCSITARGET or openiscsi target
 
Old 10-19-2009, 02:05 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,715

Rep: Reputation: 634Reputation: 634Reputation: 634Reputation: 634Reputation: 634Reputation: 634
Hi,

If you're using image files the block size while running 'dd' isn't relevant, 'dd' isn't creating a file system just a file. The block size of the underlying file system could be important but that's already in place so it's a bit late to change it.

I haven't tested but it may also impact performance by having the extra layer of abstraction when using image files rather than presenting a raw partition/volume,

HTH... cheers

kbp
 
  


Reply

Tags
count, dd, image, img, iscsi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you map a folder as an iSCSI target? Duren Linux - Server 0 08-18-2008 12:49 PM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
setting up iscsi initiator and target gauthamk Linux - Software 0 10-05-2007 09:16 AM
iscsi target not makes up with fedora 6 nirmaltom Linux - Software 1 02-26-2007 04:29 AM
iSCSI target software from Ardis pliva Linux - Software 2 05-13-2006 01:39 AM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration