Whenever we provision a new platform a number of LUNs are created on our SAN to support the new databases that the platform will need - typically 30+ per DB server.
The naming convention of the volumes are uniforim, only 2 digits in the name change from platform to platform.
As the volume names are uniform, I'd like the ability to have as script that could map the volumes to a mount point - not a drive.
Is it possible to do this via a powershell script and if so how could this be done for the following:
1. The VM is called DB-001
2. One of the SAN volumes is called DB-001-INDEX
3. The volume needs to be mounted as INDEX
4. Another volume on theSAN is called DB-001-WAREHOUSE
5. The volume needs to me mounted as WAREHOUSE
ect...
Any help would be greatly appreciated