• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 665
  • Last Modified:

Why align a virtual lun

Hi,

The need of aligning a raw lun or ISCSI lun  I understand.
But why align a virtual lun, it is just a file.

0
MTasova
Asked:
MTasova
3 Solutions
 
madan1278Commented:
If the virtual lun resides on a shared storage, the VM can be failed over seamlessly via the vmmotion network.
In a virtual lun acts like a physical to the actual VM's.
0
 
andyalderCommented:
The virtual KUN may be just a file but files are made up of blocks and clusters and these should be aligned to an even boundary to avoid split I/Os. See the drawing on page 5 of http://www.vmware.com/pdf/esx3_partition_align.pdf. (it can get even worse if the SAN LUN itself is a file under iSCSI target software, then there's yet another layer where mis-alignment can occur)
0
 
Justin CAWS Solutions ArchitectCommented:
Essentially, it is still a file which is accessed by looking up the associated blocks on the underlying disk subsystem.  If the file is alligned, one virtual block will (well, should) map to one physical block and one I/O operation is used to read it.  If the virtual blocks are mis-aligned and span multiple physical blocks, each 'read' of a virtual block will require the disk head to read multiple physical blocks.  In other words, there will be more read/write operations required to write a single virtual block of data should the file be mis-aligned.
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now