Difference between volume, partition and lun

What is the difference between a volume, partition and lun? How do they relate (or not) to each other? If there is a diagram available to explain it better that would be great
marvinbautistaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DavidPresidentCommented:
A volume can be a logical or physical entity like a physical disk drive, or a 2-disk RAID1 set.  This volume is sliced into 1 or more logical partitions.  Each partition would generally have a filesystem on it.  In the windows terminology you would  take a volume, partition that volume into a C and E drive.  

A LUN is  computer-speak for the identifier name or number assigned by the hardware + O/S for the logical volume.

The disk controller and BIOS deals with volumes by their LUN, those things are unaware and don't care about partitions.
0
Nathan RileyFounderCommented:
LUN is a logical disk as created on SAN storage array and is assigned to host in SAN using LUN binding, It appears on the host as local disk.
Storage array usually have large storage capacity, we don't want one  server to use the whole thing, so we divide it into logical units (LUN) is actually Logical Unit Number, so we get storage sliced into usable chunks, and present  it to the server. In a simple example, suppose it shows up as local disk on server just like /dev/sdc.

Volume We carve out volume using one or more LUNs (storage disks from OS's view) We want to be able to add more space or shrink the space. volume makes it possible. We can resize that LUN on the  storage array (or even create another LUN and present that to the  server) and using LVM (Logical Volume Manager), We can grow the volume without rebooting.There are several good features like cloning, mirroring, high availability etc.of volumes.
0
skullnobrainsCommented:
a LUN is a logical disk created on a SAN.
it can actually be a physical disk, a raid array of physical disks, a raid array of partitions of physical disks, a partition of a single disk...

a volume is a storage device in the OS.
LUNs, physical disk drives, iSCSI exports, ... are volumes from the OS's perspective.
volumes can either be sliced and/or partitioned, or used like one would use a partition (see below).

a partition is a fraction of a volume.
volumes can be partitioned in various ways (gpt for example). usually, a single partition contains a single filesystem. partitions can also be used in other various ways such as raw space for specific applications such as database engines, raw space for a virtual machine (in that case, the guest OS will "see" that partition as a volume), swap space...

---

to make things simple, most OSes nowadays implement logical volume managers which have the ability to combine volumes and/or partitions (and sometimes files) in order to create logical volumes.

to make things even simpler, software such as zfs or btrfs combine the feature of volume managers and filesystem. they can create data pools (which are more or less the equivalent of logical volumes) out of a combination of mostly anything that looks like data storage, and create multiple parallel filesystems in those pools without partitioning them.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
marvinbautistaAuthor Commented:
Thank you for all your feedback. All your answers have been great!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Management

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.