仮想マシに接続するHDDイメージについて、キャッシュをon にすることができます。
http://michaelwasham.com/tag/disk-cache/
ディスクキャッシュをonにすると、データが消えることがあるということですが、
どのようなタイミングでキャッシュがロストすることがあるのでしょうか?
仮想マシンが障害になったり再起動するときでしょうか?
Modifying the Data Disks Host Cache Settings
Get-AzureVM -ServiceName $cloudSvcName-Name$vmName| Set-AzureDataDisk -HostCaching ReadWrite -LUN 0| Set-AzureDataDisk -HostCaching ReadWrite -LUN 1| Update-AzureVM Get-AzureVM -ServiceName $cloudSvcName-Name$vmname| Get-AzureDataDisk |
Modifying the OS Disk Host Cache Settings (Requires a Reboot)
Get-AzureVM -ServiceName $cloudSvcName-Name$vmName|# Retrieve existing VM Set-AzureOSDisk -HostCaching ReadOnly |# Perform an operation that modifies the returned VM and pipe the results Update-AzureVM # Update the modified VM |