puppetlabs/lvm how to resize a logical volume and it's file system

asked 2017-03-06 16:44:28 -0500

jrbast gravatar image

Can anyone help on what is needed to resize an existing volume and file system using the puppetlabs/lmv module?

My current manifest looks like this...

logicalvolume { $volname: ensure => present, volumegroup => $vgname, size => $size, } filesystem { "/dev/mapper/${vgname}-${volname}": ensure => present, fstype => $fstype, require => Logicalvolume[$volname], } exec { $mount: path => '/bin:/sbin:/usr/bin:/usr/sbin', command => "mkdir -p ${mount}", logoutput => true, creates => $mount, } mount { $mount: ensure => mounted, atboot => true, device => "/dev/mapper/${vgname}-${volname}", fstype => $fstype, remounts => true, require => [Exec[$mount],Logical_volume[$volname]], } file { $mount: ensure => directory, owner => $owner, group => $group, mode => $mode, require => Mount[$mount], }

edit retag flag offensive close merge delete