Giter VIP home page Giter VIP logo

Comments (9)

MarkGibbons avatar MarkGibbons commented on August 25, 2024 1

Cool.

Cheers

from lvm.

polliard-jmfe avatar polliard-jmfe commented on August 25, 2024

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.

polliard-jmfe avatar polliard-jmfe commented on August 25, 2024

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.

MarkGibbons avatar MarkGibbons commented on August 25, 2024

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.

polliard-jmfe avatar polliard-jmfe commented on August 25, 2024

from lvm.

MarkGibbons avatar MarkGibbons commented on August 25, 2024

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.

polliard-jmfe avatar polliard-jmfe commented on August 25, 2024

from lvm.

MarkGibbons avatar MarkGibbons commented on August 25, 2024

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.

polliard-jmfe avatar polliard-jmfe commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.