Start a Conversation

Unsolved

This post is more than 5 years old

1266

October 5th, 2017 15:00

REST APIs for type of devices in a Storage Pool? SSD or HDD

Is there a ScaleIO REST API? /devices/{deviceId} ? that will tell us if a storage pool has SSDs or HDDs

Don't want to SSH and figure out?

October 5th, 2017 21:00

Hello,

Yes, there is a REST call to gather information on ScaleIO devices, However, it won't directly tell you if it's a SSD or HDD.

The REST call for ScaleIO devices is:

/api/instances/Device::{device_id}

To determine if the Storage Pool has SSDs or HDDs, you could apply a naming scheme for your Storage Pools that specifies whether or not, the pool is a SSD or HDD pool by the name of the Storage Pool.

Using the device REST call above, it will give you the Storage Pool ID that the device is in. The Storage Pool ID can be used in this REST call:

/api/instances/StoragePool::{storagepool_id}

You will then be able to look at the parameter "name", and if your naming scheme for the Storage Pool indicates what kind of pool it is, then you can use this method to figure out what devices are SSD/HDD.

Hopefully this helps.

October 6th, 2017 07:00

Hi David,

I appreciate the quick response. Do you think we can rely on the naming scheme? I mean is there a way to enforce this? what if the customer ignores this?

Can  the below be exposed as REST API?

Looks like there is a CLI command from SVM:

/opt/MegaRAID/perccli/perccli64 /c0/eall/sall show

~Naveen

October 6th, 2017 08:00

There is no way to enforce this, and you could accidentally put a HDD in a SSD pool.

Another method you could use as a data point for identifying the correct type of disk, would be to look at the capacity of the disks. In most cases SSDs and HDDs are different in size. If you know the expected size for the clusters SSDs and HDDs, this method could be used. Using the query device REST call:

/api/instances/Device::{device_id}


This will provide the "maxCapacityInKb" parameter for the specific disk.

Now you could use the Name of the Storage Pool and the size of the disk as 2 data points to identify what type of device this is. Again, this isn't a 100% for sure method to validate the type of disk.

There are no REST calls that are used with the Perccli utility.

No Events found!

Top