Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Start-NaDiskReplace


NAME
Start-NaDiskReplace

SYNOPSIS
Initiate replacing a file system disk with an appropriate spare disk.

SYNTAX
Start-NaDiskReplace [-Name] <String> [-Replacement] <String> [-Force] [-Cont
roller <NaController>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Initiate replacing a file system disk with an appropriate spare disk. Uses R
apid RAID Recovery to copy data from the source file system disk to the dest
ination spare disk. Roles of disks are reversed at the end of that process.
The spare disk will replace the file system disk in the RAID group and the
file system disk will become a spare. This process can be observed by poll
ing "Get-NaDisk" for this disk and tracking values of elements copy-destinat
ion and copy-percent.


PARAMETERS
-Name <String>
Name of the file system disk to replace.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Replacement <String>
Name of the spare disk to use as a replacement.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Force
Allow Replacement to come from the opposite spare pool. Also allow Repla
cement not matching rotational speed of majority of disks in the aggrega
te.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
NetApp.Ontapi.Filer.Disk.DiskDetailInfo


NOTES


Category: disk
API: disk-replace-start

-------------- Example 1 --------------

C:\PS>Start-NaDiskReplace 0a.18 0a.22


Replace disk '0a.18' with spare disk '0a.22'.


Aggregate : aggr0
Bay : 2
BlocksRead : 1439024664
BlocksWritten : 146961112
BrokenDetails :
BytesPerSector : 520
ChecksumCompatibility : zoned/block
CopyDestination :
CopyPercent :
DiskModel : X274_S10K7146F10
DiskType : FCAL
DiskUid : 20000018:62845FD7:00000000:00000000:0000000
0:00000000:00000000:00000000:00000000:00000000
FirmwareRevision : NA07
GrownDefectListCount : 0
HostAdapter : 0a
Id : 1769473
IsDynamicallyQualified : False
IsOffline :
IsPrefailed : False
IsReplacing : True
IsZeroed :
Name : 0a.18
PhysicalBlocks : 280790184
PhysicalSpace : 143764574208
Plex : plex0
Pool : Pool0
Port : A
PortName : FC:A
PoweronHours : 23085
PoweronHoursTS : 961.21:00:00
RaidGroup : rg0
RaidState : present
RaidType : data
RawDiskSectors : 280790184
ReconstructionPercent :
Rpm : 10000
ScrubCount : 37
ScrubLastDone : 57036
ScrubLastDoneTS : 39.14:36:00
SecondaryName :
SecondaryPort :
SerialNumber : 3KS6689P00007704NBP8
Shelf : 1
ShmTimeInterval : 3427265
ShmTimeIntervalTS : 39.16:01:05
UsedBlocks : 278528000
UsedSpace : 142606336000
VSeriesDetailInfo :
VendorId : NETAPP
Volume :
ZeroingPercent :
CopyPercentSpecified : False
IsOfflineSpecified : False
IsPrefailedSpecified : True
IsReplacingSpecified : True
IsZeroedSpecified : False
PoweronHoursSpecified : True
ReconstructionPercentSpecified : False
RpmSpecified : True
ZeroingPercentSpecified : False



RELATED LINKS
Stop-NaDiskReplace







 Data ONTAP® PowerShell Toolkit