Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[NetApp] use powershell mount and umount Volume

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

1) connect the DataOntap Cmode controller

Connect-NCController 10.20.30.40 the IP address is the Cluster management address.

2) Mount existing volume

Mount-NcVol-Name nfsvol3-VserverContext cifssvr-JunctionPath / nfsvol3

3) Umount volume

Dismount-NcVol-Name nfsvol3-VserverContext cifssvr

Batch Mount Volume

$vols=get-ncvol$paths= ($vols | where {$_ .Name-ne "volcifsroot"-and $_ .Name-ne "vol0"}) .Name$fpaths=$paths | foreach {"/" + $_} for ($itemic exchange I-lt $paths.Count;$i++) {mount-ncvol-Name$ paths [$I]-VserverContext cifssvr-JunctionPath $fpaths [$I]}

Batch 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 creation

Get-NaVol volnfs | New-NaSnapshot-SnapName $I

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report