跳转到主内容

如何在同一文件管理器中将 vFiler 从一个卷移到另一个卷?

Views:
19
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
core
Last Updated:

适用于

  • MultiStore/vFiler
  • Data ONTAP 7 及更早版本

解答

您可以使用 SnapMirror (卷 SnapMirror® ( VSM )或 qtree SnapMirror ( QSM )、 NDMPCopy 将 vFiler 单元从源移动到目标位置、文件®管理器中的文件管理器如下所示:

原始 vFiler 配置如下:

fas3020cl1> vfiler status -r

vf1 running
ipspace: default-ipspace
IP address: 10.61.84.32 [unconfigured]
Path: /vol/org/qt [/etc]
UUID: 908bd298-0d18-11de-9592-00a09809694e
fas3020cl1>

此处命名的 vFilervf1 位于路径/vol/org/qt上。

vf1要将此 vFiler 移至其他卷、请执行以下步骤:

  1. qtree snapmirror /vol/org/qt /vol/new/qt

    注:目标 qtree 名称应与原始名称相同。稍后我们还会更改目标卷名称作为原始卷名称。

  2. Vfiler stop vf1
  3. vfiler destroy vf1
  4. vol rename org old
  5. vol rename new org
  6. vfiler create vf1 -r /vol/org/qt
  7. vfiler run vf1 setup

例如:

fas3020cl1> vfiler status -r
vfiler0 running
ipspace: default-ipspace
IP address: 10.61.84.30 [e0a]
Path: / [/etc]
UUID: 00000000-0000-0000-0000-000000000000

vf1 running
ipspace: default-ipspace
IP address: 10.61.84.32 [unconfigured]
Path: /vol/org/qt [/etc]
UUID: 908bd298-0d18-11de-9592-00a09809694e
fas3020cl1>

fas3020cl1> vol create new aggr0 1g

fas3020cl1> snapmirror initialize -S /vol/org/qt /vol/new/qt <<< Make sure the destination qtree name is same as source.

fas3020cl1> snapmirror quiesce /vol/new/qt

fas3020cl1> snapmirror break /vol/new/qt

fas3020cl1> vfiler stop vf1 <<< This step stops the vfiler running on original volume/qtree

fas3020cl1> vfiler destroy vf1 <<< This step destroys the vfiler running on original volume/qtree

fas3020cl1> vol rename org old <<< Change the original volume to something else.

fas3020cl1> vol rename new org <<< Change the new volume to vfilers original volume name.

现在重新创建 vf1 vFiler 单元以便从新创建的卷运行,如下所示:

fas3020cl1> vfiler create vf1 -r /vol/org/qt
Sun Mar 8 02:54:45 GMT [fas3020cl1: cmds.vfiler.info:notice]: vFiler unit vf1 restored.
vf1 running
ipspace: default-ipspace
IP address: 10.61.84.32 [unconfigured]
Path: /vol/org/qt [/etc]
UUID: 908bd298-0d18-11de-9592-00a09809694e
Protocols allowed: 7
Allowed: proto=rsh
Allowed: proto=ssh
Allowed: proto=nfs
Allowed: proto=cifs
Allowed: proto=iscsi
Allowed: proto=ftp
Allowed: proto=http
Protocols disallowed: 0
The etc configuration directory for vfiler "vf1" is /vol/org/qt/etc.
The IP addresses of vfiler "vf1" are still unconfigured.
To use these addresses, you must configure them using the
setup command. You can also manually configure addresses
with the ifconfig command and make those settings
persistent by adding the ifconfig command lines to /etc/rc.
fas3020cl1> Sun Mar 8 02:54:45 GMT [fas3020cl1: cmds.vfiler.info:notice]: vFiler unit vf1 initialized.

fas3020cl1>

:大多数 vFiler 配置将有多个卷或 qtree 路径作为其资源。在这种情况下,应执行 vFiler 分配、以便在重新创建 vFiler 时将这些资源从托管 vfiler0 移至此 vFiler 。

其他信息

不适用

CUSTOMER EXCLUSIVE CONTENT

Registered NetApp customers get unlimited access to our dynamic Knowledge Base.

New authoritative content is published and updated each day by our team of experts.

Current Customer or Partner?

Sign In for unlimited access

New to NetApp?

Learn more about our award-winning Support