Sunday, April 27, 2014

Storage Reclaim ( Celerra & VMAX ) scripts

Celerra:

delete_share document contains all the share names that needs to be removed.  Do all verification carefully before doing reclaims.


1) Verify if there are any active connections to Celerra from client
     Server_netstat server_2
     Look after cifs and nfs connections
     Make sure associate connections will be cleared before reclaim starts

2) Delete exports
    for i in `cat delete_share`; do echo $i; server_export server_2 -unexport -perm $i; done

3) Remove replications if any exists
    nas_replicate -list
    nas_replicate -delete replication_name -mode both/source/destination

4) Unmount file systems
     for i in `cat delete_share`; do echo $i; server_umount server_2 -perm /$i

5) Delete mount points
    for i in `cat delete_mountpoint`; do echo $i; server_mountpoint server_2 -delete /$i; done

6) Delete File systems
    for i in `cat delete_fs`; do echo $i; nas_fs -delete $i

7) Delete Luns from VG8
    for i in `cat delete_luns`; do echo $i; nas_disk -delete device_name -perm
    ** make sure device status in use to false **
    nas_disk -list



1) Delete all filesystems used by VDM
2) Remove VDM
3) Remove file systems not associated with a VDM
4) nas_disk -d to remove all d# disks other than the control luna
5) remove LUNs from storage group of symm channel


VMAX

Reclaiming Storage - VMAX

1. Get the list of thin devices bound in the NAS pool:
symcfg -sid xx show -pool poolname  -thin -detail -gb |grep tdev

2. Get the list of FA ports that these thin devices are mapped to
for i in `cat devs`; do symdev -sid XX show $i |grep FA; done
Validate the mapping info gathered from the above step
symcfg lis -dir XX -p X -address -avail

3. Write disable the devices
for i in `cat devs`; do symdev write_disable $i -celerra -sid XX -nop; done 
Check for no errors on command exit.

4. Unmap the thin devices from all the directors
for i in `cat devs`; do symconfigure -sid XX -cmd "unmap dev $i from dir all:all emulation=CELERRA_FBA;" commit -nop; done 
Check for no errors on command exit.

5. Validate that the unmapping is successfull.
for i in `cat devs`; do symdev show $i -sid XX |grep FA; done
Check for N/A listed for FA on the command exit


6. Unbind the thin devices from the thin pool
for i in `cat devs`; do symconfigure -sid 47 -cmd "unbind tdev $i from pool NAS-AR-R62;" commit -nop; done
Check for no errors on command exit.


7. Validate that the unbinding is successfull.
for i in `cat devs`; do symdev show $i -sid XX |grep Pool; done
Check for N/A listed for Pool on the command exit


8. Get the list of data devices in the NAS pool:
symcfg -sid xx show -pool poolname -thin -detail -gb |grep tdat



9. Disable the data devices from the NAS Pool

for i in `cat debs`; do symconfigure -sid xx -cmd "disable dev $i from pool pool name, type=thin;" commit -nop


10. Reve data devices from the NAS Pool

for i in `cat devs`; do symconfigure -sid XX -cmd "remove dev $i from pool poolname, type=thin;" commit -nop


11. Add the data devices to the Prod SATA Pool
for i in `cat devs`; do symconfigure -sid XX -cmd "add dev $i to pool poolname, type=thin, member_state=ENABLE;" commit -nop


12. Validate that the devices have been successfully added to the Pool 
symcfg -sid xx show -pool PROD-AR-R62 -thin -detail -gb


13. Initiate the Pool Rebalance
symconfigure -sid XX -cmd "start balancing on pool XXXX;" preview/commit -nop 


14. Validate that the Rebalance is successfull.
symcfg -sid xx show -pool PROD-AR-R62 -thin -detail -gb 
Check for "Balancing" for Pool state


14. Verify the growth in the Pool size
symcfg -sid xx show -pool PROD-AR-R62 -thin -detail –gb









Wednesday, April 16, 2014

Robocopy for migrating Cifs shares VG8 to Isilon


Robocopy

Copying cifsshare share from VG8 to Isilon

robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare  /copyall /E /r:0 /w:0 /log+:backoutrobo.out /tee


Other Examples:

Robocopy C:\Scripts \\RemoteComputerName\Share /E /SEC /R:1 /W:1 /LOG:c:\Robocopylog.txt /TEE  equalent to
C:\Users\user>robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\ifs\corpist01\cifsshare /copyall /r:1 /w:1 /log+:backoutrobo.o
ut /tee
robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare  /copyall /E /r:0 /w:0 /log+:backoutrobo.out /tee
Robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\ifs\corpist01\cifsshare /E /SEC /R:1 /W:1 /LOG:c:\Robocopylog.txt /TEE
C:\Users\user>robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare  /copyall /E /r:1 /w:0 /log+:backoutrobo.out /tee

Description:

I donít recommend to use /CopyAll paremeter as it will also copy the owner information to the remote computer which will cause problem in the
future if the current owner is Administrator on the current computer or a user who doesnot exist.
I also include log function to save the logs in C:\Robocopy.txt file so that you can check for failures afterwards.
The /R and /W are retry options, I specify the retry times as one and wait time as 1 second so that it wonít be stuck on retrying as the default
 setting for retry times is 1 million

Please make sure the account you use to run the Robocopy command has read and write access to the \\Remote_ComputerName\Share.


C:\Users\user>robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare
 /copyall /lev:1 /r:0 /w:0 /log+:backoutrobo.out /tee

 Log File : C:\Users\user\backoutrobo.out

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows
-------------------------------------------------------------------------------

  Started : Mon Feb 03 11:31:49 2014

   Source : \\source.test.abc.com\cifsshare\
     Dest : \\destination.test.abc.com\cifsshare\

    Files : *.*

  Options : *.* /TEE /COPYALL /LEV:1 /R:0 /W:0

------------------------------------------------------------------------------

                           1    \\source.test.abc.com\cifsshare\
          *EXTRA File              51285        ramtest.PNG
          *EXTRA File              17920        Thumbs.db
          *EXTRA File             170885        vnxe.PNG
100%        New File               21508        .DS_Store
2014/02/03 11:31:50 ERROR 5 (0x00000005) Copying NTFS Security to Destination File \\source.test.
abc.com\cifsshare\.DS_Store
Access is denied.


------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0         0         0
   Files :         1         0         0         0         1         3
   Bytes :    21.0 k         0         0         0    21.0 k   234.4 k
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00

   Ended : Mon Feb 03 11:31:50 2014

 
 
Output:

Migration completed. Logs output

------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :      1540      1539         1         0         0         0
   Files :     11974         0         1         0     11973         3
   Bytes :  78.773 g         0    21.0 k         0  78.773 g   234.4 k
   Times :   0:37:47   0:35:47                       0:00:00   0:01:59

   Ended : Mon Feb 03 12:31:38 2014

Configure EMC Isilon NAS VAAI plugin for vSphere

www.jasemccarty.com/blog/?p=2561

Reclaim Storage on VG8 Gateway

Proper way to remove filesystem from VG8

1) Delete all file systems used by VDM
2) Remove VDM
3) Remove file systems not associated with a VDM
4) nas_disk -d to remove all d# disks other than the control Luns
5) remove LUNs from Storage Group of Symm Channel

Sunday, April 13, 2014

San Addict: Isilon - InsightIQ

San Addict: Isilon - InsightIQ: InsightIQ query requests to Isilon cluster /var/log/apache2/webui_httpd_access.log netstat -an |grep -i wait netstat -an |grep -i es…
netstat -an   |grep -i wait
netstat -an  |grep -i est

Isilon - InsightIQ

InsightIQ query requests to Isilon cluster

/var/log/apache2/webui_httpd_access.log
netstat -an |grep -i wait
netstat -an |grep -i established




Isilon - dtrace analysis

download dtrace_v11.py
upload it to /ifs/data
isi_for_arrya -s -S "nohup python /ifs/data/dtrace_v11.py >&! /dev/null &"