Skip to content

Error executing action create on resource 'lvm_physical_volume['/dev/sdb']' #99

Open

Description

Cookbook version

2.1

Chef-client version

version 12.8.1

Platform Details

Red Hat Enterprise Linux Server release 6.7 (Santiago)

Scenario:

execute lvm_physical_volume physical_volumes.to_s on subsequent executions of the chef client

Steps to Reproduce:

lvm_physical_volume physical_volumes.to_s

lvm_volume_group group.to_s do
physical_volumes physical_volumes.to_s
end

lvm_logical_volume name.to_s do
group group.to_s
size size.to_s
filesystem filesystem.to_s
mount_point mount_point.to_s
if stripes.to_i > 0
stripes = stripes.to_s
end
end

If I comment out the lvm_physical_volume it completes. So its not detecting that the pvcreate has already been run.

Expected Result:

to see the pvcreate has already been executed and continue execution of cookbook.

Actual Result:

================================================================================
Error executing action `create` on resource 'lvm_physical_volume['/dev/sdb']'
================================================================================

LVM::External::ExternalFailure
------------------------------
Fatal error, `/sbin/lvm pvcreate '/dev/sdb'` returned 5 with 'Can't initialize physical volume "/dev/sdb" of volume group "vg01" without -ff'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions