Skip Ribbon Commands
Skip to main content

Quick Launch

Todd Klindt's home page > Todd Klindt's Office 365 Admin Blog > Posts > How to Change Server’s Minrole in SharePoint 2016
December 01
How to Change Server’s Minrole in SharePoint 2016

One of the most hyped and exciting new features in SharePoint 2016 is Minrole. Minrole is the ability to define a server’s role in the farm, and for SharePoint to make sure that server is running all the services necessary to meet those responsibilities. In this blog post I’ll show you how to determine what Minrole a machine has, and how to change it if you want to.

This blog post was written against pre-release software, Beta 2 of SharePoint 2016. As things change, this might not be exactly the same with SharePoint 2016 when it RTMs. Consider yourself warned.

Discovering Minrole

Every machine in your SharePoint 2016 has a Minrole assigned to it. That role is defined when you join a server to your farm. You can create a farm with the –ServerRoleOptional switch, but that just assigns the Minrole Custom to server. It still has a Minrole. You can see a machine’s Minrole in Central Admin. Browse to System Settings > Manage servers in this farm (/_admin/FarmServers.aspx) to see all the farm servers and their roles.

image

This also tells you if the machine is compliant with its defined role. To get this same information in with PowerShell, use Get-SPServer.

image

We can see from both pictures that the machine SP01 has the Minrole of SingleServerFam. When I installed this machine, it was going to be the only server in the farm, so that made sense. But what if I add more servers to the farm and I want to use the Minroles a little more intelligently? Fortunately it’s easy to change a machine’s role in the farm.

Changing Minrole

Much like there are two easy ways to discover Minrole, there are also two easy ways to change Minrole. We’ll take the easiest one first, Central Admin. Browse to System Settings > Convert server role in this farm (/_admin/RoleConversion.aspx). Choose your server’s new role from the dropdown and hit apply.

image

Since you can do this remotely, SharePoint creates a Timer Job to do the conversion. With Beta 2 of SharePoint 2016 I get this error message if my Farm account is not a local administrator:

image

It’s a bug, but it makes sense. The Central Admin app pool runs under the Farm account and that account doesn’t have permissions to make the changes. That can be fixed, and hopefully it will be by RTM.

You can also do this with PowerShell with the Set-SPServer –role command. It looks like this:

image

I’m running PowerShell as my Install account, which is a local admin, so everything should work. We can see the machine still has the SingleServerFarm role. It didn’t change when it failed in Central Admin. I ran the following line to change its role to Application:

Set-SPServer -Identity SP01 -Role Application

The command does not assume the local machine if no identity parameter is provided, so I had to add that. Also, if you can’t remember the roles, don’t worry. After you type –Role and hit space, you can hit the Tab key and PowerShell will cycle you through the acceptable values. There is a little bug there too. It offers up the role SingleServer, but throws this error if you try to assign it:

image

I’m sure they’ll tidy that up by RTM as well. Smile 

If we double-check Central Admin, we’ll see our server is now happily assuming its new role as an Application server.

image

Of course your best choice is to plan your SharePoint 2016 farm appropriately and not have to change a server’s role. But if you do need to, it’s a pretty simple operation.

tk

ShortURL: http://www.toddklindt.com/ChangeMinrole

Comments

Changing Role via PowerShell

Hey Todd, you can also change the server's min role by connecting it to the config database (Connect-SPConfigurationdatabase). It requires you to disconnect the server from the farm first though:

http://nikcharlebois.com/change-a-servers-minrole-in-sharepoint-2016-2/
 on 12/1/2015 12:42 PM

Re: How to Change Server’s Minrole in SharePoint 2016

I'm curious, wasn't minroles selected at install time? I thought, that with minroles not all bits are installed on each server, in order to reduce the time for patching. But then you wouldn't be able to change the role on thr fly...
 on 12/30/2015 10:57 AM

Min Role

Could you please help me with Min Role configuration which is new in SharePoint 2016. I am using AutoSPInstaller and i am unable to select same server for WFE & distributed cache server.

I am getting error "Each server must be assigned only one role!" and i think distributed cache service should be enabled in WFE server only.

Could you please help me.
 on 7/27/2016 5:41 AM

Re:Min Role:

You need to install November 2016 update that comes with Shared Role. You can then deploy MinRole for WFE and Distributed Cache on the same server.

https://technet.microsoft.com/en-us/library/mt743704(v=office.16).aspx

Thanks

Sam
 on 12/28/2016 10:53 AM

Unintended issue with minrole

I installed a SharePoint 2016 Farm using minroles at a client. One of the issues that cropped up is that in the Application/Search min role, the SP Foundation Web Application is installed. This throws all the third party solution licensing out of whack as they determine you have extra web front ends.

Thanks to this article, I first removed the Web Application, did an IISReset and then changed the minrole to custom.

 - Anil Ferris
 on 4/14/2017 9:08 AM

It is fixed in the SP2016 APRIL 2017 CU

Now we can able to change the role without any issue after installing the SP2016 April 2017 CU.
 on 4/28/2017 4:44 AM

It is fixed in the SP2016 APRIL 2017 CU

Now we can able to change the role without any issue after installing the SP2016 April 2017 CU.

-Vadivelu B
 on 4/28/2017 4:44 AM

SharePoint Foundation Web Application

why SP Foundation Web Application service running on Application servers. users/tenants are not supposed to redirect to app servers. it should only be the job of front-end nodes. is it a bug???
 on 8/3/2017 3:11 AM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Today's date *

Select a date from the calendar.
Please enter today's date so I know you are a real person

Twitter


Want a message when I reply to your comment? Put your Twitter handle here.

Attachments

 

 SysKit