Force identify as SSD

Software-based VM-centric and flash-friendly VM storage + free version

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

User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Fri Jan 27, 2017 7:19 pm

Is it possible to force a device to be identified as a SSD? It is very annoying that all my devices in vSphere is identified as a regular HDD. This is because the Megaraid-controller is not reporting as SSD to the OS Starwind is running on.
User avatar
anton (staff)
Site Admin
Posts: 4010
Joined: Fri Jun 18, 2004 12:03 am
Location: British Virgin Islands
Contact:

Mon Jan 30, 2017 1:15 pm

Shouldn't be very difficult, just a couple of NOP service commands added. I've fired this to RD as a feature request.
Regards,
Anton Kolomyeytsev

Chief Technology Officer & Chief Architect, StarWind Software

Image
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Mon Jan 30, 2017 2:06 pm

Thanks!
The main "pain" is that when having multiple ESXi-hosts accessing multiple LUNs/datastores, no hosts can use the LUN when marking as flash in the vSphere Web Client.
So I have migrated all VMs to other datastores, (formatted as VMFS6) and marked as flash on one and one hosts. This takes a long time. But be worst thing is that I have to migrate all VMs off again if adding a new host..
So this change will be great. If the storage is identified as SSD "all the way", we can make use of trim from the OS to shrink VMDKs and also LSFS-volumes.
User avatar
Alex (staff)
Staff
Posts: 177
Joined: Sat Jun 26, 2004 8:49 am

Mon Jan 30, 2017 2:47 pm

It can be done in the current version of StarWind by adding "SolidStateDrive" parameter to device string in config file StarWind.cfg:

Start WordPad with administrator privileges, open StarWind.cfg file, find <device... record by value of device name or .swdsk file parameter.
Add SolidStateDrive="1" parameter before closing tag, for example:

<device file="My Computer\D\img\Storage4\Storage4.swdsk" name="imagefile1" SolidStateDrive="1"/>

Save file, restart StarWind service.

We will add this option to UI wizard in one of upcoming updates.
Best regards,
Alexey.
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Mon Jan 30, 2017 3:59 pm

GREAT!
This can be done on HA-devices by changing on one node, sync and then the other node? To prevent downtime.
User avatar
Alex (staff)
Staff
Posts: 177
Joined: Sat Jun 26, 2004 8:49 am

Mon Jan 30, 2017 4:12 pm

Let us check this in our lab. vSphere don't like to update information about "known" devices on fly. For example, it updates information about supported commands only after restart of ESX server.
Best regards,
Alexey.
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Mon Jan 30, 2017 4:25 pm

OK.
Are you worried about a crash, or just that a reboot is needed? A reboot is no problem.
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Mon Jan 30, 2017 9:29 pm

I tried this change on both nodes and rebooted host. No automatic change of disk type.. :\
Is this a change in R5, og should the current release from Aug support this setting?
User avatar
Alex (staff)
Staff
Posts: 177
Joined: Sat Jun 26, 2004 8:49 am

Tue Jan 31, 2017 11:09 am

I had doubts about need of ESXi reboot for refreshing device info.

It works with V8R4 from August 2016. We have checked with 3-node ESXi 6.5 cluster.
Option has been added to both StarWind HA nodes: edit StarWind.cfg, restart StarWind service, wait for HA sync, repeat for the second node.
Then all three EWXi nodes were restarted one-by one.
After storage resan ESXi showed disk type as Flash.

All this time test VM with test load remained functional.

Important remark: in case of HAImage device, we need to add the "SolidStateDrive" parameter to corresponding ImageFile device. This device is mentinoned in HAImage's "Storage" parameter, for example:
<device name="HAImage1" ... AluaNodeGroupStates="0,0" Storage="imagefile2"/>
For this device we need to locate "imagefile2" in config file to add the parameter:
<device file="My Computer\D\img\Storage5\Storage5.img" name="imagefile2" SolidStateDrive="1"/>


There is another method for marking storage as SSD on ESXi side:
https://kb.vmware.com/selfservice/searc ... Id=2013188
Best regards,
Alexey.
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Tue Jan 31, 2017 12:04 pm

It might be that I have to reboot all hosts first. Will check. :)
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Tue Jan 31, 2017 2:50 pm

btw, the ESXi-method sucks, as no host can use the datastore, not only the host I make the changes on. Not ideal when having 30-ish hosts.. :\
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Tue Jan 31, 2017 6:30 pm

Sigh.. I did a reboot of all hosts, one and one, and still not identified as flash storage.

Did the change like this:

<device file="My Computer\F\p3600_1\p3600_1.swdsk" name="imagefile1" SolidStateDrive="1"/>

This should be the correct method?
Might be a delay in vCenter, but I don't think so.
User avatar
Alex (staff)
Staff
Posts: 177
Joined: Sat Jun 26, 2004 8:49 am

Wed Feb 01, 2017 9:09 am

Yes, that's right!
You can check StarWind log file for the string "disk is SSD" near the records about initialization of ImageFile device.

What ESXi version are you using?
Does datastore rescan or "refresh capacity information" change anything?
Best regards,
Alexey.
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Wed Feb 01, 2017 10:49 am

Will check logs. I have tried rescans "here and there" without any luck.
Running vCenter 6.5 and ESXi 6.5
User avatar
lohelle
Posts: 144
Joined: Sun Aug 28, 2011 2:04 pm

Wed Feb 01, 2017 1:00 pm

From log:
G:\p3600_2\p3600_2.img': disk is SSD, UNMAP supported

So I will have to look at the ESXi side. Very strange.. ALL hosts have been restarted, but not simultaneously of course (NOT possible).
Post Reply