dsccommunity / dsccommunity/SqlServerDsc

SqlSetup: Installing Multiple Instances on same computer from same bits

Open
#492 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
PowerShell
Stars
385
Forks
224
PR merge metrics
No merged PRs in 30d

Description

Is there a way to not have to copy a new set of the SQL bits for each instance of SQL being installed?

The process for installing an instance of SQL involves RoboCopying the SQL bits to a temp directory. I would like to be able to reuse that initial copy of the SQL bits over and over.

Windows OS: Windows Server 2012 R2
SQL Version: SQL 2012
PowerShell Version: 5.0.10514.6
Version of DSC module: 6.0.0.0 and dev

    xSqlServerSetup installSqlServer
    {
        DependsOn=@('[xDisk]Drive1','[xDisk]Drive2')
        InstanceName = $Node.InstanceName
        SourcePath  = $Node.SourcePath
        SourceCredential = $Node.ServeShareCredentials 
        Features = $Node.Features
        SetupCredential = $Node.SetupCredential
        SAPwd = $Node.SACred
        SQLSysAdminAccounts = $Node.AdminAccount
        SecurityMode = "SQL"
        InstanceDir  = $Node.InstanceDriveLetter+":\MSSQL"
        InstallSQLDataDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\MSSQL"
        SQLUserDBDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\Data"
        SQLUserDBLogDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\Data"
        SQLTempDBDir  = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\TempDB"
        SQLTempDBLogDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\TempDB"
        SQLBackupDir = $Node.BackupDriveLetter+":\Backup"
        ASDataDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\OLAP\Data"
        ASLogDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\OLAP\Data"
        ASBackupDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\OLAP\Backup"
        ASTempDir = $Node.InstanceDriveLetter+":\"+$Node.InstanceName+"\OLAP\Temp"
        ASConfigDir = $Node.InstanceDriveLetter+":\"+$Node.InstanceName+"\OLAP\Config"
    }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the xSqlServerSetup resource and trace how SourcePath and the SQL bits are handled during installation. Confirm whether repeated instances can reuse the initial copied bits, and document or test the expected behavior for multiple SQL Server instances on the same computer.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, sql
Domain
databases, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.