Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Physical volume :resize doesn't seem to do anything #150

Open
taisph opened this issue May 2, 2018 · 0 comments
Open

Physical volume :resize doesn't seem to do anything #150

taisph opened this issue May 2, 2018 · 0 comments

Comments

@taisph
Copy link

taisph commented May 2, 2018

Cookbook version

4.1.12

Chef-client version

12.21.31

Platform Details

CentOS Linux release 7.4.1708 (Core)

Scenario:

Resize physical volumes.

Steps to Reproduce:

    lvm_physical_volume '/dev/sdb' do
      action :resize
    end

Expected Result:

Volume gets resized.

Actual Result:

Nothing happens. Manually running pvresize /dev/sdb correctly resizes as expected.

Running chef-client:

  * lvm_physical_volume[/dev/sdb] action resize[2018-05-02T11:33:36+02:00] INFO: Processing lvm_physical_volume[/dev/sdb] action resize (cubs-docker::default line 36)
 (up to date)

Checking pvs after:

# pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda2  os     lvm2 a--  <31.50g 100.00m
  /dev/sdb   docker lvm2 a--  <20.00g      0

Manually resizing:

# pvresize /dev/sdb
  Physical volume "/dev/sdb" changed
  1 physical volume(s) resized / 0 physical volume(s) not resized
# pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda2  os     lvm2 a--  <31.50g 100.00m
  /dev/sdb   docker lvm2 a--  <40.00g  20.00g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant