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
disklayout.conf file contains duplicate lines #2187
Comments
|
Problem is coming from script usr/share/rear/layout/save/GNU/Linux/220_lvm_layout.sh line: Without the options we get: With the options we see duplicate lines: As the code in this part was last modified by @rmetrich I will assign it to you for further inspection. |
|
@rmetrich Do you want me to make a RedHat software case so you can spend some time on it? |
|
A quick fix would be piping through "uniq": |
|
Hi @gdha , probably using |
|
@gdha because I think it helps in general to have a comprehensible overview |
|
For the future: For now: |
|
@gdha |
|
|
@rmetrich @jsmeix if you would like to see the rear log file and console output then check out Gist https://gist.github.com/gdha/6fe7c90c952a3119ea731d5c7f791a2c @rmetrich I agree that it is more a lvm bug then rear bug |
Concerning to be able to fix I will open an HPE case which will be forwarded to RH. |
|
When I compare the excerpt from the initial comment with the I also think that to be on the safe side the ordering |
|
@gdha Can you provide |
|
|
OK, I understand the root cause. Piping through |
|
@rmetrich You are right: However, is the output of lvm now a bug or a feature?? |
|
I would say it's a feature. |
|
Should say "segment" instead of "chunk" |
|
The printing of each segment happens as soon as "stripes" property is displayed. |
Create the 'lvmvol' lines commented out when multiple segments exist for a given LV. This is not an issue unless Migration Mode is used. In such case, using 'lvcreate' commands already does best effort and loses LV information. Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
Issue #2187 - disklayout.conf file contains duplicate lines
|
@jsmeix yes it is. |
ReaR version ("/usr/sbin/rear -V"): 2.4 and higher (also the latest upstream)
OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"): RHEL 7 - however I do not think it is a OS related issue
ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"): n/a - running savelayout is enough with an empty local.conf
System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device): x86
Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe): local and SAN
Description of the issue (ideally so that others can reproduce it):
Previous rear versions rear-2.1 and rear-2.0 were tested and did not have this problem.
As a result the recovery interrupt with errors like:
Workaround, if any: manual intervention was required as afterwards the script was confused what was done or not done. The recovery went fine afterwards when all VGs and Lvols where created automatically by the script and some manually by me.
Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files): I have the logs available when interested...
The text was updated successfully, but these errors were encountered: