lvm::volume {'setvolume':
vg => 'myvg',
pv => '/dev/sdb',
fstype => 'ext3',
name => 'mylv',
size =>'8G',
}
best of luck!
Walter
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
--
Walter Heck
--
follow @walterheck on twitter to see what I'm up to!
--
Check out my new startup: Server Monitoring as a Service @ http://tribily.com
Follow @tribily on Twitter and/or 'Like' our Facebook page at
http://www.facebook.com/tribily
The module is has a define like this:
define lvm::volume($vg, $pv, $fstype = undef, $size = undef, $ensure) { ..
which means $ensure has no default value
also, it has a snip
"default: {
fail ( 'puppet-lvm::volume: ensure parameter can only be set to
cleaned, absent or present' )
}"
So if you dont provide an $ensure, it will fail with the above error.
Adding to Walter's snip ..
lvm::volume {'setvolume':
vg => 'myvg',
pv => '/dev/sdb',
fstype => 'ext3',
name => 'mylv',
size =>'8G',
ensure => 'present',
}
--
Krish
www.toonheart.com
On 02/03/2012 01:33 PM, Luke wrote:
> Hmmm that is what I have been doing but for some reason it keeps
> messing up. Do I have to do an include or something for the puppet-lvm
> module? I mean I already have an import statement for it in my
> sites.pp.
please share a relevant excerpt from your manifest.
Is an error generated? Please share that as well.
Thanks,
Felix
On 02/03/2012 02:37 PM, Luke wrote:
> When I name the module lvm. I applys the config but doesn't do
> anything.
> info: Caching catalog for luketest.mgmt.mydomain.local
> info: Applying configuration version '1328241141'
> notice: Finished catalog run in 0.03 seconds
please repeat with --evaltrace.
Is it supposed to be doing anything?
If evaltrace isn't concluse, you may want to add -dv.
Finally, you can even inspect the catalog in /var/lib/puppet. If it
doesn't mention your LV, something is wrong indeed.
HTH,
Felix
Looks like it's working all right. But seeing as the LV exists already,
puppet doesn't need to do anything.
Try and add a new LV in the manifest, watch puppet create it.
HTH,
Felix
On 02/03/2012 03:04 PM, Luke wrote:
> Disk /dev/sdb: 8589 MB, 8589934592 bytes
> 255 heads, 63 sectors/track, 1044 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk /dev/sdb doesn't contain a valid partition table
>
> Its not even doing anything with /dev/sdb.
What makes you so certain? :-)
Output of pvs and lvs, please.
Thanks,
Felix
Ugh, why do people insist on using this instead of pvs?
Anyway, you're right, the LV isn't there. Neither is the PV.
Are the PV and VG defined somewhere in your manifest? They should be. I
have no experience with this module, but maybe it silently ignores LVs
which it cannot create due to the missing VG.
Ah, dreadful ;-)
But there goes that theory - the PV and VG are implicitly created, so
the module really *should* do the right thing.
So the issue is probably with the provider(?)
I'm stumped.
Felix
HTH
Den