Making Mirrors on LVM2 With Less Fist Pattern Baldness

Making Mirrors on LVM2 With Less Fist Pattern Baldness

07/01/08 | by admin [mail] | Categories: Announcements [A], Nerd Thoughts

Here’s one for the hall of fame of terrible error messages.

When trying to add a mirror to a LVM volume on a linux box, you get this message:

#lvconvert -m 1 disks/root /dev/sdb2

Not enough PVs with free space available for parallel allocation.
Consider --alloc anywhere if desperate.

This message is completely useless, we have TONS of free extents on both disks. So we check for help

# lvconvert
Exactly one of --mirrors or --snapshot arguments required.
lvconvert: Change logical volume layout

lvconvert [-m|--mirrors Mirrors [--corelog]]
[-R|--regionsize MirrorLogRegionSize]
[--alloc AllocationPolicy]
[-d|--debug]
[-h|-?|--help]
[-v|--verbose]
[--version]
LogicalVolume[Path] [PhysicalVolume[Path]...]

Yea. Not much that is obvious there we can work with. So after hitting (1) forehead and (2) Google, we discover in an obscure blog reply that we need to specify where the mirror log goes for this.

Well it would have been nice to have that in the “help” message, or the HOWTO, or the Guide and probably in the error message as well now wouldn’t it.

So for you seekers out there, here is what you need to do. Just throw in that one extra option in the help message that doesn’t have much explanation:

lvconvert -m 1 disks/root /dev/sda2 --corelog

Logical volume root converted.

Yes, just adding –corelog will do the job. This tells it to keep the log in RAM, so yes you’ll have to rebuild the array after a reboot.

If you’re creating a new volume and you get this error, try tacking –corelog on the end of that command as well.

Doesn’t look like LVM folks accept direct bug reports either, maybe you can pass the word along?

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Matthew Steven's Thought Box

Matthew Steven is a lifelong technology enthusiast. He has been in the business of creating ecommerce web applications, solving problems on UNIX platforms, and hosting servers since the earliest days of the internet. He is active in community service, plays classical guitar, and has a number of furry children.

August 2008
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Linkblog

b2evolution

  • Matt's Org

    Dig the dirt on Matthew Steven at his homepage.

    Permalink

Misc

XML Feeds

What is RSS?

powered by b2evolution free blog software