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:
(great how to by the way --so easy and fast)
I got this
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