Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

azure virtual machine persistent SSD warning DATALOSS_WARNING_README.txt

Created a Standard DS1 virtual machine in Azure. It is supposed to have a 7GB SSD disk which is mounted on /mnt.

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        29G  1.5G   27G   6% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            1.7G  8.0K  1.7G   1% /dev
tmpfs           345M  392K  344M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.7G     0  1.7G   0% /run/shm
none            100M     0  100M   0% /run/user
none             64K     0   64K   0% /etc/network/interfaces.dynamic.d
/dev/sdb1       6.8G   16M  6.4G   1% /mnt

However, there is a warning placed into the /mnt location:

ls /mnt
cdrom  DATALOSS_WARNING_README.txt  lost+found
cat /mnt/DATALOSS_WARNING_README.txt 
WARNING: THIS IS A TEMPORARY DISK.

Any data stored on this drive is SUBJECT TO LOSS and THERE IS NO WAY TO
RECOVER IT.

Please do not use this disk for storing any personal or application data.

For additional details to please refer to the MSDN documentation at:
http://msdn.microsoft.com/en-us/library/windowsazure/jj672979.aspx

The link in the description leads to a resource that has been removed.

I've tried rebooting the virtual machine and data on /mnt seems to be persisted between reboots. I need to store persistent data on the SSD, is the warning accurate and can I expect data to be deleted from the /mnt partition? If so, what are my choices to have a persistant SSD disk on Azure virtual machine?

like image 977
neo112 Avatar asked Nov 11 '15 13:11

neo112


People also ask

What also includes a physical temporary disk that is not persisted to Azure storage?

In Azure, every VM – regardless if Linux or Windows – gets a temporary disk assigned automatically. This temporary disk is located on the physical server (the hypervisor) where the Azure VM is hosted and is non-persistent.

What is Azure VM temporary disk?

The temporary disk provides short-term storage for applications and processes, and is intended to only store data such as page or swap files. Data on the temporary disk may be lost during a maintenance event or when you redeploy a VM.


1 Answers

You're looking at the local scratch disk. Yes it's SSD, but it's still a scratch disk. If that SSD crashes, your data is gone in an instant. If you resize your VM, you will likely lose what's on that disk. It's not a permanent-storage disk. If you want permanent storage, you must attach a disk, either from premium storage (SSD) or regular storage). Attached disks, just like the OS disk vhd, are stored in persistent blob storage.

like image 195
David Makogon Avatar answered Apr 28 '23 11:04

David Makogon