#713 Issue closed: recovery with TSM Replication breaks

Labels: enhancement, bug

vhaeuss opened issue at 2015-11-25 14:05:

Hallo,

as TSM now does replication the output of dsmc q f hast changed from

  #     Last Incr Date      Type    File Space Name
---     --------------      ----    ---------------
  1   11/24/2015 18:55:22   EXT4    /
  2   11/24/2015 18:55:23   EXT2    /boot
  3   11/24/2015 18:55:23   EXT4    /home
  4   11/24/2015 18:55:23   EXT4    /var

to something like

  #     Last Incr Date          Type    Replication       File Space Name
--------------------------------------------------------------------------------
  1     11/25/2015 12:48:55     EXT4    Current           /
  2     11/25/2015 12:48:34     EXT2    Current           /boot
  3     11/25/2015 12:48:34     EXT4    Current           /home
  4     11/25/2015 12:48:58     EXT4    Not Current       /var

This of course makes things go wrong in /usr/share/rear/verify/TSM/default/40_verify_tsm.sh

I suggest following change in 40_verify_tsm.sh, as only the first and last item in output is needed:

51c51
< while read num path ; do

---
> while read num date time type path ; do
58c58
< done < <((grep -A 10000 '^  1'|awk '{print $1 " " $NF}') <<<"$TSM_FILESPACE_TEXT")

---
> done < <(grep -A 10000 '^  1' <<<"$TSM_FILESPACE_TEXT")

Test recovery has worked fine.

Regards
Volker

gdha commented at 2015-11-25 14:14:

@vhaeuss Thanks for letting us know - why not prepare a small pull request?


[Export of Github issue for rear/rear.]