FSSilva1
1 Copper

How to give to a recover session a timeout or some sort of limited attempts.

Hi!

sometimes we get into this situation:

Recovering 1 file from /opt/sdf/backup/ into /opt/assurance

Total estimated disk space needed for recover is 2881 MB.

Requesting 1 file(s), this may take a while...

Recover start time: Mon 04 Jul 2016 01:01:06 PM CEST

53365:recover: NSR server `nebrs1': busy

71740:recover: Waiting 30 seconds then retrying

53365:recover: NSR server `nebrs1': busy

The cause of this situation is not the point of this discussion.

The point is is there a way in the recover command to limit the number of 30 waits of the session or to give it a timeout after which the recover would exit automatically gracefully.

"Gracefully" means not leaving the storage device/volume in an incoherent state.

Thanks

Fernando Silva

Tags (2)
0 Kudos
3 Replies
ble1
6 Indium

Re: How to give to a recover session a timeout or some sort of limited attempts.

There is no retry limit on restore available.  If you do ctrl+c you should be fine (you can also kill recover command).  Way to achieve what you want is to send log of your session to log file and the parse... it last line = your error code and repeats itself X times; then kill()...

0 Kudos
FSSilva1
1 Copper

Re: How to give to a recover session a timeout or some sort of limited attempts.

Hi!

thanks for the reply. Checking the script and issueing the kill would be an approach, but the problem is the kill.

From my experience, the kill will leave the storage device in an sort of "open for recover" state if networker is stoped and started , the device will not be mounted without a scanner.

regards

Fernando Silva

0 Kudos
ble1
6 Indium

Re: How to give to a recover session a timeout or some sort of limited attempts.

If device is not used by any operation, you can reset it via nsrmm -H -f <device name>.

0 Kudos