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

snapshot-hook should be more flexible about device names #23

Closed
ewxrjk opened this issue Jun 3, 2015 · 2 comments
Closed

snapshot-hook should be more flexible about device names #23

ewxrjk opened this issue Jun 3, 2015 · 2 comments
Labels
Milestone

Comments

@ewxrjk
Copy link
Owner

@ewxrjk ewxrjk commented Jun 3, 2015

After upgrading to Debian jessie, df reports my root LV as /dev/dm-0 rather than /dev/mapper/something, causing the snapshot hook to fail. Ideally it should recognize any name for a logical volume, regardless of links, bind mounts or any other kind of aliasing.

@ewxrjk ewxrjk added this to the 2.1 milestone Jun 3, 2015
@ewxrjk
Copy link
Owner Author

@ewxrjk ewxrjk commented Jun 6, 2015

09:36 < ewx> is there a standard way of recovering a name that will be 
             acceptable to LVM from an alias for the device?  i.e. turning 
             /dev/dm-0 into /dev/mapper/whatever-whatever
09:39 < col> I'd be inclined to use something involving udevadm info -n 
             DEVICE-NODE
09:41 < ewx> that looks promising, thanks.
@ewxrjk ewxrjk closed this in 9e03bb1 Jun 7, 2015
@ewxrjk
Copy link
Owner Author

@ewxrjk ewxrjk commented Jun 7, 2015

You will also need 7b84f91, the original versions was broken despite the tests. (I don't have a non-production LVM test rig.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant