LVM: How to create logical (physical) volume with extent sie 32 Mb
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
LVM: How to create logical (physical) volume with extent sie 32 Mb
When I installed FC5, the extent size on logical volumes it created was 32M. The I added another hard drive and created another volume group. While I created that, the software formatted partition wih 4M extent, there where no questions asked, so I assume it was by default.
As I undrstand, smaller extend size will allow to use disk space more efficiently, but will make it work slower. How much slower? Is that make sense to reformat it?
Finally: How I can reformat it with extent size defined explicitly?
for a normal user you won't see much difference really. if you have *HUGE* disks then you would want a much bigger extent size, but within desktop ranges you'll really not see any difference. you can set an extent sizse with the -L option to lvcreate.
for a normal user you won't see much difference really. if you have *HUGE* disks then you would want a much bigger extent size, but within desktop ranges you'll really not see any difference. you can set an extent sizse with the -L option to lvcreate.
Many thanks for the replay!
Is the extent size defined at LV level?
What is the procedure to recreate existing LV?
What if the existing LV contains some data, do I loose it?
oh, my bad, sorry you define a physical extent size at a volume group level, to it'sd the -s option to vgcreate. the lvcreate uses a given number of extent blocks, so it's the size of the LV in terms of the number of extents.
i'm not a guru with LVM to be honest, but i'm fairly sure you would need to formally back up an LV before nuking it and recreating it.
oh, my bad, sorry you define a physical extent size at a volume group level, to it'sd the -s option to vgcreate. the lvcreate uses a given number of extent blocks, so it's the size of the LV in terms of the number of extents.
i'm not a guru with LVM to be honest, but i'm fairly sure you would need to formally back up an LV before nuking it and recreating it.
Many thanks for your help. It worked with vgcreate. The only thing confuses me: I had to create LV using GUI program system-config-lvm because I did not find, how to define mout point and "mount after reboot" for a newly created LV. Is that done with mount command separately?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.