Comments (9)
Cool.
Cheers
from lvm.
The attributes used were
default['jmfe_elastic_cluster']['logical_volume_group']['name'] = 'data' default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchlog']['GBsize'] = 1 default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchlog']['path'] = '/var/log/elasticsearch' default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchlib']['GBsize'] = 1 default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchlib']['path'] = '/var/lib/elasticsearch' default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchcfg']['GBsize'] = 1 default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchcfg']['path'] = '/etc/elasticsearch' default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchshare']['GBsize'] = 1 default['jmfe_elastic_cluster']['logical_volumes']['elasticsearchshare']['path'] = '/usr/share/elasticsearch'
from lvm.
I tried to hard set the the LV with the following
lvm_logical_volume 'elasticsearch-cfg' do size '1G' filesystem 'xfs' mount_point location: '/etc/elasticsearch', options: 'noatime,nodiratime' end
Doing that resulted in the EXACT same error. This is being run against a RHEL 7.2 system. Any ideas? Im pretty sure this is a bug. I did try to run it against the 4.0.4 version as well.
from lvm.
I think you need to specify a volume group.
group = new_resource.group
device_name = "/dev/mapper/#{to_dm_name(group)}-#{to_dm_name(name)}"
from lvm.
from lvm.
lvm_logical_volume key do
size "#{size}G"
filesystem 'xfs'
mount_point location: "#{path}, options: 'noatime,nodiratime'"
end
I still don't see it.
from lvm.
from lvm.
Just saying, rather than post the recipe, try specifying the the volume_group for the resource. Fixing "volume_group is not required" is in my back log of PRs to make against this product. It's a pretty well known problem.
from lvm.
I had the lvm_logical_volume within a lvm_volume_group block and didn't understand that you were stating to remove it from the block and just add the group option to the lvm_logical_volume resource. The reason the lvm_volume_group was not shown but I stated it was given was because it was in the outer block. As you stated, adding the group option to the lvm_logical_volume resource worked perfectly. Thanks again for the help.
from lvm.
Related Issues (20)
- Missing attribute file after upgrading LVM package on RHEL7 HOT 4
- Path to lvm binary should be set by default HOT 3
- This cookbook is not using the latest chef-ruby-lvm-attrib gem 0.2.6
- undefined method `ignore_skipped_cluster' for Chef::Resource::LvmThinVolume
- DB library error: db5 error(-30973) HOT 2
- Logical volume :resize and :remove don't seem to do anything
- Red Hat 7.7 causing LVM to fail with the same errors as https://github.com/chef/chef-ruby-lvm-attrib/issues/7 HOT 2
- Switching to chef-ruby-lvm-attrib version 0.3.2
- a bad patch to quiet the generate_field_data" from chef-ruby-lvm-attrib conflicts with /opt/chef/embedded/bin/generate_field_data issue HOT 1
- NoMethodError: undefined method `action' for Chef::Provider::LvmLogicalVolume:Class HOT 4
- Resource provider conflict for lvm_volume_group
- Red Hat 8.2: Unable to load lvm attributes [lvs.yaml] for version [2.03.09(2)] HOT 3
- eibcccttcekgvgvkkvnngnujrllcldlvnjjtugdnincn
- RHEL 8.4: No support for lvm 2.03.11(2)
- Unable to load lvm attributes [lvs.yaml] for version [2.02.188(2)] HOT 3
- pvcreate gets stuck if the device has a valid filesystem signature HOT 1
- Red Hat 8.6: Unable to load lvm attributes [lvs.yaml] for version [2.03.14(2)]
- Cookbook needs updated to use the newest chef-ruby-lvm-attrib gem
- RHEL9 - Unable to load lvm attributes [lvs.yaml] for version [2.03.16(2)]. HOT 1
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvm.