StarWind iSCSI SAN
StarWind Native SAN for Hyper-V
 

IMG files...

Pure software-based VM-centric and flash-friendly VM storage (iSCSI, SMB3, NFS, iSER and NVMe over Fabrics) including free version. Same software embedded on StarWind ready nodes.

Moderators: art (staff), anton (staff), Anatoly (staff), Max (staff)

IMG files...

Postby TheHecklerJ » Mon Jul 05, 2004 7:53 pm

Can someone explain what IMG files are and how to use / create them?

I am looking for a way to emulate / create virtual HDD devices instead of presenting physical devices.

So my goal is (and i may be off base for what this product is designed to do) is to create a few 500mb - 1gb files, create lines in the .conf file and mount them as HDD devices on my hosts.

Is this possible, and if so, please describe how, also if possible share a glimpse of the .conf file.

Thank you...
TheHecklerJ
 
Posts: 7
Joined: Fri Jul 02, 2004 4:39 pm

Postby Val (staff) » Mon Jul 05, 2004 8:56 pm

Please look at a help file named "StarWind configuration (English).rtf" that is installed with your StarWind server.
(You can reach the file inside of the Programs\Rocket Division Software\StarWind\ submenu)
Chapter 3.4 of the manual describes how to add a file mapped virtual drive as an iSCSI target.

An image file must be 512 bytes aligned in size. Total size of a file-mapped drive equals to the size of its underlying file.

Current StarWind version uses image files created by other utilities. (we'll add such a tools into the next StarWind version)

For now I can send you by email an application to create image files.
Please send me an email from your mail box if you are interested in it.
(my address: [email protected])

To add one or more file mapped virtual hard drives to your StarWind server add a line as follows for each of them to your StarWind.conf:
add ImageFile0 -file:"c:\images\image0.img"
add ImageFile1 -file:"d:\temp\image1.img"
...
add ImageFileX -file:"z:\my\images\imageX.img"
Best regards,
Valeriy
Val (staff)
 
Posts: 499
Joined: Tue Jun 29, 2004 8:38 pm

Postby Alex (staff) » Tue Jul 06, 2004 5:44 am

valery (staff) wrote:An image file must be 512 bytes aligned in size. Total size of a file-mapped drive equals to the size of its underlying file.


BTW, this requirement is not so strict. You can use files of any size. Not aligned tail it won't be used.
Best regards,
Alexey.
User avatar
Alex (staff)
Staff
 
Posts: 177
Joined: Sat Jun 26, 2004 8:49 am

Postby ChrisKinsman » Sun Jul 11, 2004 12:07 am

Wow that is non-intuitive. I struggled for a good 1/2 hour not being able to figure out why it wouldn't mount the image files. Those docs leave a lot of information to the imagination...

Just some samples on how to set up each of the types would be useful.
ChrisKinsman
 
Posts: 3
Joined: Fri Jul 02, 2004 9:35 pm

Postby Val (staff) » Sun Jul 11, 2004 10:33 am

ChrisKinsman wrote:Wow that is non-intuitive. I struggled for a good 1/2 hour not being able to figure out why it wouldn't mount the image files. Those docs leave a lot of information to the imagination...

Just some samples on how to set up each of the types would be useful.

Chris,

Please take a look into the StarWind.conf file that is created in your StarWind installation directory.
There are some inline comments and commented samples showing how to create any device types StarWind supports now.

We are working on the documentation and I hope the next StarWind release will have all the configuration information one need to use StarWind.
Best regards,
Valeriy
Val (staff)
 
Posts: 499
Joined: Tue Jun 29, 2004 8:38 pm

.img file

Postby Edwinder » Sun Jul 25, 2004 1:12 pm

Hi,

I'm not sure if we're having the same problem here. I've created an image file using mksparse.exe. Seems that I still am unable to mount this.

Any info would be appreciated.

Thanks.
Edwinder
 

Re: .img file

Postby Val (staff) » Sun Jul 25, 2004 1:55 pm

Edwinder wrote:Hi,

I'm not sure if we're having the same problem here. I've created an image file using mksparse.exe. Seems that I still am unable to mount this.

Any info would be appreciated.

Thanks.

Hi Edwinder,

Could you please show your StarWind.conf file settings?

Did you add to the file a line like:
Code: Select all
add ImageFile0 -file:"your image file path"


Maybe StarWind's log files could shed more light on the issue?
Best regards,
Valeriy
Val (staff)
 
Posts: 499
Joined: Tue Jun 29, 2004 8:38 pm

It now works (after a reboot)

Postby Edwinder » Sun Jul 25, 2004 3:54 pm

Hi,

The image file now works after a reboot. Initially it does not work with both Microsoft's Initiator and the StarPort Initiator. I can't tell why though.

No changes to my starwind.conf file after reboot. Following are the settings.

addplugin -module:ImageFile.dll -symlink:ImageFile -type:"Image file" -imagedir:"images" -imagemask:"*.img"

add ImageFile0 -file:"image.img"

I've put my image.img file in the relevant "images" directory within my path.
Edwinder
 

Re: It now works (after a reboot)

Postby Val (staff) » Sun Jul 25, 2004 7:02 pm

Edwinder wrote:The image file now works after a reboot. Initially it does not work with both Microsoft's Initiator and the StarPort Initiator. I can't tell why though.

To apply any changes to the StarWind.conf without system rebooting you need to restart your StarWind service.
You can do this via Service Manager GUI or directly in the command line:
Code: Select all
net stop StarWindService
net start StarWindService
Best regards,
Valeriy
Val (staff)
 
Posts: 499
Joined: Tue Jun 29, 2004 8:38 pm

Postby Edwinder » Mon Jul 26, 2004 1:18 am

Hi Valery,

I was using the Windows Service Manager GUI. Did not work until I rebooted. In any case, will keep a lookout if I do get to test it on another machine.

Cheers!
Edwinder
Edwinder
 

Postby Alex (staff) » Mon Jul 26, 2004 3:58 pm

Edwinder wrote:I was using the Windows Service Manager GUI. Did not work until I rebooted. In any case, will keep a lookout if I do get to test it on another machine.


This is really strange. I changed my configuration as you did and tried to restart the service both from console and Services MMC snap-in. In both cases everything worked greatly.
Best regards,
Alexey.
User avatar
Alex (staff)
Staff
 
Posts: 177
Joined: Sat Jun 26, 2004 8:49 am


Return to StarWind Virtual SAN / StarWind Virtual SAN Free / StarWind HyperConverged Appliance / StarWind Storage Appliance

Who is online

Users browsing this forum: No registered users and 2 guests