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

different name of the same device. #305

Closed
pavoldomin opened this issue Sep 25, 2013 · 8 comments
Closed

different name of the same device. #305

pavoldomin opened this issue Sep 25, 2013 · 8 comments
Assignees
Labels
bug The code does not do what it is meant to do enhancement Adaptions and new features
Milestone

Comments

@pavoldomin
Copy link
Contributor

Hi,

We receive following error during the restore attempt:

No code has been generated to restore device pv:/dev/disk/by-id/cciss-3600508b1001fffffa004f7b3f209000b-part2

The cause is the mismatch of device name in disklayout.conf - the lvmdev and part definition refer to the different names of the same device.

disk /dev/cciss/c0d0 72833679360 msdos
part /dev/cciss/c0d0 205599744 32256 primary boot /dev/cciss/c0d0p1
part /dev/cciss/c0d0 72620997120 205632000 primary lvm /dev/cciss/c0d0p2
lvmdev /dev/vg00 /dev/disk/by-id/cciss-3600508b1001fffffa004f7b3f209000b-part2 7fWwOV-nd4W-G0oA-0SE8-Oy89-NGpH-qHRoN3 141837885

This issue was observed on SLES11 SP3, after we specified

preferred_names = [ "^/dev/disk/by-id/" ]

in lvm.conf.

We can reproduce it with recent 1.15 as well as 1.14 version.

The easy workaround is to edit disklayout.conf manually before the restore.

@ghost ghost assigned gdha Sep 26, 2013
@gdha
Copy link
Member

gdha commented Sep 26, 2013

@pavoldomin Would be nice to see the logging of a debug session with savelayout... and perhaps the ls -l of the /dev links from the cciss stuff.
@jhoekx do you have am idea if there is an easy way to get around?

@jhoekx
Copy link
Contributor

jhoekx commented Sep 26, 2013

There is no easy way around. The get_device_name function should be taught to convert by-id names to the format used for the partitions. We should make sure we call that function when writing the lvmdev line to disklayout.conf.

@gdha
Copy link
Member

gdha commented Sep 27, 2013

@pavoldomin could you attach the log file made by rear -vD savelayout as a gist?

@gdha
Copy link
Member

gdha commented Sep 27, 2013

@pavoldomin could you also paste the content of the file /var/lib/rear/recovery/diskbyid_mappings ?

@pavoldomin
Copy link
Contributor Author

Hi, sorry for latency.
/dev/disk/by-id listing, diskbyid_mappings content and logfile are here
https://gist.github.com/pavoldomin/28f883bc35f40ee9e03a

gdha added a commit that referenced this issue Oct 4, 2013
…isk devices. Doing this before get_device_name will result in a proper disk name (see 22_lvm_layout.sh). Also moved 30_save.. to 15_save.. so we have a diskbyid_mappings file before the real work starts.

This is related to issue #305
@gdha
Copy link
Member

gdha commented Oct 4, 2013

@pavoldomin Please try out rear-1.15-4.git201310041248.noarch.rpm (download it from http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/ )

@gdha
Copy link
Member

gdha commented Oct 23, 2013

@pavoldomin Did you get the chance to try it out already?

@pavoldomin
Copy link
Contributor Author

Fixed; tested with 1.15-git201310211300

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 enhancement Adaptions and new features
Projects
None yet
Development

No branches or pull requests

3 participants