본문 바로가기
조회 수 3101 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

Running VMs from NFS Datastores

http://blog.peacon.co.uk/wiki/Running_VMs_from_NFS_Datastores


Due to the 4K cluster size used by Linux servers, guest operating systems running from NFS datastores must have properly aligned partitions (at an exact multiple of 4KB). This is much more important than for iSCSI volumes, since the performance penalty from iSCSI, accessible in 512-byte sectors, affects only a small proportion of requests. For NFS, improper alignment will affect every write request.

Contents

 [hide

Effect of Missalignment

For every random write (sequential performance will not be affected due to coallescing of sequential IO), ESX(i) NFS client requests the write using byte addressing, hence providing no penalty.

However, where the write is not against a 4KB boundary (or is less than 4KB), the underlying Linux kernel in the NFS server then performs a read-update-write procedure. This has the effect of providing spindle latency to writes and reduces the controller queue depth to around 1 IO, reducing performance of the array to that of a single drive.

Testing using IOMeter in a Windows VM running from a datastore provided by Debian NFS using a Dell PowerEdge 2950 Server with 6x SAS 15k disks (RAID-5) on a Perc 6i RAID controller with 256MB battery-backed write cache, 4K random write performance with 32 outstanding IOs is:

  • 850 IOPS at 37ms on an aligned partition
  • 200 IOPS at 160ms on a misaligned partition

Aligning Partitions in Windows

Windows prior to Vista and 2008 aligns to 63 sectors (31.5K) and hence should not be run from NFS without correcting this. Although the boot partition cannot be easily aligned, it should have minimal impact on performance provided that the VM has sufficient RAM assigned to avoid paging.

Data partitions need to be (re)created manually using diskpart:

create partition primary align=64


Aligning Partitions in Linux

Partitions must be created manually to ensure correct alignment.

  • fdisk /dev/sdb (sda is first SCSI/SAS disk, sdb is second and so on, hda is the first IDE disk)
  • u (to change units to sectors)
  • n (for new partition)
  • p (for primary)
  • 1 (for first primary partition)
  • 128 (to specify a starting sector of 128, i.e. 64K aligned
  • [enter] (to accept default end cylinder using entire drive)
  • w (to write table to disk)


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
37 Repeated characters when typing in remote console (ESX) Hojung 2014.11.21 1786
36 Accessing the Virtual Bios in vmware products Hojung 2014.11.15 1845
35 SSH access to ESXi/ESX hosts with public/private key Hojung 2014.11.12 1742
34 Auto Start/Shutdown Virtual Machines (VMs) in ESXi file Hojung 2014.11.10 1711
33 Install Sophos UTM Virtual Appliance on ESXi file Hojung 2014.11.07 5446
32 Fix ethernet interface when cloning linux VM or adding additional NIC in VMWare (ESX) file Hojung 2014.11.07 1481
31 Setting up VMware ESXi 5.5 on the Gigabyte Brix Hojung 2014.11.06 2685
30 Adding a USB controller and a USB device on ESX Hojung 2013.11.08 2645
» Running VMs from NFS Datastores (Partition Alignment) Hojung 2013.04.11 3101
28 Installing VMware Tools in a Linux virtual machine using a Compiler Hojung 2013.01.09 3866
27 Quickest Way to Patch an ESX/ESXi Using the Command-line Hojung 2013.01.07 3090
26 romiscuous mode is enabled at the portgroup and the virtual switch level Hojung 2012.11.22 3450
25 Enable SNMP on ESXi 4.1 Hojung 2012.09.26 2461
24 Adjusting ESX host Time Zone (ESXi는 UTC time이며 변경불가) Hojung 2012.02.03 6629
23 ESXi 5 Download Hojung 2011.10.25 5981
22 VMWare: Windows 7 Ethernet is Missing Hojung 2011.09.14 5970
21 VM Network Adapters (NIC) Hojung 2011.06.25 9563
20 How to install VMware Tool in CentOS file Hojung 2011.06.20 8420
19 How to clone a VM manually without using the converter Hojung 2011.06.15 8642
18 Install ESXi 4.1 on Asus P5B-VM Hojung 2011.04.21 12119
Board Pagination ‹ Prev 1 2 Next ›
/ 2

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5