Skip to content

guestlvmnt struggles with guest devices that have more than one partition #1

@psmode

Description

@psmode

When trying to mount the guests's root LV, the VGs are not found because the /sbin/lvmdevices --adddev command only works on the first partition in the guest device map. For the boot volume, the first partition will inevitably be the boot partition, with the LVM managed partition being the second. Thus a command like: /usr/local/sbin/guestlvmnt m /mnt/foo T3 Suv047-disk0 V0uv047 root will fail.

As a workaround, issue the command and let it fail, then manually execute the appropriate /sbin/lvmdevices --adddev command. For the previous example, this would be /sbin/lvmdevices --adddev /dev/mapper/T3-bu--Suv047--disk0p2 . With this done, simply re-execute the original guestlvmnt and the LV will be mounted.

guestlvmnt need to be updated to detect and add all partiitons discovered in the guest device map operaiton.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions