r/vmware•
chrish012

pRDM - What did I do wrong?

Tl;dr - tried svMotion of pRDM pointers, broke storage for production SQL VMs, had to remount in-guest.

I think I know where and when it broke, but I don't know how or why... Wall of text:

My project for the day was to re-organize/balance the datastores in our environment (standard licensing, no DRS). We use ESXi 5.5, Equallogic, 10gig dedicated iSCSI (intel nics), VMFS5 and the software iSCSI adapter. We also have two VMs running MSSQL using physical-mode RDMs; one of these has the database for vCenter... As part of the project, i started an svMotion of these two VMs from 'ds2' to 'ds1'. When they completed I noticed the pointers for the RDMs were still on ds2, so I ran another svMotion, went into advanced, and set them to move as well (I think this was my mistake). Almost immediately vCenter told me it lost connection to that host. That didn't seem to be the case right away, but ultimately it was right. I also seemed to lose at least one out of 8 RDMs on each of the two VMs in question, and applications depending on those databases started screaming.

Equallogic thought those volumes were still connected, vSphere (through the host at this point, of course i lose the volume with the vCenter DB) said they were still attached to the VM, but the guest OS didn't see them at all. We took down both VMs, rebooted the host, and when it came up we couldn't connect the vSphere client due to "the server could not interpret the clients request (503)". We got into the command line and restarted the management services (services.sh restart) to no change. Here's where it gets wierd... I had four new hosts configured earlier this week, these were added to vcenter and had storage configured but were not yet hosting VMs. Desperate, I shut down the failing host and attached these two VMs to one of the new hosts. I tried to rescan HBAs but after an hour of 'in progress' I gave up and rebooted it (hoping it'd rescan faster during boot). This resulted in the same 503 error during client connection...

Ultimately, we were able to resolve the situation by setting up the iSCSI network on a new vNIC in each of the VMs, removing the broken RDMs from the VM and connecting the guest directly to Equallogic using the MS iSCSI Initiator. Being they were previously RDMs, they were NTFS volumes, so the guest had no problem mounting and using them. SQL starts up, app-owners say all is well, we wipe our sweat and move on with our day.

So I'm pretty sure trying to migrate the pRDM pointers was my mistake, but why? How should I have handled this other than how I did, or did I do it right and something went wrong? Am I better off anyway with in-guest connections to storage, or should we somehow plan to go back to RDMs? I'm waiting for our DBAs to run new performance tests, but being Friday night after a rough day I don't expect to hear from them soon.

Posted Jun 13, 2015, 2:21 AM UTC

77

I don't really have an answer to your question but hopefully someone could answer a related question.

With all the limitations of what you're allowed to do with RDMs and the apparent sensitivity why do people use them?

Could this not have been avoided if the storage was presented to the hosts as LUNs to put a VMDK on and then the VMDK presented to the guest?

1
chrish012OP•

Absolutely avoidable if we used vmdks or in-guest iscsi (which is where we ended up this time).

RDMs give you flexibility - an NTFS volume is more portable than a vmdk on a datastore. We could mount the data to a physical server if we had to, or another VM on xen or hyperv or whatever we needed. We also did this to make our DBAs happy. They weren't sure they trusted iSCSI or virtualization, so we needed a way to guarantee them direct access to their disk.

2
cloudmech•

Those are valid reasons for using RDMs. Good for you for being a team player and giving them the option.

Now it's time to move toward virtualization and convert those RDMs into VMdKs once and for all. Your life will be much better and the performance differences are negligible.

4
signal_lost•

SQL alwaysON clustering works with VMDK's.

Death to the RDMs....

2
bubba9999•

We only use them for Microsoft Clustering, mostly just for MS-SQL. It lets the SQL admins patch a secondary, then roll production over to it and patch the primary with minimal downtime incurred and an additional margin of safety.

2
bubba9999•

I don't know why your host went down, but when we went to 5.5 and hw level10, when DRS kicked in and moved a SQL host with pRDMs, we lost storage connectivity to the hosts. We now mark them in DRS as manual-only and only move them when they're turned off. It appears to work ok with version 6, fwiw, so hopefully part of the rdm nightmare will be resolved.

1
chrish012OP•

Thanks for the note on 6, we're hoping to upgrade in Q3. Meanwhile, these are no longer rdms and I'm not sure I plan to offer them again.

1