Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480002 - =sys-fs/lvm2-2.02.97-r1: /etc/init.d/lvm-monitoring fails with updated /sbin/vgs command output
Summary: =sys-fs/lvm2-2.02.97-r1: /etc/init.d/lvm-monitoring fails with updated /sbin/...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-07 00:11 UTC by G.Wolfe Woodbury
Modified: 2014-02-02 06:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G.Wolfe Woodbury 2013-08-07 00:11:49 UTC
a recent update to /sbin/lvm (as /sbin/vgs) now outputs the string "  lvm: " on the front of every line of output.  This breaks the /etc/init.d/lvm-monitoring script and prevents lvm-monitoring from being recorded as "running"

Reproducible: Always

Actual Results:  
vgs --noheading -o name
  produces
"  lvm: onyxvg01"
  rather than
" onyxvg01"

Expected Results:  
the prepending of "  lvm: " is a recent change

There is another bugz entry about lvm-monitoring pending that obviates this error, but in the meantime:

VGSLIST=`$VGS --noheadings -o name | sed 's/  lvm: //' 2> /dev/null`
                                   ^^^^^^^^^^^^^^^^^^^

works to remove the problematical string
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-08-07 08:50:38 UTC
I expect same problem is still valid for >=sys-fs/lvm2-2.02.99-r1 ?
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-09-12 23:16:53 UTC
(In reply to Samuli Suominen from comment #1)
> I expect same problem is still valid for >=sys-fs/lvm2-2.02.99-r1 ?

2.02.100 is in tree. Can you test it?
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-02 06:26:11 UTC
I don't get this problem on .105