#448 Issue closed
: Migrate Network Device failed¶
Labels: enhancement
, bug
, waiting for info
gsbit opened issue at 2014-08-07 12:46:¶
Hi All,
I tried to recover a system to a new hardware. While booting the ISO, in
the Section 55-migrate-network-device.sh I had the following problem:
My network-device mapping should be (see also screenshots):
OLD eth0 -> NEW eth3 (selection 1)
OLD eth1 -> NEW eth5 (selection 3)
OLD eth2 -> NEW eth4 (selection 2)
After the selection of the interface eth5, the last selection of the interface eth4 failed. As long as I could use the selection 1 -> 2 -> 3 it works.
In the script 55-migrate-network-device.sh I found the following bug in the loop over all the original macs:
On line 94:
unset "NEW_DEVICES[$n]"
there goes something wrong with the assignment of the array element and
the selection numbers from the select command.
I replaced line 94 with this command:
NEW_DEVICES=( "${NEW_DEVICES[@]/$choice/}" )
An other possible solution:
NEW_DEVICES[$n]="used"
After this change it works for me.
System info:
REAR Version rear-1.16.1-1
SLES 11.3
local.conf:
OUTPUT=ISO
BACKUP=NBU
Screenshots:
gdha commented at 2014-08-13 19:33:¶
@gsbit will you provide a pull request?
gsbit commented at 2014-08-14 11:51:¶
I never did something like this before, but I'll try to do.
gdha commented at 2014-08-22 14:29:¶
@gsbit rear-1.16.1-git201408201003 contains your pull request - If you find some time could you test it out?
gsbit commented at 2014-09-17 08:28:¶
Sorry for the late response. I made some tests with the build rear-1.16.1-git201409051031 and it works fine.
[Export of Github issue for rear/rear.]