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 }
7-Mode snapshot创建
get-NaVol volnfs | New-NaSnapshot -SnapName $i