Hi Question-asker,
To put a total stop to this your problem I succintly recommend these following steps:
1. Separate out the LUNs.This will ensure they do not have the same LUN id #.
2. /vol/lun001/lun001 & /vol/lun002/lun002 are the 2 LUNs under consideration. With this, i strongly recommend you take out the second LUN(/vol/lun002/lun002).
3. Use this command
a. To confirm that both LUNs are actually & unequivocally online, use the command:
cluster::> lun show -m
The output should show you the 2 LUNS(/vol/lun001/lun001 & /vol/lun002/lun002) and also indicate the igroup to which they are connected with.You output should look like this:
LUN path Mapped to LUN ID Protocol
-----------------------------------------------------------------------
/vol/lun001/lun001 name_dgrp1 0 iSCSI
/vol/lun002/lun002 name_dgrp1 0 iSCSI
NB: I put name_dgrp1 because I do not know the name of your igroup. It is is not contained in your given info.
4.If the igroup is same for both, then you should use the command below to offline the 2nd LUN:
cluster::> lun offline /vol/lun002/lun002
5.Next you should now proceed to create a brand new volume for the second LUN, with the command,
vol create lunNEW -s volume hosting-aggr-name size [g]
NB:Say you are creating a new LUN with the name lunNEW and you want to only make it directly contained in a volume & not in a qtree, with size 2g, to be created in an aggregate called A_SA_04. The complete command will be:
ssh phc-na-p005-s1 vol create lunNEW -s volume A_SA_04 2g
6.Afterwards, you progress the created volume to become a LUN with the command:
lun create -s 2g -t windows [ -o noreserve ] [ -e space_alloc ] /vol/lunNEW/lun0
7. Great you have now got your second LUN created in a brand new volume called lunNEW.
8.Finally map the LUN to your required igroup , i.e.
lun map [ -f ] /vol/lunNEW/lun0 <initiator_group> [ <lun_id> ]
AND THEN YOU CAN COMFORTABLY CHECK ON ANY LUN STATISTICS AT ANY TIME T USING YOUR COMMAN(the command you
statistics lun show -interval 5 -iterations 5 -vserver SVM01 -lun /vol/lunNEW/lun0
QED
NB:Should you still have any other problem, directly reach me at sammarch2016@gmail.com)