Skip to content
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

Treat RAID layout value '-unknown-' same as an empty value #2618

Merged
merged 1 commit into from Jul 13, 2021

Conversation

jsmeix
Copy link
Member

@jsmeix jsmeix commented May 21, 2021

In layout/save/GNU/Linux/210_raid_layout.sh
treat the RAID layout value '-unknown-' same as an empty value
to avoid that layout/prepare/GNU/Linux/120_include_raid_code.sh
will create a 'mdadm' command in diskrestore.sh like
"mdadm ... --layout=-unknown- ..."
which would fail during "rear recover" with something like
"mdadm: layout -unknown- not understood for raid0"

In layout/save/GNU/Linux/210_raid_layout.sh
treat the RAID layout value '-unknown-' same as an empty value
to avoid that layout/prepare/GNU/Linux/120_include_raid_code.sh
will create a 'mdadm' command in diskrestore.sh like
"mdadm ... --layout=-unknown- ..."
which would fail during "rear recover" with something like
"mdadm: layout -unknown- not understood for raid0"
see #2616
@jsmeix jsmeix added the bug The code does not do what it is meant to do label May 21, 2021
@jsmeix jsmeix added this to the ReaR v2.7 milestone May 21, 2021
@jsmeix jsmeix requested a review from a team May 21, 2021 10:02
@jsmeix jsmeix self-assigned this May 21, 2021
@jsmeix
Copy link
Member Author

jsmeix commented May 21, 2021

@cvijayvinoth
please test if the change in this pull request makes things work for you

@jsmeix
Copy link
Member Author

jsmeix commented Jul 12, 2021

According to
#2616 (comment)
the change in this pull request makes things work
so I would like to merge this pull request
tomorrow afternoon unless there are objections

@jsmeix jsmeix merged commit 44dcfc1 into master Jul 13, 2021
@jsmeix jsmeix deleted the jsmeix-handle-RAID-layout-unknown branch July 13, 2021 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The code does not do what it is meant to do fixed / solved / done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant