Subscribe

SnapCreator Clone Split

[ Edited ]

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

SnapCreator Clone Split

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

SnapCreator Clone Split

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.

SnapCreator Clone Split

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

SnapCreator Clone Split

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 ##########

SnapCreator Clone Split

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

SnapCreator Clone Split

What is AIG?

SnapCreator Clone Split

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.

SnapCreator Clone Split

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