Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPConfigWizard] Add possibility to temporarily dismount content databases during config wizard #1413

Open
ykuijs opened this issue Oct 28, 2022 · 0 comments
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@ykuijs
Copy link
Member

ykuijs commented Oct 28, 2022

Problem description

(Idea provided by Markku Partanen)

Would it be an idea to temporarily dismount content databases before running the configuration wizard and mounting them again afterwards.

This means that without any content databases the configuration wizard will complete faster. Also, when remounting the databases again, the upgrade will run in parallel instead of sequential by running the config wizard.

Some important considerations are:

  • This has to be optional, for example by adding a parameter in which you specify all databases that have to be dismounted.
  • This only has to be done on one server. Also make sure you run this server first, for example using a WaitFor resource. Has to be done by the person creating the DSC config.
  • Questions:
    • Can the mount database run in parallel with the config wizard on another server? Will this even happen, if you have implemented using WaitFor?
    • Are content databases accessible during mount/attach/upgrade? This must be tested?

Verbose logs

N/A

DSC configuration

SPConfigWizard RunConfigWizard
{
    IsSingleInstance     = "Yes"
    DismountDatabases    = $true
    PsDscRunAsCredential = $SetupAccount
}

or 

SPConfigWizard RunConfigWizard
{
    IsSingleInstance     = "Yes"
    DismountDatabases    = @("SPContent1", "SPContent2")
    PsDscRunAsCredential = $SetupAccount
}

Suggested solution

Potentially add possibility to dismount content databases before upgrade, to speed up upgrade process.

SharePoint version and build

All

Operating system the target node is running

All

PowerShell version and build the target node is running

All

SharePointDsc version

Dev
@ykuijs ykuijs added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

1 participant