I'm facing a problem at the moment in trying to use AWS: "Instance storage" is not always automatically mounted. And depending on the instance type, the device names for the SSD volumes can vary. Sometimes one of the two SSD's is already automatically mounted and sometimes it isn't. (It seems from my experience that the second SSD is never automatically mounted.) Sometimes the instance storage already has a filesystem on it, and sometimes it doesn't.
It would be nice to have a start up script that automatically finds the SSD storage, if there is any, formats it if need be, and then mounts it as a single RAID0 logical volume. But given the variability of situations that the script might face, this doesn't seem like a trivial task. Unless we always use the same instance type, in which case, maybe we can depend on things being a certain way. (But we don't want to have to always use the same instance type.)
It seems crazy to me that Amazon doesn't provide some off-the shelf solution for this problem. I.e., a tool that just mounts all the available instance storage as a single logical volume under /mnt
, or whatever.
Is there any such off-the-shelf solution for this somewhere, or am I going to have to reinvent the wheel yet again?
It seems like quite a shame that Amazon makes this so difficult. I'm not sure what they are thinking with respect to this!