Puppet LVM create volume maximum size

476 views
Skip to first unread message

Paul.S...@barcap.com

unread,
Jan 8, 2013, 4:21:54 AM1/8/13
to puppet...@googlegroups.com
Hello,

Using the LVM module/providers from the forge I want to create a logical volume at the maximum size and I cannot work out how to do this.

physical_volume -> volume_group -> logical_volume -> filesystem -> mount 

All works fine but you have to hard code the size for the logical volume. 

Anyone know if this is possible ?

Thanks
Paul

Paul.S...@barcap.com

unread,
Jan 8, 2013, 6:22:27 AM1/8/13
to puppet...@googlegroups.com


On Tuesday, January 8, 2013 9:21:54 AM UTC, Olli...@googlemail.com wrote:
Hello,

Using the LVM module/providers from the forge I want to create a logical volume at the maximum size and I cannot work out how to do this.

physical_volume -> volume_group -> logical_volume -> filesystem -> mount 

All works fine but you have to hard code the size for the logical volume. 

Never mind sorted it with the help of http://projects.puppetlabs.com/issues/14718

Cheers
Paul

John Warburton

unread,
Jan 8, 2013, 7:55:48 PM1/8/13
to puppet-users
On 8 January 2013 22:22, Olli...@googlemail.com <Paul.S...@barcap.com> wrote:

Never mind sorted it with the help of http://projects.puppetlabs.com/issues/14718

Nice one. I thought it was just my wrapper around it. The doc implies setting size to "undef", which I've never been able to get working:
  • size

    The size of the logical volume. Set to undef to use all available space

James A. Peltier

unread,
Jan 9, 2013, 1:05:32 AM1/9/13
to puppet...@googlegroups.com
That's what the documentation says but there's no code in the current git repo to make it work.  That patch adds support.  It's still not been merged sadly. :(

--
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax     : 778-782-3045
E-Mail  : jpel...@sfu.ca
Website : http://www.sfu.ca/itservices
          http://blogs.sfu.ca/people/jpeltier

"The smartest people are constantly revising their understanding, reconsidering a problem they thought they’d already solved. They’re open to new points of view, new information, new ideas, contradictions, and challenges to their own way of thinking." - Jeff Bezos
Reply all
Reply to author
Forward
0 new messages