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

LVM lens has problems parsing description auto-generated in RHEL 6 #28

Closed
brianredbeard opened this issue May 8, 2013 · 1 comment
Closed

Comments

@brianredbeard
Copy link

The LVM lens is having issues with the descriptions generated in RHEL 6:

/augeas/files/etc/lvm/backup/vg_system/error = "parse_failed"
/augeas/files/etc/lvm/backup/vg_system/error/pos = "147"
/augeas/files/etc/lvm/backup/vg_system/error/line = "6"
/augeas/files/etc/lvm/backup/vg_system/error/char = "11"
/augeas/files/etc/lvm/backup/vg_system/error/lens = "/usr/local/share/augeas/lenses/dist/lvm.aug:67.11-.26:"
/augeas/files/etc/lvm/backup/vg_system/error/message = "Syntax error"
/augeas/files/etc/lvm/archive/vg_system_00000-899600515.vg/error = "parse_failed"
/augeas/files/etc/lvm/archive/vg_system_00000-899600515.vg/error/pos = "147"
/augeas/files/etc/lvm/archive/vg_system_00000-899600515.vg/error/line = "6"
/augeas/files/etc/lvm/archive/vg_system_00000-899600515.vg/error/char = "11"
/augeas/files/etc/lvm/archive/vg_system_00000-899600515.vg/error/lens = "/usr/local/share/augeas/lenses/dist/lvm.aug:67.11-.26:"
/augeas/files/etc/lvm/archive/vg_system_00000-899600515.vg/error/message = "Syntax error"

The relevant configuration (line 6 in both cases is the description):

# Generated by LVM2 version 2.02.95(2)-RHEL6 (2012-10-16): Tue Apr 23 22:51:14 2013

contents = "Text Format Volume Group"
version = 1

description = "Created *before* executing '/sbin/vgs --noheadings -o name --config 'log{command_names=0 prefix=\"  \"}''"

creation_host = "host.example.com"  # Linux host.example.com 2.6.32-279.11.1.el6.x86_64 #1 SMP Sat Sep 22 07:10:26 EDT 2012 x86_64
creation_time = 1366757474  # Tue Apr 23 22:51:14 2013

vg_system {
    id = "5dtHTQ-pvA6-s1r0-Iqck-Cc34-GDdt-MJK782"
    seqno = 2
    format = "lvm2" # informational
    status = ["RESIZEABLE", "READ", "WRITE"]
    flags = []
    extent_size = 8192      # 4 Megabytes
    max_lv = 0
    max_pv = 0
    metadata_copies = 0

    physical_volumes {

        pv0 {
            id = "AOXPQ6-hkrg-2z0g-FiJN-DvLk-aySL-0qrH5P"
            device = "/dev/vda3"    # Hint only

            status = ["ALLOCATABLE"]
            flags = []
            dev_size = 20445184 # 9.74902 Gigabytes
            pe_start = 2048
            pe_count = 2495 # 9.74609 Gigabytes
        }
    }

    logical_volumes {

        lv_root {
            id = "pm03oc-AehK-DcvV-PvOj-1fzC-FWYc-qvDcAS"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            creation_host = "host.example.com"
            creation_time = 1366757292  # 2013-04-23 22:48:12 +0000
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 2495 # 9.74609 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 0
                ]
            }
        }
    }
}
@lutter
Copy link
Member

lutter commented Jun 12, 2013

Fixed with commit 00fab8f

@lutter lutter closed this as completed Jun 12, 2013
domenkozar pushed a commit to domenkozar/augeas that referenced this issue Dec 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants