Add-DPMDiskStorage
Adds a specified disk to the storage pool on a DPM server.
Add-DPMDiskStorage
[-DPMDisk] <Disk[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-DPMDiskStorage
[-Volumes] <Volume[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-DPMDiskStorage
[-Volume] <Volume>
[[-Subdirectory] <String>]
[[-FriendlyName] <String>]
[[-DatasourceType] <VolumeTag[]>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The Add-DPMDiskStorage cmdlet adds a disk or a volume to the storage pool on a System Center - Data Protection Manager (DPM) server. A storage pool on a DPM server consists of a set of disks where the server stores replicas, shadow copies, and transfer logs for protected data sources and a set of Resilient File System (ReFS) volumes in which the server stores replica virtual hard disks (VHDs).
To get a list of all disks on a DPM server, use the Get-DPMDiskStorage cmdlet. To get a list of all volumes on a DPM server, use the Get-DPMDiskStorage cmdlet with the -All and -Volumes parameters specified.
PS C:\>$disks = Get-DPMDiskStorage -DPMServerName "TestingServer"
PS C:\> Add-DPMDiskStorage -DPMDisk $disks
The first command uses Get-DPMDiskStorage to get a list of disks attached to the DPM server named TestingServer and stores the list in the $disks variable.
PS C:\>$volumes = Get-DPMDiskStorage -DPMServerName "TestingServer" -Volumes -All
PS C:\> Add-DPMDiskStorage -Volumes $volumes
The first command uses the Get-DPMDiskStorage cmdlet to get a list of volumes available in the DPM server named TestingServer. It stores them in the $volumes variable.
The second command adds all volumes in $volumes to the DPM storage pool.
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an array of data source types that can be backed up on this disk storage. The data source type list can be any combination of the following values:
- FileSystem
- Client
- SQL
- SharePoint
- Exchange
- SystemProtection
- HyperV
- VMware
- Other
- All
Type: | VolumeTag[] |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an array of disks that this cmdlet adds to the DPM storage pool.
Type: | Disk[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a friendly name for the volume that this cmdlet adds to the DPM storage pool.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an empty directory inside the volume that this cmdlet adds to the DPM storage pool. The subdirectory cannot be updated after the volume is added to the DPM storage pool.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies a volume to be added to a DPM storage pool. If the Subdirectory parameter is not specified, DPM formats the volume with the ReFS 3.0 file system before adding it to storage pool. If the Subdirectory parameter is specified, the specified volume must be a ReFS 3.0 volume. In that case, DPM does not format the volume and only uses the subdirectory to store backup data.
Type: | Volume |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an array of volumes to be added to the DPM storage pool. DPM formats each of these volumes with the ReFS 3.0 file system before adding them to the storage pool.
Type: | Volume[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |