Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-06-2012
Registered User
 
Join Date: Jul 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi,
I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies

1)Physical Volume
2)Volume Group
3)Logical Volume
4)Physical Partition

Please help me to understand these concepts.

Last edited by methyl; 07-06-2012 at 02:38 PM.. Reason: Corrected question 1 to match post title
Sponsored Links
    #2  
Old 07-06-2012
drl's Avatar
drl drl is offline Forum Advisor  
Registered Voter
 
Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 1,480
Thanks: 15
Thanked 134 Times in 122 Posts
Hi, kashifsd17.

Welcome to the forum. We prefer that you do some searching to try to become a more independent problem-solver.

So next time, please try Google, etc..

However, one of the best briefings I have found is with many diagrams at:

Logical volume management

Best wishes ... cheers, drl
Sponsored Links
    #3  
Old 07-06-2012
Registered User
 
Join Date: Jul 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Drl,
Thanks for the reply. Actually I searched a lot but not got any satisfying answer to my question anywhere.That is why I posted it here.
    #4  
Old 07-06-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
The most important concept to grasp is that a Logical Volume within a Logical Volume Group can extend across multiple Physical Partitions of multiple Physical Volumes.

Tip: A Physical Volume from the point of view of your computer is a hard disc drive. In this modern age your computer could see a Storage Array (or part of a Storage Array) as one Physical Volume (though the Storage Array is actually composed of multiple discs).
i.e. When considering Physical Volumes always consider your computers view (looking out) regardless of the physical device.

The controlling software is Logical Volume Manager (LVM).

Ps: My first LVM course (albeit from Veritas) took 5 days. It's a big subject.
Sponsored Links
    #5  
Old 07-06-2012
Registered User
 
Join Date: Jul 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Methyl. Please correct me if I am wrong,
A physical volume = hard disk
Volume Group = total storage on a machine
Logical volume = A Partition on volume group
Is it so ?
Sponsored Links
    #6  
Old 07-06-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
Volume Group = An administrative group of Logical Volumes. A commercial computer can (and usually does) have multiple Volume Groups.
The sum of the size of alll the Volume Groups would be the total size of all the formatted disc space controlled by LVM.
You don't have to give all your discs up to LVM control, but there is rarely a reason to not give up all your Physical Volumes to LVM control.

Conventionally VG00 (Volume Group zero) is the system Volume Group (e.g. Logical Volumes: root, /usr, /var, /opt, /tmp ... and sometimes /home. No system account such as the root account should have its home directory on /home).

How you group your volumes after that is personal preference. I tend to use VG01 for user home directories and data, and VG02 onwards for databases. This is not a rule, just personal preference.
The Volume Groups become very important when designing backup strategies.

Physical Volume = From the point of view of your computer a physical hard disc.

Logical Volume = A logical disc which may spread across multiple physical discs. Your unix system will mount a Logical Volume on a mountpoint just as if it was a physical disc partition.

Hope this helps.

Last edited by methyl; 07-06-2012 at 04:22 PM.. Reason: typos, layout and formatting
Sponsored Links
    #7  
Old 07-06-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
There are two major concepts in LVM to grasp:

Striping.
Where you deliberately create a Logical Volume across partitions on multiple physical discs. This can give a dramatic performance improvement.

Mirroring.
Where you have one (or preferably more) mirror copies of your critical Logical Volumes on totally different physical disc drives.
Disc drives do fail. With careful design for resilience you can keep running with a failed disc drive and replace a hot-pull disc without interruption to service. Taking this concept further you can fit multiple hot spare disc drives and configure the LVM system to automatically replace the failed disc drive.

Given the option of performance against resilience I would choose resilience every time.

Don't forget to check your server for failed disc drives at least once a day.

Ps. Checking resilent Disc Arrays is equally important because a failure will not be visible to your unix system.

Last edited by methyl; 07-06-2012 at 04:30 PM.. Reason: typos, layout, Ps
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Logical volume name conflict in two volume group dantares AIX 10 12-07-2009 12:12 PM
Unmount and remove all Logical vol.Volume group and physical disk joeli HP-UX 3 01-27-2009 09:59 AM
Basic Filesystem / Physical Volume / Logical Volume Check chipahoys AIX 1 12-02-2008 07:05 AM
Moving a Logical Volume from one Volume Group to Another krisw AIX 2 07-14-2008 07:48 AM
LVM - Extending Logical Volume within Volume Group ghimanshu UNIX for Advanced & Expert Users 3 07-26-2007 07:39 AM



All times are GMT -4. The time now is 11:13 AM.