Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] iscsitarget



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!

On Tue, May 1, 2012 at 8:40 AM, Edward Ned Harvey <blu at nedharvey.com> wrote:
>> From: discuss-bounces+blu=nedharvey.com at blu.org [mailto:discuss-
>> bounces+blu=nedharvey.com at blu.org] On Behalf Of Matthew Kowalski
>>
>> I was able to create a 20GB file with:
>>
>> dd if=/dev/zero of=lun1.img bs=1024k count=20000
>>
>> I can then mount that iSCSI target on my Windows 7 machine and see an
>> unallocated disk which I can format and use. ?My question is how do I
>> expand the lun1.img file to grow the target to say 40GB, etc?
>
> Be sure to test this on a 1Mb file before doing it on something you care
> about, but ...
>
> dd if=/dev/zero of=lun1.img bs=1024k skip=20000 count=35000
> or
> dd if=/dev/zero bs=1024k count=15000 >> lun1.img
>
> I'm not sure how well windows will handle the live expansion of the disk. ?I
> suggest doing it while windows is offline, and then run diskmgmt again on
> windows to expand your partition.
>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org