ONTAP Discussions
ONTAP Discussions
I am creating a lun on DR filer, and getting the message as titled. I understand this is because the DR volume is in restric mode,My question is following:
To create a LUN, can I "vol online vol_name", and then after done with creating the lun, do "vol restric vol_name"? Is this how people would do to create a LUN under a restricted DR volume?
Thanks for your inputs
Solved! See The Solution
I think you've got yourself a bit confused.
If you're using snapmirror (volume or qtree) you don't need the lun on the target volume, the initial snapmirror does that for you.
snapmirror also copies the entire lun (typically the whole volume) block for block on the initial set up and then any changed blocks on the schedule you set.
In a DR situ you need to mount that lun on the DR server, and will need to have set up the equivalent igroups etc on the DR filer.
What do you call "DR volume"? I have never seen such term in NetApp documentation.
I hope you are talking in the terms of volume snapmirror.
if so, once you break the relationship of snapmirror it will make the Volume online and luns will be made available to map.
Once you break the snapmirror, the volume will be online automatically and LUN can be created in this Volume. But if you resume the snapmirror again, the DR volume will again be a mirror image of the source volume. I hope I am making my point clear.
understand all your comments. However, I have one more question.
let's say the volume on primary site is vol1, and dr site is dr_vol1, I created /vol1/lun1, break up the snapmirror on DR site, and then create /dr_vol1/dr_lun1.
Now, my second thought is: how lun1 data is sync'ed to dr_lun1? I understand the entire vol1 including lun1 will be updated to dr_vol1, but how metadata about lun1 is recognized by dr_lun1? Hope you understand what I am saying here.
I think you've got yourself a bit confused.
If you're using snapmirror (volume or qtree) you don't need the lun on the target volume, the initial snapmirror does that for you.
snapmirror also copies the entire lun (typically the whole volume) block for block on the initial set up and then any changed blocks on the schedule you set.
In a DR situ you need to mount that lun on the DR server, and will need to have set up the equivalent igroups etc on the DR filer.
Hi nigelg1965,
I admit that I am not 100% understanding you.
Do I then need to create the lun on DR site, since data will be replicated anyway in volume basis?
If I need to create the lun on DR site, how does the filer know dr_lun1 will be matching with lun1? it seems to be dr_vol1 has no knowledge on the relationship between dr_lun1 and lun1.
You are absolutely right , that I've got myself a bit confused...
Hi
Once you create the snapmirror relationship and it completes the initial replication, the LUN will be there. What won't be there are the igroup settings.
Correct. You don't have to create the lun in DR again, what you need to do is may be create the Igroup and Map the Lun. or if you have already I group is there, map the lun to correct Igroup.
Okay. So, should I remove the dr_lun1 from DR site then? If I remove it, the lun with the same name as the one on primary site would show up on my DR filer?
Yes (adjust volume names of course)
I used the command "lun destroy /vol/dr_vol1", it gives me the following error, and get the same if I run "lun online /vol/dr_vol1", should I then break the volume first in order to destroy the?
lun online: /vol/dr_vol1 : Read-only file system
need few more information
1. Name of the lun that you created on your source filer (specify fullpath for the lun)
2. How did you created the LUN in your DR filer (Did you break the relationship before creating LUN)
3. Name of the lun that you created on your DR filer (Complete path for the LUN)
after reading your questions, I recognized that I did give names of vol/lun correct here in this post. the following is my answers:
1. on the source filer, lun name: /vol/vol1/lun1
2. I did break the volume first on dr site before created the lun, the lun name i used is the same as on the primary
3. on dr, the same name: /vol/vol1/lun1
as i learnt, i don't need to create the lun on DR site, so, now, i want to remove it, but, it won't allow me to, and getting the message:
lun online: /vol/dr_vol1 : Read-only file system
Online the volume and destroy the LUN you want to.Then revert to restrict mode.
Hello netappmagic,
Is your issue resolved? were you able to delete the LUN after breaking snapmirror relationship?
Thanks for checking. I just did it, quiesce and break the snapmirror, and destroy the lun, then resync the snapmirror. the lun has been snapmirrored to DR. Looks all good.
the conclusion is that I have to break the mirror before I can destroy the lun. online volume won't do it. volume has already been online but read-only.
Thanks to all for your help