Pre-requisite:
Required checklist info to implement changes
To move
vfiler
·
Filer
name
·
Aggregate
name
·
Make sure to setup DR replications after moving vfiler to new filer?
Start replicating volumes:
(Example: we are moving labvfilerfrom lafiler1 to labfiler3. Here labfiler1 DR is labdrfiler1 and labfiler3 DR is labdrfiler3)
1. ssh
to labfiler1 to get volume info for labvfiler
labfiler1> vfiler status -r labvfiler
labvfiler running
ipspace: vfilers1
IP address: 10.10.1.2 [vif1-110]
Path: /vol/labvfiler [/etc]
Path: /vol/labvfiler_vol1
Path: /vol/labvfiler_vol2
Path: /vol/labvfiler_vol3
Path: /vol/labvfiler_vol4
UUID: 2a0000d6-4594-1ew1-9e2f-007891w2fc3
labfiler1> vol size labvfiler
Warning: Volume 'labvfiler' has fs_size_fixed option set. The file system
size may differ from the volume size.
See 'vol status -b' for more detail.
vol size: Flexible volume 'labvfiler' has size 5g.
labfiler1> vol size labvfiler_vol1
vol size: Flexible volume 'labvfiler_vol1' has size 2202g.
labfiler1> vol size labvfiler_vol2
vol size: Flexible volume 'labvfiler_vol2' has size 1975g.
labfiler1> vol size labvfiler_vol3
vol size: Flexible volume 'labvfiler_vol3' has size 1714g.
labfiler1> vol size labvfiler_vol4
vol size: Flexible volume 'labvfiler_vol4' has size 3319g.
2. Once you collect volume info, ssh to labfiler3 and check on which aggregate has enough space
3. Create NEW volumes on labfiler3 and start
replicating
Ø
vol create
volumename –s none aggrname XXXg
Ø
vol
restrict volumename
Ø
snapmirror
initialize –S source:volumename destination:volumename
labfiler3> vol create labvfiler -s none aggr0 5g
Creation of volume 'labvfiler' with size 5g on containing aggregate
'aggr0' has completed.
labfiler3> vol create labvfiler_vol1 -s none aggr0 2202g
Creation of volume 'labvfiler_vol1' with size 2202g on containing aggregate
'aggr0' has completed.
labfiler3> vol create labvfiler_vol2 -s none aggr0 1975g
Creation of volume 'labvfiler_vol2' with size 1975g on containing aggregate
'aggr0' has completed.
labfiler3> vol create labvfiler_vol3 -s none aggr0 1714g
Creation of volume 'labvfiler_vol3' with size 1714g on containing aggregate
'aggr0' has completed.
labfiler3> vol create labvfiler_vol4 -s none aggr0 3319g
Creation of volume 'labvfiler_vol4' with size 3319g on containing aggregate
labfiler3> vol restrict labvfiler
Volume 'labvfiler' is now restricted.
labfiler3> vol restrict labvfiler_vol1
Volume 'labvfiler_vol1' is now restricted.
labfiler3> vol restrict labvfiler_vol2
Volume 'labvfiler_vol2' is now restricted.
labfiler3> vol restrict labvfiler_vol3
Volume 'labvfiler_vol3' is now restricted.
labfiler3> vol restrict labvfiler_vol4
Volume 'labvfiler_vol4' is now restricted.
labfiler3> snapmirror initialize -S labfiler1.rr.snd.com:labvfiler labfiler3:labvfiler
Transfer started.
Monitor progress with 'snapmirror status' or the snapmirror log.
labfiler3> snapmirror initialize -S labfiler1.rr.snd.com:labvfiler_vol1 labfiler3:labvfiler_vol1
Transfer started.
Monitor progress with 'snapmirror status' or the snapmirror log.
labfiler3> snapmirror initialize -S labfiler1.rr.snd.com:labvfiler_vol2 labfiler3:labvfiler_vol2
Transfer started.
Monitor progress with 'snapmirror status' or the snapmirror log.
labfiler3> snapmirror initialize -S labfiler1.rr.snd.com:labvfiler_vol3 labfiler3:labvfiler_vol3
Transfer started.
Monitor progress with 'snapmirror status' or the snapmirror log.
labfiler3> snapmirror initialize -S labfiler1.rr.snd.com:labvfiler_vol4 labfiler3:labvfiler_vol4
Transfer started.
Monitor progress with 'snapmirror status' or the snapmirror log.
4. Update snapmirror.conf with scheduling
depends on cutover/move date
5. As labfiler3 d2d is labdrfiler3, we have
to replicate all volume from labfiler3 to labdrfiler3.
Create same volumes
on labdrfiler3 and start snapmirror initialize once labfiler1 to labfiler3 base transfer completes. Here we can also start copying from labdrfiler1 to
labdrfiler3
ON DAY OF CUTOVER
********************************
** ON labfiler1 ***************
*********************************
vfiler stop labvfiler
_______________________________
********************************
** ON labfiler3 ***************
*********************************
snapmirror update -S labfiler1.rr.snd.com:labvfiler labfiler3:labvfiler
snapmirror update -S labfiler1.rr.snd.com:labvfiler_vol1 labfiler3:labvfiler_vol1
snapmirror update -S labfiler1.rr.snd.com:labvfiler_vol2 labfiler3:labvfiler_vol2
snapmirror update -S labfiler1.rr.snd.com:labvfiler_vol3 labfiler3:labvfiler_vol3
snapmirror update -S labfiler1.rr.snd.com:labvfiler_vol4 labfiler3:labvfiler_vol4
snapmirror status labfiler3:labvfiler
snapmirror status labfiler3:labvfiler_vol1
snapmirror status labfiler3:labvfiler_vol2
snapmirror status labfiler3:labvfiler_vol3
snapmirror status labfiler3:labvfiler_vol4
snapmirror quiesce labfiler3:labvfiler
snapmirror quiesce labfiler3:labvfiler_vol1
snapmirror quiesce labfiler3:labvfiler_vol2
snapmirror quiesce labfiler3:labvfiler_vol3
snapmirror quiesce labfiler3:labvfiler_vol4
snapmirror break labfiler3:labvfiler
snapmirror break labfiler3:labvfiler_vol1
snapmirror break labfiler3:labvfiler_vol2
snapmirror break labfiler3:labvfiler_vol3
snapmirror break labfiler3:labvfiler_vol4
vol options labvfiler_vol1 fs_size_fixed off
vol options labvfiler_vol2 fs_size_fixed off
vol options labvfiler_vol3 fs_size_fixed off
vol option labvfiler_vol4 fs_size_fixed off
vfiler create labvfiler -r /vol/labvfiler
ifconfig vif1-110 alias 10.10.1.2 netmask 255.255.255.0
Updated below entry in \etc\rc
ifconfig vif1-110 alias 10.10.1.2 netmask 255.255.255.0
vfiler run labvfiler cifs shares
vfiler run labvfiler exportfs
_______________________________
********************************
** ON labfiler1 ***************
********************************
vol offline labvfiler
vol offline labvfiler_vol1
vol offline labvfiler_vol2
vol offline labvfiler_vol3
vol offline labvfiler_vol4
vol status labvfiler
vol status labvfiler_vol1
vol status labvfiler_vol2
vol status labvfiler_vol3
vol status labvfiler_vol4
********************************
** ON labdrfiler1 ***************
********************************
vol offline labvfiler
vol offline labvfiler_vol1
vol offline labvfiler_vol2
vol offline labvfiler_vol3
vol offline labvfiler_vol4
After 1 days you can destroy volumes on OLD filer once you have no issues with vfiler
********************************
** ON labfiler1 & labdrfiler1 **
********************************
After confirming with NAS engineering team and L3's, proceed with vol destroy
vol destroy labvfiler
y
vol destroy labvfiler_vol1
y
vol destroy labvfiler_vol11
y
vol destroy labvfiler_vol2
y
vol destroy labvfiler_vol3
y
vol destroy labvfiler_vol4
y
Please leave your comments if you have any questions.
Hope this procedure helps many.
Thanks
SANNASDAS