[Discuss] iscsitarget
Edward Ned Harvey
blu at nedharvey.com
Mon May 7 16:09:59 EDT 2012
> From: Matthew Kowalski [mailto:matt.kowalski at gmail.com]
> Sent: Friday, May 04, 2012 7:15 PM
>
> I was able to use truncate -s 40G lun1.img and after restarting the
> iscsitarget service Windows saw the larger disk. It works pretty well
> and it's fast. Thanks for the help!
That sounds like a sparse file operation to me. Which I would normally use
for most situations, but since you explicitly said you created the file
using a dd command which isn't sparse... Maybe you wanted a fully allocated
disk? If it is sparse now, and you want it fully allocated, I think there's
only one way to fill it now... Which is to fill the disk on the guest side.
For example, install cygwin on windows, and then run: dd if=/dev/zero
of=junk.file bs=1024k ; rm junk.file
More information about the Discuss
mailing list