LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 11-13-2006, 05:12 PM   #1
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Rep: Reputation: 15
Question 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?

Thanks.
Gregory
 
Old 11-14-2006, 09:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 11-14-2006, 11:28 AM   #3
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by acid_kewpie
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?
 
Old 11-14-2006, 12:54 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 11-14-2006, 05:03 PM   #5
consistgd
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
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?

Thanks again.
Gregory
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find Physical Volumes associated with a Logical Volume Group mghiya Programming 3 09-27-2013 07:59 AM
How to Resize Root LVM Logical Volume??? jdupre Fedora 17 10-02-2010 07:21 AM
LVM -creating physical volume satimis Linux - General 2 08-10-2006 01:44 AM
LVM Physical Volume Lucky_Sevin Linux - Software 2 01-10-2006 10:44 AM
want to convert LVM physical volume to ext3 or vfs nikhil_damu Fedora 2 12-14-2005 11:16 PM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration