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

mkfs does not work for btrfs #131

Closed
EugenMayer opened this issue Jun 13, 2017 · 0 comments
Closed

mkfs does not work for btrfs #131

EugenMayer opened this issue Jun 13, 2017 · 0 comments

Comments

@EugenMayer
Copy link

Cookbook version

latest

Chef-client version

latest

Platform Details

debian jessie latest

Scenario:

just using the LVM cookbook to create a lv

Steps to Reproduce:

use a debian jessie, and provision with chef while creating a lv with btrfs as filesystem

Expected Result:

should work

Actual Result:

During the execution it fails with:

Doing it on the shell manually it results int

10.1.7.154     Error executing action `create` on resource 'lvm_logical_volume[data]'
10.1.7.154     ================================================================================
10.1.7.154     
10.1.7.154     Mixlib::ShellOut::ShellCommandFailed
10.1.7.154     ------------------------------------
10.1.7.154     Expected process to exit with [0], but received '1'
10.1.7.154     ---- Begin output of yes | mkfs -t btrfs  /dev/mapper/system-data ----
10.1.7.154     STDOUT: 
10.1.7.154     STDERR: mkfs.btrfs: No such file or directory
10.1.7.154     ---- End output of yes | mkfs -t btrfs  /dev/mapper/system-data ----
10.1.7.154     Ran yes | mkfs -t btrfs  /dev/mapper/system-data returned 1
10.1.7.154     
10.1.7.154     Cookbook Trace:
10.1.7.154     ---------------
10.1.7.154     /var/chef/cache/cookbooks/lvm/libraries/provider_lvm_logical_volume.rb:87:in `action_create'
10.1.7.154     
10.1.7.154     Resource Declaration:
10.1.7.154     ---------------------
10.1.7.154     # In /var/chef/cache/cookbooks/kontextwork-base/recipes/filesystem_lvm_lv_data_extend.rb
10.1.7.154     
10.1.7.154      10:     lvm_logical_volume data_lv_name do
10.1.7.154      11:       group vg_name
10.1.7.154      12:       size '100%FREE'
10.1.7.154      13:       filesystem 'btrfs'
10.1.7.154      14:       mount_point location: data_mount_point, options: 'nodatacow noatime nodiratime'
10.1.7.154      15:       action :create
10.1.7.154      16:     end
10.1.7.154      17:   when 'ext2','ext3', 'ext4'
mkfs -t btrfs  /dev/mapper/system-data
mkfs.btrfs: No such file or directory

but doing

mkfs.btrfs /dev/mapper/system-data

works

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