Migrating from EMC Celerra to Isilon with Perl
I’ve been working on a massive migration from an EMC Celerra to our new shiny Isilon. We’ve got a ton of file systems, CIFS, and NFS shares which I don’t want to re-create manually. “Work Smarter, Not Harder” is what Scrooge McDuck always said, right? So I created a few simple Perl scripts to export information from the Celerra Control Station and created a shell script to run on Isilon to migrate the directories and shares. I’ve only tested with with 6.5 – not sure of the change in syntax in 7.x.
This doesn’t actually move the data or the permissions, as that is a whole different project. It simply parses a “nas_fs” query to make directories, create a hard quota to mimic sizes, and then created the NFS and SMB share. It’s a set of three scripts that can be run as needed.
If you look in the archive you’ll find three files. The first Perl script is named “export_fs” and contains the code to generate the directories and quotas on Isilon. The new two scripts export the NFS and CIFS shares into separate shell scripts to run on your Isilon cluster..
To run the script you simple edit the NFS/CIFS scripts to specify the correct Data Mover. You’ll see a variable “$datamover”. Then you just actually run the commands:
You’ll end up with three shell files created for you to move to your Isilon cluster and run in the same order. Hopefully this makes your migrations a tad easier.