Data Backup and Recovery

SnapCreator Clone Split

cferbrache
5,607 Views

Is it possible to have SnapCreator split the clone once it has been created?

8 REPLIES 8

ktenzer
5,607 Views

Currently there is no way to do this in SC

What you could do is issue a POST_NTAP_CMD01=ssh <filer> -c "clone split..."

I will add this as feature request

BTW we did get your feature for multiple clone sets working so look for that in next release of SC

Regards,

Keith

cferbrache
5,607 Views

How would you know what the name of the clone was so that you could put it in the split command? And would the filer need a password or would it get that from the config file?

That's great news about the multiple clones.

ktenzer
5,607 Views

The clone is always named cl_<volume>_<timestamp> so you can do this assuming a volume named foo

CLONE_NAME=cl_foo_%SNAP_TIME

Now you could execute a clone split command for this you need to ssh to filer and you need to allow passthrough authentication, so setup ssh keys so you can login to filer without a password. Please read documentation on NOW for ssh keys on how to do this. Also be advised any pre/post commands run on scAgent or scServer if SC_AGENT isnt defined.

NTAP_POST_CMD01=ssh user@filer -c "vol clone split %CLONE_NAME"

I am not sure about vol clone split command (if syntax is right), but this shows you what you need to know to do this

Good Luck

Keith

cferbrache
5,607 Views

Unfortunately it looks like the clone split doesn't try to run before it tries to map the luns.

########## PRE CLONE COMMANDS FINISHED SUCCESSFULLY ##########

########## Generating Info ASUP on fas3040a ##########
[Thu Oct  6 14:09:48 2011] INFO: NetApp ASUP create on fas3040a finished successfully

########## Creating Volume Clone(s) for source fas3040a ##########
[Thu Oct  6 14:09:48 2011] INFO: Creating Volume Clone cl_dr_pix_001_20111006140942 from snapshot leo_cl_dr-daily_recent of fas3040a:dr_pix_001
[Thu Oct  6 14:09:55 2011] INFO: Volume Clone Create of cl_dr_pix_001_20111006140942 from leo_cl_dr-daily_recent on fas3040a Created Successfully

########## Gathering Information for luns on fas3040a ##########
[Thu Oct  6 14:10:00 2011] INFO: NetApp Inventory of luns on fas3040a finished successfully

########## Mapping Igroups to Cloned Lun(s) on fas3040a ##########
[Thu Oct  6 14:10:02 2011] OUTPUT: Read-only file system
[Thu Oct  6 14:10:02 2011] INFO: NetApp Volume Cloned Lun Online of /vol/cl_dr_pix_001_20111006140942/pia_001/archivedbs1 on fas3040a:dr_pix_001 failed! Exiting

########## PRE EXIT COMMANDS ##########
[Thu Oct  6 14:10:02 2011] INFO: No commands defined

########## PRE EXIT COMMANDS FINISHED SUCCESSFULLY ##########

ktenzer
5,607 Views

Sorry it should be POST_NTAP_CMD01=<clone split command>, just look at config file all the CMDs are there, you can simply do echo's to test where specific command runs, this is documented in AIG as well.

Keep in mind if you are using scAgent you need to give permission to run command on agent by editing /scAgent3.4.0/config/agent.conf and adding:

command: <clone split command>

Again documented in AIG

Keith

cferbrache
5,607 Views

What is AIG?

cferbrache
5,607 Views

It never gets to the POST commands. After the clone is created it starts mapping the LUN's and fails. So I don't think the POST_NTAP_CMD01 is going to work.

ktenzer
5,607 Views

I meant IAG not AIG but it is the installation and Administration Guide.

I also didnt notice you were getting this error and your right we cant get to clone split command until we fix error.

########## Mapping Igroups to Cloned Lun(s) on fas3040a ##########

[Thu Oct  6 14:10:02 2011] OUTPUT: Read-only file system

[Thu Oct  6 14:10:02 2011] INFO: NetApp Volume Cloned Lun Online of /vol/cl_dr_pix_001_20111006140942/pia_001/archivedbs1 on fas3040a:dr_pix_001 failed! Exiting

This is not a Snap Creator error it is coming from DATA ONTAP. It looks like the Clone created is read-only or at least the lun. You can try the steps manually from CLI to debug this.

SC is trying to do a "lun online" of /vol/cl_dr_pix_001_20111006140942/pia_001/archivedbs1 which ontap is not allowing because it is read-only. I would expect the CLI would also throw an error, again you cant online a lun if volume or lun is read-only.

Regards,

Keith

Public