I am trying to use %SNAP_TIME to automatically mount lun inside a flexclone vol. I created a flexclone vol and I can connect to lun using exact cloned name (date&time). But, when I use %SNAP_TIME. it fails.
VOL CLONE:SUCCESS Volume Clone Create of cl_test_iscsi_20130203230600 from test-hourly_20130203230600 on fas01 Created Successfully
Now, I want to mount the cloned lun with script automatically.
Command I use: snapdrive storage connect -lun fas01:/vol/cl_test_iscsi_%SNAP_TIME/lun_test
Issue: When I give snap time variable, I get an error, service call to sdu deamon failed
But, If I use: snapdrive storage connect -lun fas01:/vol/cl_test_iscsi_20130203230600/lun_test
It works. I would want to supply the %TIME so that I dont have to manually run the this command after the clone operation. I can use snapdrive snap wizard connect and supply the test-hourly_20130203230600 and it works well, but in this case I am connecting to the lun in a snaphost of the parent lun and it creates lun_test_0, whereas I want to connect to the lun_test in a flexcloned vol.
I haven't yet put this in the config file. I am doing it from the console using standard snapdrive for unix commands. I guess, if it works from the console, I can then use this command in the POST_CLONE section.
Re: I am trying to use %SNAP_TIME to automatically mount lun inside a flexclone vol.
I tried setting env variable but it didn't work. But, as you pointed out '%SNAP_TIME' is available only within snapcretor config environment, that gave me a direction to test it inside the config file. Thanks a lot.
This is what I did to work.
Added my remote UNIX host (192.168.1.65) where I wanted to connect the cloned LUN (For backup purpose) in the following 'section' of config file on snapcreator server.