We had professional services configure our Celerra and they allocated too much of our free space to the NAS. How do I go about reconfiguring the allotted space and returning it so that it can be assigned to new FC hosts via Navisphere? I am assuming I can't just remove a LUN from the storage group since the data is probably sliced across the LUNS. I already have some data located on CIFS and iSCSI but I can easily move that to tempoary storage while I do the reconfig.
"How to safely remove CLARiiON LUNs from a Celerra - A detailed review"
ID:
emc241502
Usage:
5
Date Created:
05/20/2010
Last Modified:
08/12/2010
STATUS:
Approved
Audience:
Customer
Knowledgebase Solution
Question:
Safely removing storage from a Celerra allocated from a CLARiiON backend
Environment:
Product: Celerra
Environment:
Product: CLARiiON
Environment:
Product: Celerra attached to a CLARiiON backend
Environment:
EMC SW: NAS Code 5.5
Environment:
EMC SW: NAS Code 5.6
Problem:
Error 3020: d27 : item is currently in use, first delete volume(s)
Change:
Reallocating LUN
Change:
Removing storage from CLARiiON
Change:
Running nas_disk -d
Fix:
Removal of LUNs from the Celerra Storage Group on an integrated system requires proper clean up on the Celerra. Improper removal of storage can result in an inability to scan in new storage and, in some cases, DataMover panic.
WARNING! If this procedure is not properly followed there is a possibility of data loss. Contact EMC Customer Service before proceeding if there are any questions.
This procedure only applies to Celerra volumes attached to CLARiiON arrays!
Prerequisites:
Prior to removing or reassigning disks owned by Celerra, all exports and mounts on file systems must be permanently unexported and unmounted.
Any file systems, metavolumes, stripe volumes, and slices built on the disks that are going to be removed must also be deleted using CLI commands. The next steps show you how to confirm this.
The following are a number of scenarios to assist you properly remove storage.
Start by looking at the following nas_disk-list output:
$ nas_disk -l id inuse sizeMB storageID-devID type name servers 1 y 11263 APM00070300475-0000 CLSTD root_disk 1,2,3,4 2 y 11263 APM00070300475-0001 CLSTD root_ldisk 1,2,3,4 3 y 2047 APM00070300475-0002 CLSTD d3 1,2,3,4 4 y 2047 APM00070300475-0003 CLSTD d4 1,2,3,4 5 y 2047 APM00070300475-0004 CLSTD d5 1,2,3,4 6 y 2047 APM00070300475-0005 CLSTD d6 1,2,3,4 26 y 190833 APM00070300475-0010 CLSTD d26 1,2,3,4 27 y 205281 APM00070300475-001E CLSTD d27 1,2,3,4 28 n 10239 APM00070300475-0032 CLSTD d28 1,2,3,4 29 n 674033 APM00070300475-0033 CLSTD d29 1,2,3,4 30 y 190833 APM00070300475-0011 CLSTD d30 1,2,3,4 31 n 205281 APM00070300475-001F CLSTD d31 1,2,3,4
If LUNs have file systems or other Celerra features built on them, they will show as "y" in the "inuse" column. You cannot safely remove them from a Celerra system at this point. You must first delete all Celerra configuration options from this LUN before it will show up as inuse=n. This includes deleting the file systems, manual volumes and manual pools this LUN is allocated with.
Note: If you use pre-defined AVM storage pools, the d# will show up as inuse=n as soon as you delete the file system.
Q: How do you identify what d# is a specific LUN?
A: The fifth column in the nas_disk -list is a dash with a four digit number (-0008 for example). This number is a hexadecimal representation of the CLARiiON LUN (0008 = ALU 8, 0010 = ALU 16).
Q: How do I know what LUNs a particular file system uses?
A: Run ls -la /nas/tools. Depending on what code level you are at, you will see either .whereisfs (with a dot) or whereisfs (without a dot). Running this script with the -all setting shows you exactly where your storage is:
"This pool is in_use = False" means that you can safely delete it with nas_pool -delete. If it was in_use = True, you would need to continue to investigate the particular clients and members that would be listed in this output.
Now that the pool is in_use = False, delete it:
$ nas_pool -d perf_dedicated_pool id = 24 name = perf_dedicated_pool description = acl = 0 in_use = False clients = members = default_slice_flag = True is_user_defined = True
$ nas_disk -l id inuse sizeMB storageID-devID type name servers 1 y 11263 APM00070300475-0000 CLSTD root_disk 1,2,3,4 2 y 11263 APM00070300475-0001 CLSTD root_ldisk 1,2,3,4 3 y 2047 APM00070300475-0002 CLSTD d3 1,2,3,4 4 y 2047 APM00070300475-0003 CLSTD d4 1,2,3,4 5 y 2047 APM00070300475-0004 CLSTD d5 1,2,3,4 6 y 2047 APM00070300475-0005 CLSTD d6 1,2,3,4 26 y 190833 APM00070300475-0010 CLSTD d26 1,2,3,4 27 y 205281 APM00070300475-001E CLSTD d27 1,2,3,4 28 n 10239 APM00070300475-0032 CLSTD d28 1,2,3,4 29 n 674033 APM00070300475-0033 CLSTD d29 1,2,3,4 30 n 190833 APM00070300475-0011 CLSTD d30 1,2,3,4 << Now inuse=n 31 n 205281 APM00070300475-001F CLSTD d31 1,2,3,4
If the LUN did not release (inuse=y), then there could still be checkpoints or other file systems on the storage (run .whereisfs again) or you need to delete a custom volume that was also built on that d#. Grep for the file system name like below (in this example, you are looking to release d26):
$ nas_volume -l | egrep "d26|inuse" id inuse type acl name cltype clid 101 y 4 0 d26 1 112
Now investigate why inuse=y for volume 112:
$ nas_volume -i v112 id = 112 name = v112 acl = 0 in_use = True type = meta volume_set = d26 disks = d26 clnt_filesys= fs02
Another file system is still built on this LUN. Permanently unmount and delete the file system. Then delete any manual storage pools or volumes on the disk as previously discussed.
Your nas_disk -list should now show as inuse=n:
$ nas_disk -l id inuse sizeMB storageID-devID type name servers 1 y 11263 APM00070300475-0000 CLSTD root_disk 1,2,3,4 2 y 11263 APM00070300475-0001 CLSTD root_ldisk 1,2,3,4 3 y 2047 APM00070300475-0002 CLSTD d3 1,2,3,4 4 y 2047 APM00070300475-0003 CLSTD d4 1,2,3,4 5 y 2047 APM00070300475-0004 CLSTD d5 1,2,3,4 6 y 2047 APM00070300475-0005 CLSTD d6 1,2,3,4 26 n 190833 APM00070300475-0010 CLSTD d26 1,2,3,4 27 y 205281 APM00070300475-001E CLSTD d27 1,2,3,4 28 n 10239 APM00070300475-0032 CLSTD d28 1,2,3,4 29 n 674033 APM00070300475-0033 CLSTD d29 1,2,3,4 30 n 190833 APM00070300475-0011 CLSTD d30 1,2,3,4 31 n 205281 APM00070300475-001F CLSTD d31 1,2,3,4
You can now safely delete the d# from the Celerra.
Use the nas_disk -d d# -perm to remove the diskmark from the LUN and clear any record of this LUN from the Celerra.
Note: -perm only works if the LUN is still bound and in the CLARiiON Storage Group.
Once a d# is marked as deleted from the Celerra and no longer shows up in a nas_disk -list, you can safely remove it from the CLARiiON Storage Group without the chance of API error or panic.
After the LUNs are removed from the Storage Group, verify LUN ownership with nas_storage -c -a. If no errors show, run server_devconfig ALL -create -scsi -all to update the Data Movers.
Thanks Dynamox.....I ran the util which presented me with the results of what was in use. Since I have file systems configured already (but with no data on them, except 1) I think it may be best if I move that little bit of data from the Celerra luns and reconfigure it from scratch.
Once I move the data, I am assuming I can delete the file systems and then go remove all of the LUNs from the Celerra storage group.....except for the LUNs where the NAS OS reside, correct?
correct, delete file systems, re-run that script again to make sure there is nothing else using those devices (or run nas_disk -list to make sure there is an N in "inuse" column) and then you can run this command which will delete the disk from Celerra perspective, remove it from Clariion storage group and unbind the LUN at the same time. Please be very very careful
dynamox
11 Legend
•
20419 Posts
•
87439 Points
1867
0
Posted November 2nd, 2010 13:00
Run this tool to identify what’s using what
/nas/tools/.whereisfs