New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possiblity to restore filesystems in parallel with TSM. #2232
Conversation
Extra actions done before the restore worked on sles12sp3:
|
A few things as remark and/or comments:
|
@schabrolles |
@@ -20,9 +20,10 @@ local backup_restore_log_suffix="restore.log" | |||
# echo -n $CONFIG_APPEND_FILES (without double quotes) is used to avoid leading and trailing spaces and newlines: | |||
test "$CONFIG_APPEND_FILES" && backup_restore_log_prefix=$backup_restore_log_prefix.$( echo -n $CONFIG_APPEND_FILES | tr -d -c '[:alnum:]/[:space:]' | tr -s '/[:space:]' ':_' ) | |||
local backup_restore_log_filespace="" | |||
local dsmc_parallel="false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think such an option should be user controllable
via a new TSM_...
config variable in default.conf
https://github.com/rear/rear/blob/master/usr/share/rear/conf/default.conf#L1586
e.g. something like
# Restore TSM filespaces in parallel by running
# for each TSM filespace a separated 'dsmc restore' process:
TSM_DSMC_RESTORE_PARALLEL="false"
and then use TSM_DSMC_RESTORE_PARALLEL
instead of dsmc_parallel in the code here.
} | ||
|
||
for num in $TSM_RESTORE_FILESPACE_NUMS ; do | ||
if test "$dsmc_parallel" == "true" ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually we do not use things like "$VAR" == "true"
because
since a longer time we have the is_true and is_false functions
see usr/share/rear/lib/global-functions.sh
https://raw.githubusercontent.com/rear/rear/master/usr/share/rear/lib/global-functions.sh
how to use them.
In general have a look at
https://github.com/rear/rear/wiki/Coding-Style
@cookie33 |
I think each |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think multiple dsmc restore
processes need separated log files.
@jsmeix, I’m currently in vacation till the end of the month. I will try to do my best in october, but will be busy with client on-site requests. |
@schabrolles I am also not in the office currently and for some more weeks |
@cookie33 @schabrolles In the section "Running Multiple Backups and Restores in Parallel" in
One reason is that in particular the tree of directories The concern is that subsequent backup restore operations may fail For example assume the files in The concern is that it is not clear what the final result is in that case. Perhaps it fails to restore the files in Perhaps it does not fail to restore the files in So the concern with multiple backup restores in parallel is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cookie33 I fully agree with @jsmeix comments. Please make the necessary changes before @schabrolles comes back from holiday.
@schabrolles Could you please review this PR for a moment and give @cookie33 the feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with the general idea.
But as @jsmeix suggest, I would use a specific TSM_DSMC_RESTORE_FC_PARALLEL variable in configuration files and separated log for each FS restored.
Stale pull request message |
Relax-and-Recover (ReaR) Pull Request Template
Pull Request Details:
Type: Enhancement
Impact: Normal
Reference to related issue (URL):
How was this pull request tested?
A restore of a SLES12SP3 system was done with this version of the TSM restore script with the parallel mode set to true.
rear-asm4.log