简体   繁体   English

将新磁盘附加到Azure Linux VM

[英]Attach new disk to Azure Linux VM

I have installed mysql in a A4 Linux VM in Azure and I'm running out of disk space. 我已经在Azure的A4 Linux VM中安装了mysql,并且磁盘空间不足。 I saw that the primary disk space is 29GB only and the temporary disk space is 600GB, but I don't want to store mysql's data to the temporary disk because of the possibility of losing them. 我看到主磁盘空间仅为29GB,临时磁盘空间为600GB,但是我不想将mysql的数据存储到临时磁盘,因为可能会丢失它们。

I want to attach a new disk to my VM and I have two questions: 我想将新磁盘连接到我的VM,我有两个问题:

1) What type of storage is the best for my case? 1)哪种存储最适合我的情况? 2) If I attach a disk, will mysql data be distributed to this disk automatically when the primary disk space runs out or should I make further adjustments (ie change mysql's data_dir or something)? 2)如果连接了磁盘,那么当主磁盘空间用完时,mysql数据会自动分配到该磁盘上吗?还是应该做进一步的调整(即更改mysql的data_dir或其他内容)?

You can attach a new data disk to your VM. 您可以将新的数据磁盘连接到VM。 The steps are described here in the Azure documentation: http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-tutorial/#attachdisk 这些步骤在Azure文档中进行了描述: http : //azure.microsoft.com/zh-cn/documentation/articles/virtual-machines-linux-tutorial/#attachdisk

No, the newly attached disk won't expand the existing one. 不,新连接的磁盘不会扩展现有磁盘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM