I'm using the lvm puppet module, this is up to date and unchanged, this functions perfectly as far as I can tell when creating a new server (code with identifiable values removed below).
physical_volume { '/dev/sdb':
ensure => present,
} ->
volume_group { 'testvg':
ensure => present,
physical_volumes => '/dev/sdb',
} ->
logical_volume { 'test':
ensure => present,
volume_group => 'testvg',
} ->
filesystem { '/dev/mapper/testvg-test':
ensure => present,
fs_type => 'xfs',
} ->
file { '/test':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0644',
} ->
mount {'/test':
ensure => 'mounted',
fstype => 'xfs',
device => '/dev/mapper/testvg-test',
pass => '2',
atboot => true,
}
Now comes the hard part; if I expand the physical size of the disk (/dev/sdb), let's say from 10gb to 20gb, I'd assume that without setting extents (quote from the module here: "Set to undef to use all available space") the lv would be automatically resized to fill the capacity of the disk and ideally the underlying filesystem would be resized (or at the very least lvdisplay would pick up the new size).
However absolutely nothing happens. Things I've tried:
Setting the extents to be 100%FREE (nothing happens) Exec to run a pvextend (exec runs fine, but nothing happens after this) Manually setting the size via facter (fails with insufficient disk space). Changing the extents to be "+100FREE" rather than "100%FREE" (unknown value).
I feel like any changes I make at this point are likely to be on the module, and thus something is either very wrong with my code or wrong with the module.