Giter VIP home page Giter VIP logo

Comments (6)

shortdudey123 avatar shortdudey123 commented on July 17, 2024

Thanks! I will take a look at it

from chef-gluster.

bushong1 avatar bushong1 commented on July 17, 2024

We just ran into this problem :( Definitely causes issues when trying to add a drive > 2TB.

from chef-gluster.

shortdudey123 avatar shortdudey123 commented on July 17, 2024

@bushong1 in the pending rewrite, LVM is used instead of fdisk

from chef-gluster.

bjozet avatar bjozet commented on July 17, 2024

Please consider creating GPT disklabel regardless! The recommended setup for LVM is to use a partition spanning the whole disk for the PV anyway.

It would probably be as easy as including "package parted" and modifying the old fdisk commands in the recipe.

from chef-gluster.

shortdudey123 avatar shortdudey123 commented on July 17, 2024

@bjozet LVM uses pvcreate, not fdisk
See https://github.com/chef-cookbooks/lvm/blob/master/libraries/provider_lvm_physical_volume.rb#L44

from chef-gluster.

bjozet avatar bjozet commented on July 17, 2024

@shortdudey123, The lvm-cookbook doesn't seem to take alignment into consideration, and that is kind of the point of this issue. Yes, you can use pvcreate on a raw device without partitions on it. To get alignment, pvcreate needs proper arguments to it, which i didn't see in the lvm-cookbook (although, i might have missed it, didn't look too long), hence my suggestion to use "parted" to create an aligned partition first, together with a GPT disklabel. Or this whole alignment issue could be filed against the lvm-cookbook.

I'm not gonna argue a lot about it, since i'm not using the gluster cookbook, I just happened to get the notification when there was activity on the issue.

Which ever way you choose to go, good luck! :-)

from chef-gluster.

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.