OlliesDad@googlemail.com
2010-Oct-15 09:32 UTC
[Puppet Users] puppet-lvm and volume group issues
Trying to setup a volume group with puppet lvm and this:-
volume_group { "my_vg":
ensure => present,
physical_volumes => "/dev/sdb /dev/sdc /dev/sdd",
require => [ Physical_volume["/dev/sdb"],
Physical_volume["/dev/sdc"],
Physical_volume["/dev/sdd"]
]
}
Fails with this in the debug output:-
debug: volume_group provider lvm: Executing ''/usr/sbin/vgcreate my_vg /
dev/sdb /dev/sdc /dev/sdd''
/usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:133:in `vgcreate''
/usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:140:in `vgcreate''
err: //myvg::setup/myvg::disks/Volume_group[my_vg]/ensure: change from
absent to present failed: Execution of ''/usr/sbin/vgcreate my_vg /dev/
sdb /dev/sdc /dev/sdd'' returned 1280: File descriptor 8 (/tmp/puppet.
15759.0) leaked on vgcreate invocation. Parent PID 15759: /usr/bin/
ruby
If I do it with a single physical volume it''s fine, and if I run the
command from the command line it''s fine also.
Any ideas ?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
On Fri, 2010-10-15 at 02:32 -0700, OlliesDad@googlemail.com wrote:> Trying to setup a volume group with puppet lvm and this:- > volume_group { "my_vg": > ensure => present, > physical_volumes => "/dev/sdb /dev/sdc /dev/sdd", > require => [ Physical_volume["/dev/sdb"], > Physical_volume["/dev/sdc"], > Physical_volume["/dev/sdd"] > ] > } > > Fails with this in the debug output:- > debug: volume_group provider lvm: Executing ''/usr/sbin/vgcreate my_vg / > dev/sdb /dev/sdc /dev/sdd'' > /usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:133:in `vgcreate'' > /usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:140:in `vgcreate'' > err: //myvg::setup/myvg::disks/Volume_group[my_vg]/ensure: change from > absent to present failed: Execution of ''/usr/sbin/vgcreate my_vg /dev/ > sdb /dev/sdc /dev/sdd'' returned 1280: File descriptor 8 (/tmp/puppet. > 15759.0) leaked on vgcreate invocation. Parent PID 15759: /usr/bin/ > ruby > > If I do it with a single physical volume it''s fine, and if I run the > command from the command line it''s fine also. > > Any ideas ? > > Thankscan you verify if the sd[bcd]''s have been ''pvcreate''d? Jeff -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 15 Oct 2010, at 21:51, Jeff Schmidt wrote:>> >> >> If I do it with a single physical volume it''s fine, and if I run the >> command from the command line it''s fine also. >> >> Any ideas ? >> >> Thanks > can you verify if the sd[bcd]''s have been ''pvcreate''d? >Yes the physical volumes have all been set fine. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.