如何在同一文件管理器中将 vFiler 从一个卷移到另一个卷?
适用场景
- 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>
此处名为的vfiler vf1
驻留在路径上 /vol/org/qt
。
要将此vfiler vf1
移至其他卷、请执行以下步骤:
qtree snapmirror /vol/org/qt /vol/new/qt
注意: 目标qtree名称应与原始名称相同。稍后、我们会将目标卷名称也更改为原始卷名称。
Vfiler stop vf1
vfiler destroy vf1
vol rename org old
vol rename new org
vfiler create vf1 -r /vol/org/qt
。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
。
现在、按如下所示重新创建要从新创建的卷运行的vfiler单元Vf1:
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 assigner、以便在重新创建vfiler时将这些资源从托管vfiler0移动到此vfiler。
追加信息
不适用