LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-30-2007, 09:24 AM   #1
wolfipa
LQ Newbie
 
Registered: May 2004
Location: Austria
Distribution: Fedora Ubuntu OpenSuse
Posts: 26

Rep: Reputation: 15
change LVM volume group to use more stripes


Hi.

i recently installed a new ubuntu system and created lots of mount points on one LVM volume group (spanned across 4 physical drives)

Afterwards I noticed that every mount point was placed on only one of the physical drives installed.

is it possible to change an existing volume to use all drives - or do I have to create a new partition (spanned across the wanted drives) and move the data from the old to the new one.

any thoughts about this?

thanks for any help in advance.
 
Old 11-30-2007, 11:06 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by wolfipa View Post
i recently installed a new ubuntu system and created lots of mount points on one LVM volume group (spanned across 4 physical drives)

Afterwards I noticed that every mount point was placed on only one of the physical drives installed.
How do you know the mount points are on only one drive?

Quote:
Originally Posted by wolfipa View Post
is it possible to change an existing volume to use all drives - or do I have to create a new partition (spanned across the wanted drives) and move the data from the old to the new one.

any thoughts about this?

thanks for any help in advance.
I am not a LVM expert, but if you use ext2 or ext3, Linux randomly locates files across the entire partition. This is the reason that you never really need to defragment a Linux file system. If the partition spans multiple drives (e.g. is a LVM partition) the data should be randomly distributed across the drives.

I still really do not understand how you are able to determine that mount points are on a specific drive, unless you are looking at raw disk data. In that case, inodes may be close to the start of the partition, and therefore on the first drive in the set. If you want the inode table to span multiple drives, you will probably need to use some type of RAID striping (e.g. RAID5).
 
Old 11-30-2007, 11:17 AM   #3
wolfipa
LQ Newbie
 
Registered: May 2004
Location: Austria
Distribution: Fedora Ubuntu OpenSuse
Posts: 26

Original Poster
Rep: Reputation: 15
if you run lvcreate you can specify the following option:
-i, --stripes Stripes
Gives the number of stripes. This is equal to the number of
physical volumes to scatter the logical volume.

when running the lvdisplay - you get information about the used stripes ...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 08:45 PM
Keyboard volume knob configuration-cannot change volume. Ariox Ubuntu 1 03-22-2007 03:06 PM
lvm:didn't do pvcreate on partition, before adding it to volume group kpachopoulos Linux - General 3 03-11-2007 09:22 AM
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 05:17 PM
LVM Problem - vgimport - wrong number of physical volumes to import volume group Anything1 Linux - Software 0 09-06-2003 08:18 PM


All times are GMT -5. The time now is 07:27 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