LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-16-2010, 01:10 PM   #1
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 293

Rep: Reputation: 36
extend physical volunes


Hi there,

Is is possible to extend physical volume disk space from one to another?

Quote:
PV VG Fmt Attr PSize PFree
/dev/sda1 Zeus-extra lvm2 a- 149.05G 17.05G
/dev/sdb1 Zeus-misc lvm2 a- 394.96G 274.96G
Could I get 50GB from /dev/sdb1 and add it to /dev/sda1 ???

Thanks
 
Old 09-16-2010, 03:58 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
Not exactly.

The purpose of LVM is to allow you to combine multiple physical volumes into a single Volume Group with vgcreate. At that point the Volume Group can be thought of as a hyperdisk which can be broken into multiple logical volumes with lvcreate (think of the lvs like partitions of the hyperdisk).

In the Linux LVM implementation what you CAN do is use real partitions of the physical disk as "physical disks" for pvcreate. That is to say instead of adding /dev/sda and /dev/sdb to the volume group you can first create partitions on /dev/sda so that you have /dev/sda1, /dev/sda2, /dev/sda3 etc... for as many as you need as well as /dev/sdb1, /dev/sbd2, /dev/sdb3 etc... You would do pvcreate on these partitions then use the partitions rather than the whole disk in your volume group. (e.g. You could put /dev/sda2 and /dev/sdb3 in VolGroup00, /dev/sda1 and /dev/sdb2 in VolGroup00 etc...).

It only makes sense to partition like that if:
1) You are making multiple Volume Groups or
2) You are using the other partitions for other purposes (e.g. making /dev/sda1 a boot partition and /dev/sdb2 the physical volume for your volume group).

That is to say you COULD make a volume group comprised of /dev/sda1 and /dev/sda2 but since they're on the same physical disk there is no reason to do it that way - you get no redundancy.

Last edited by MensaWater; 09-16-2010 at 03:59 PM.
 
  


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 can i extend my desktop to a tv? AaronB93 Linux - Newbie 5 08-25-2009 08:53 AM
how to extend md device bharatlalgupta Red Hat 4 03-20-2009 02:49 AM
how to extend partition? Sushy *BSD 2 01-25-2007 01:29 PM
How to extend /home fw12 Linux - Software 5 09-06-2006 08:04 PM
WinXP on one physical drive and SUSE 10 on another physical drive flanker12k Linux - Newbie 4 05-13-2006 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration