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
Support by-path PVs #1958
Comments
|
@skrueger8 FYI |
|
I added @gdha because according to the git log -p --follow usr/share/rear/layout/save/GNU/Linux/220_lvm_layout.sh output layout/save/GNU/Linux/220_lvm_layout.sh was initially creted by I think the 'pvdisplay -c' output is the root cause because dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0-part2:storage:... is already broken because the 'pvdisplay -c' output uses |
|
I need to set up a test system with LVM to be able to actually work on it... |
|
@skrueger8 can you please check that the fix in ea2b700 reflects what we tested? |
|
@jsmeix for testing some more info:
Please add additional fixes to the |
|
@schlomo What is the output of commands like # parted -s /dev/sda unit MiB print # lsblk -i -p -o NAME,KNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT /dev/sda on a relatively small system that has this issue? FYI # parted -s /dev/sda unit MiB print Model: ATA QEMU HARDDISK (scsi) Disk /dev/sda: 20480MiB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1.00MiB 20480MiB 20479MiB primary boot, lvm, type=8e # lsblk -i -p -o NAME,KNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT /dev/sda NAME KNAME TRAN TYPE FSTYPE SIZE MOUNTPOINT /dev/sda /dev/sda ata disk 20G `-/dev/sda1 /dev/sda1 part LVM2_member 20G |-/dev/mapper/system-swap /dev/dm-0 lvm swap 1.4G [SWAP] `-/dev/mapper/system-root /dev/dm-1 lvm btrfs 18.6G / Meanwhile I found out how to enforce GPT in YaST (somewhat hidden) and |
|
I get closer but up to now I failed to setup by-path PVs. # parted -s /dev/sda unit MiB print Model: ATA QEMU HARDDISK (scsi) Disk /dev/sda: 20480MiB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: pmbr_boot Number Start End Size File system Name Flags 1 1.00MiB 16.0MiB 15.0MiB bios_grub 2 16.0MiB 19469MiB 19453MiB lvm, legacy_boot # lsblk -i -p -o NAME,KNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT NAME KNAME TRAN TYPE FSTYPE SIZE MOUNTPOINT /dev/sda /dev/sda ata disk 20G |-/dev/sda1 /dev/sda1 part 15M `-/dev/sda2 /dev/sda2 part LVM2_member 19G |-/dev/mapper/system-system--swap /dev/dm-0 lvm swap 1G [SWAP] `-/dev/mapper/system-system--root /dev/dm-1 lvm btrfs 18G / /dev/sr0 /dev/sr0 ata rom 1024M # pvs PV VG Fmt Attr PSize PFree /dev/sda2 system lvm2 a-- 19.00g 4.00m # pvdisplay -c /dev/sda2:system:39839744:-1:8:8:-1:4096:4863:1:4862:7guAfh-09wj-3ivj-oH4K-kvqE-NUjJ-r9sPSu # pvdisplay --columns --separator "|" PV|VG|Fmt|Attr|PSize|PFree /dev/sda2|system|lvm2|a--|19.00g|4.00m |
Hi, here's the output you requested: |
Yup, that's the fix we tested yesterday. |
|
@skrueger8 @skrueger8 @schlomo Or can you describe me how you installed your system so that it uses by-path PVs I guess if you have many such systems you probably don't install each On the other hand - I guess - when you use AutoYaST for installation |
|
https://www.suse.com/documentation/sles11/book_autoyast/data/createprofile_partitioning.html suggests to use We will provide you with the relevant information |
|
I am afraid, today I cannot work on this issue, Hopefully next week... |
|
"needs sponsorship" => for a "ReaR future" milestone |
|
I think calling the 'lvm' commands with |
|
Stale issue message |
|
Stale issue message |
|
I believe #2903 addresses all the issues:
this is not an issue for some reason. Here is the layout on a two-disk system configured to show /var/lib/rear/layout/diskdeps.conf /var/lib/rear/layout/disktodo.conf lvm pvdisplay -c So,
LVM configuration described in #2903: add to /etc/lvm/lvm.conf. ea2b700#commitcomment-31237351
solved by |
ReaR 2.4 on SLES12 SP3 with local disk in VMware VM with LVM
Problem
PVs are addressed by
/dev/disk/by-path/like this:The resulting
disklayout.confcontains broken lines like this:And consequently ReaR doesn't work.
Cause
Root cause is 220_lvm_layout.sh using
:to separate the output.:also appears as part of the PV physical block device name so that our code breaks.Solution
Don't use
:as a separator in stuff that contains file names because:is valid and used in file names.Further TODO
This fix alone is not enough because ReaR does not recognize the dependency between the PV and the
/dev/sdadisk and therefore excludes that disk from formatting and recovery.The text was updated successfully, but these errors were encountered: