VMware Cloud Community
toprock
Contributor
Contributor

Add a SAN LUN as a RDM to a Virtual Machine

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

0 Kudos
1 Reply
LucD
Leadership
Leadership

What do you mean by "...map the volumes to a mount point - not a drive"?

Do you mean that the RDM needs to be mounted inside the guest OS?
What is the guest OS?
Or are you talking about NFS mounts?

Those are done inside the guest OS. That can be done through Invoke-VMScript, but that requires VMware Tools to be installed. Are they?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos