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

GPT disklabel and partition alignment #25

Open
bjozet opened this issue Aug 18, 2015 · 6 comments
Open

GPT disklabel and partition alignment #25

bjozet opened this issue Aug 18, 2015 · 6 comments

Comments

@bjozet
Copy link
Contributor

bjozet commented Aug 18, 2015

In server_setup recipe, fdisk could be replaced with parted to allow for proper usage of disks larger than 2TB, by using GPT disklabels. The partitions that is created should also be properly aligned for best performance.

I'm no longer using glusterfs, but thought I'd leave this here for you to think about, if you'd wish to implement it in the future.

This blog post contains lots of good information and links to other resources:
http://rainbow.chard.org/2013/01/30/how-to-align-partitions-for-best-performance-using-parted/

@shortdudey123
Copy link
Owner

Thanks! I will take a look at it

@bushong1
Copy link

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

@shortdudey123
Copy link
Owner

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

@bjozet
Copy link
Contributor Author

bjozet commented Dec 15, 2015

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.

@shortdudey123
Copy link
Owner

@bjozet
Copy link
Contributor Author

bjozet commented Dec 15, 2015

@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! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants