11)连接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
1
2
3
4
5
6
7
8
|
$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
1
2
|
$vols
=
get-ncvol
$vols
|where
{
$_
.Name
-ne
"volcifsroot"
-and
$_
.Name
-ne
"vol0"
}
|foreach
-object{dismount-ncvol -Name
$_
.Name -VserverContext cifssvr }
|
7-Mode snapshot创建
1
|
get-NaVol
volnfs |
New-NaSnapshot
-SnapName
$i
|
本文转自daniel8294 51CTO博客,原文链接:http://blog.51cto.com/acadia627/1929927
,如需转载请自行联系原作者