LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2016, 12:04 PM   #1
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
LUN Vs LVM


Hello all;

I have a confusion.

Is LUN same as LVM ?

PHP Code:
Where/When we use LUN ?
Where/When we use LVM 

Last edited by Joy Stick; 01-12-2016 at 12:10 PM.
 
Old 01-12-2016, 01:18 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
They are both three-letter acronyms that begin with "L". Beyond that, they don't have much in common. Why don't you actually look up both and then indicate what in those descriptions confuses you?

http://www.acronymfinder.com/
 
Old 01-12-2016, 01:42 PM   #3
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: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
LUN = Logical unit
This is usually device presented to the OS as if it were physical disk but is in fact a logical disk (e.g. a RAID device comprised of multiple physical disks). Examples of LUNs would be those provided via SAN to your host from a disk array like those made by Hitachi, EMC, etc... or RAID sets prevented by an internal adapter such as the Dell PERC card.

LVM = Logical Volume Manager
This is a method of combining storage items and subdividing them. Often in large environments like the one here we use LUNs as LVM PVs (Physical Volumes) to create VGs (Volume Groups) that are then subdivided into LVs (Logical Volumes).

So in general when you think of it:
LUN = Something the OS sees as a disk that can be used as a disk in and of itself (i.e. can be partitioned) or combined into other structures such LVs.
LV = A subdivision of another structure called a VG.
 
Old 01-13-2016, 11:30 PM   #4
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi MensaWater

Sorry for delay. Thanks for reply.

I Found defination of LUN as below

Quote:
A LUN is a Logical Unit Number. It can be used to refer to an entire physical disk, or a subset of a larger physical disk or disk volume. The physical disk or disk volume could be an entire single disk drive, a partition (subset) of a single disk drive, or disk volume from a RAID controller comprising multiple disk drives aggregated together for larger capacity and redundancy.
1) I know what is RAID , what do they mean about Raid controller ?


Quote:
With the help of 3rd party volume managers we are creating LUNS - By my tutur.
I seen many inks - they did not use any 3rd volume managers and done LUN configuration.

2. Do we need 3rd party voulme managers to create LUN in SAN storage ?
3. In real env, are they using which controller (scsi/iscsi/fc/sas/) ?

FYI: Few things i dont understand. Example -(internal adapter such as the Dell PERC card)

Simple definition would be better instead of using some terminologies related to STORAGE
I am a beginner thats why i ask real time gurus Please dont mind it.

Last edited by Joy Stick; 01-14-2016 at 12:07 AM.
 
Old 01-14-2016, 08:19 AM   #5
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: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
1. RAID Controller is a generic term that is talking about a hardware adapter in your system that is used to create one or more RAID sets. It can do this for internal disks attached to it or for some external enclosures of disks. It implies "Hardware RAID".

Another type of RAID is "Software RAID" which is when you use software to create RAID sets rather than a controller. Examples of this would be Linux Meta-disks and Veritas Volume Manager (VxVM). LVM itself although not generally thought of as RAID is actually RAID to the degree that it concatenates multiple devices into a VG usually and can also do mirroring (RAID 1). One of the tricky things about storage discussions is you can use entire disks, individual partitions of disks or LUNs presented by other tools within volume managers like LVM and VxVM. (e.g. You could use meta-disks mirors as your PVs within LVM).

VxVM or another commercial software might be what your tutor means by "3rd party volume managers". He may also be talking about an external disk array that presents its own devices (LUNs) to your system.

2. No. If your SAN environment includes an external disk array that presents devices to your operating system (OS) then you can often use those devices the same way you would any internal disk. The devices you see are LUNs but your system just sees them as disks.
However, many of the large array makers may have tools you can install on the OS to manage disks. (e.g. EMC provides PowerPath for multipathing which can be used instead of the native Linux multipathd. Other tools such as VxVM have things such as Dynamic Multipath [DMP] that can be used. Often if you're using SAN you do want to do multipathing of some sort to prevent single points of failure and/or to increase througput.

3. In real environments people may use any or all of the technologies. For examaple here we use Dell PERC in our Dell Servers to create hardware RAID on internal disks but also use Qlogic fiber channel (FC) controllers to present disks from external arrays (previously EMC and now Hitachi) to our servers for additional storage requirements such as that needed by large databases. Generally speaking we put all devices in VGs that we subdivide into LVs as required.
Your "scsi/iscsi/fc/sas" is mixing concepts:
SAS = Serial attached SCSI but is usually used to refer to a type of disk and the way it connects to whatever it is installed in (e.g. servers can have internal SAS drives and disk arrays can also contain SAS drives). Most of the newer PERC controllers are actually SAS controllers that let you build RAID on the attached SAS drives.
SCSI = A type of disk and also a type of attachment that predates SAS. FC actually presents disks over SCSI.
FC = Fibre channel - A type of SAN attachment that uses SCSI standards to present disks over fibre optics. However, there are hybrid solutions such as FCOE which does "fibre channel over ethernet".
iSCSI = Using normal networking hardware to present storage using SCSI protocols. Some disk arrays have both FC and iSCSI built in. Note this is a competing (and more often used) standard to FCOE.
You didn't mention SATA/PATA/IDE which is another disk type and attachment.
Just to make it fun SCSI connections themselves can be varied.

Asking for simple definitions of complex subjects isn't going to get you anywhere. I *did* give you simple definitions followed by discussion. As you can see from the above you are actually asking about multiple different things under an overall concept called "storage" which is a very broad category. You can search the web for any concept followed by the word tutorial.
e.g.
scsi tutorial
sas tutorial
fc tutorial
raid tutorial
lvm tutorial
san tutorial

Attempting to understand everything all at once isn't usually a good strategy. I find learning concepts as I need to use them works much better.
 
1 members found this post helpful.
Old 01-14-2016, 08:37 AM   #6
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Thanks MensaWater.
 
Old 01-14-2016, 09:50 AM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Also if you want to readup on LVM and how to use it here are some URLS that helped me.

http://www.howtogeek.com/howto/40702...ent-in-ubuntu/

http://blog.frands.net/linux-lvm-how-to-182/
 
1 members found this post helpful.
  


Reply



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
LVM Creation using LUN sagar666 Linux - Server 6 07-05-2014 03:19 AM
Replacing 200 GB LUN with 100 GB LUN in LVM rajaniyer123 Linux - Enterprise 4 03-27-2012 12:32 PM
LUN has been grown. How to see available space in LVM? z33tec Linux - General 1 11-19-2011 01:01 AM
[SOLVED] Effect (slow down?) using LVM on LUN karateckie Linux - Server 4 05-14-2010 08:02 AM
Use LVM for SAN LUN's or not? zQUEz Linux - Server 4 11-24-2009 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 AM.

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