This post is more than 5 years old

54 Posts

1218

August 13th, 2009 03:00

How to copy a file system on 5.6.45-5

Hi

We recently upgraded our NS702G to DART 5.6.45-5 which brought with it the dedupe functionality. Rather than blindly turning this on for all file systems I'd like to test the effects of it on NDMP backups on a test file system (FS098) first.

We have Replicator v2 and I understand the FS_COPY command has been replaced with NAS_COPY. I'd like to copy a checkpoint of an existing FS (FS002) to a new FS (FS098) on the same Celerra, but struggling with the command.

I have already created a target FS and mounted (FS098) with the following command:
nas_fs -name FS098 -type rawfs -create samesize=FS002 pool=clar_r5_performance
server_mountpoint server_2 -create /FS098
server_mount server_2 -option ro FS098 /FS098

and created a checkpoint for my source FS:
fs_ckpt FS002 -name FS002_ckpt1 -create

I tried the following command to copy from the ckpt to FS098 but it failed with an error:
nas_copy -name FS002_FS098 -source -ckpt FS002_ckpt1 -destination -fs FS098 -interconnect id=20001
rror 13160415302: The file system is not mounted.

Can someone point me in the right direction please?

Thanks

Message was edited by: TF
TF

674 Posts

August 13th, 2009 04:00

I already wrote your syntax is correct.

but, do not use a rawfs.

Or delete the destination FS and use the pool option, then the destination FS will be created, mounted ... by the nas_copy command itself

674 Posts

August 13th, 2009 03:00

and created a checkpoint for my source FS:
fs_ckpt FS002 -name FS002_ckpt1 -create


-create does not create a checkpoint, the correct option is -Create

674 Posts

August 13th, 2009 04:00

Sorry, I think your nas_copy syntax is correct.

But, nas_copy does no longer need a raw fs on the destination
"The destination file system or the storage pool required to create the destination
file system must exist. Destination file system must be the same size as the
source and is read-only accessible."

54 Posts

August 13th, 2009 04:00

nas_copy
-name
-source
{ -fs { | id= } | -ckpt { | id= } }

Thought the vertical bar before -ckpt meant "OR".....

-fs { | id= } OR -ckpt { | id= }


Or am I interpreting it wrongly.

TF

6 Operator

 • 

8.6K Posts

August 13th, 2009 04:00

nas_fs -name FS098 -type rawfs -create samesize=FS002 pool=clar_r5_performance


here's your problem - dont use rawfs with RepV2

server_mount server_2 -option ro FS098 /FS098


I bet if you do a server_mount server_2 | grep FS098 it will say unmounted :-)

Thats why the nas_copy doesnt work

It even says so - I admit it could be nice and say which of the file systems isnt mounted.

Just umount and delete your FS098 and create it again without rawfs and it will work

674 Posts

August 13th, 2009 04:00

nas_copy -name FS002_FS098 -source -ckpt FS002_ckpt1
-destination -fs FS098 -interconnect id=20001


out of my understanding there is a missing -fs name between -sourece and -ckpt

54 Posts

August 13th, 2009 04:00

Sorry, that's a typo on my forum posting. I did use "-Create" on the Celerra and I definitely have a checkpoint so this is not the issue:

nas_fs -l |grep FS002_ck
6038 y 7 0 683 FS002_ckpt1 v8

674 Posts

August 13th, 2009 04:00

I would use the GUI wizard for a job like this

54 Posts

August 13th, 2009 05:00

Looks like you guys are spot on.....

Deleted the rawfs filesystem and recreated it as uxfs.

Now the nas_copy command appears to be working - well I have a flashing cursor which I guess means it's busy copying the 1TB FS.

For ref, here's my command:
nas_copy -name FS002_FS098 -source -ckpt FS002_ckpt1 -destination -fs FS098 -interconnect id=20001

Thanks Peter and Rainer for all your help.
No Events found!

Top