标签:netapp powershell mount-ncvol dismount-ncvol
1)连接DataOntap Cmode控制器
Connect-NCController 10.20.30.40 该IP地址是Cluster 管理地址。
2)Mount 现有volume
Mount-NcVol -Name nfsvol3 -VserverContext cifssvr -JunctionPath /nfsvol3
3)Umount volume
Dismount-NcVol -Name nfsvol3 -VserverContext cifssvr
批量Mount Volume
$vols=get-ncvol $paths=($vols|where {$_.Name -ne "volcifsroot" -and $_.Name -ne "vol0"}).Name $fpaths=$paths | foreach{ "/"+ $_} for($i=0;$i -lt $paths.Count;$i++) { mount-ncvol -Name $paths[$i] -VserverContext cifssvr -JunctionPath $fpaths[$i] }
批量Umount Volume
$vols=get-ncvol $vols|where {$_.Name -ne "volcifsroot" -and $_.Name -ne "vol0"} |foreach-object{dismount-ncvol -Name $_.Name -VserverContext cifssvr }
【NetApp】使用powershell mount和umount Volume
标签:netapp powershell mount-ncvol dismount-ncvol
原文地址:http://acadia627.blog.51cto.com/3992605/1929927