benwayj
3 Silver

best way to move file systems between storage pools

Jump to solution
I'm trying to migrate a few file systems used for cifs to a new larger storage pool.
Is there an easy way to do this other than using robocopy and recreating the cifs shares?
I was hoping there was a command within the celerra to migrate the file system across the storage pools without losing or recreating the cifs information.

Thanks,jb
1 Solution

Accepted Solutions
dynamox
7 Thorium

Re: best way to move file systems between storage pools

Jump to solution
1) create file system to be exactly the same as the source, it this example i am creating file system target_filesystem to be exact same size as source_filesystem (my source)

nas_fs -name target_filesystem -type rawfs -create samesize=source_filesystem pool=symm_std storage=000290100123

2) create mountpoint and mount target file system as read-only

server_mountpoint server_3 -create /target_filesystem

server_mount server_3 -option ro target_filesystem /target_filesystem

3) Create checkpiont of source file system

fs_ckpt source_filesystem -name fs_source_ckpt1 -Create

4) Copy checkpoint to target file system

fs_copy -start fs_source_ckpt1 target_filesystem

5) When fs_copy is finished you can delete checkpoint created in step 4

nas_fs -delete fs_source_ckpt1 -o umount=yes

6) Umount source and target file systems

server_umount server_3 -perm /target_filesystem
server_umount server_3 -perm /source_filesystem

7) Rename old file system to temp name, rename target file system to original name

nas_fs -rename source_filesystem source_filesystem_old
nas_fs -rename target_filesystem source_filesystem

😎 Mount new file system

server_mount server-3 -o rw source_filesystem /source_filesystem

View solution in original post

0 Kudos
66 Replies
Rainer_EMC
6 Indium

Re: best way to move file systems between storage pools

Jump to solution
please provide some more details, like

- are you just using CIFS ?
- do you have a Replicator license ?
- is the CIFS server part of a VDM ?
- how much downtime is acceptable ?
- why do you move the file systems ?
- what DART version ?
- moving meaning copying onto another file system that is mounted on the same data mover ?
- do you have a modem or ESRS dialin ?
0 Kudos
sagle
3 Argentum

Re: best way to move file systems between storage pools

Jump to solution
We did this just 3 weeks ago to move from DMX storage to CLARiiON. We presented the new storage and used fs_copy to copy the file systems, unmount the old, name shuffle, remount the new with the same mount name and you are done. You will need to stop customer access during the fs_copy. We used replication for any non replicated volumes, so the cutover was fast. We kept the fs_copy short, by doing daily incremental copies till the cutover. If you have 5.6 you can replicate the replicated volumes as well due to 5.6 repl v2 supporting one to many replication.

Let me know if you need specifics on how we did this or more info.
0 Kudos
AmolMahajan
3 Argentum

Re: best way to move file systems between storage pools

Jump to solution
We have to do the same thing in our env. I just want to merge small pool into big one.
do you have any document mentioning the steps?
if you can provide me on mahajana@un.org

Thanks,
0 Kudos
Rainer_EMC
6 Indium

Re: best way to move file systems between storage pools

Jump to solution
I just want to merge small pool into big one.


what *exactly* are you trying to do ?

system defined pools are a just a collection of LUNs that have the same performance criteria so you cant merge them.

Even if you could, just changing the pool wouldnt affect file systems that were already carved from that pool.

If you need to merge a file system then you have to use file-based tools

Replicator or fs_copy/nas_copy works on a block level for one *complete* file system - thats why its fast and convinient and copies all the security attributes of file/dirs
So you cant use it to "merge" two or more file systems into one - its only one-to-one and src and dst have to be exactly the same size

for file-based tools your options are:
- client side copy with emcopy/robocopy/rsync/SecureCopy/...
- server_archive
- NDMP backup and restore
0 Kudos
dynamox
7 Thorium

Re: best way to move file systems between storage pools

Jump to solution
what is nas_copy ?
0 Kudos
Rainer_EMC
6 Indium

Re: best way to move file systems between storage pools

Jump to solution
nas_copy is the 5.6 version of fs_copy (or better said its the RepV2 version of fs_copy)

see attached for usage

It does require a Replicator license though
0 Kudos
dynamox
7 Thorium

Re: best way to move file systems between storage pools

Jump to solution
oh nice ....i gotta hurry up and upgrade my NS80 to 5.6 ...well ..after i migrate off CFS14 ;)
0 Kudos
AmolMahajan
3 Argentum

Re: best way to move file systems between storage pools

Jump to solution
We are upgrading to 5.6 this saturday... :-)
0 Kudos
benwayj
3 Silver

Re: best way to move file systems between storage pools

Jump to solution
Here's the background.
When we first setup the NAS, we got some 500GB ATA drives, they had to be setup in a raid3 (this was a few years ago)
I just got some more ATA drives but they are 1TB drives, which I was told should be configured in a raid6.
My raid3 pool is about 98% used. So I want to migrate the file systems from that storage pool to the new larger raid6 storage pool. Then I will take the 500GB and recreate them as a raid6 group so they are in the same storage pool.
I'm running 5.5.35-0 code.
0 Kudos