Linux-扩展加密数据磁盘-分区不扩展而且丢失了吗? [英] Linux - Expanding encrypted data disks - partitions not expanding and also missing?

查看:133
本文介绍了Linux-扩展加密数据磁盘-分区不扩展而且丢失了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚扩展了几个VM数据磁盘,这通常是一个快速的过程,VM重新启动,Linux自动扩展分区以利用额外的空间.但是,这不是我在加密数据磁盘上看到的. 通过门户扩展磁盘的过程是相同的.备份虚拟机后,我运行了 df 命令,并且数据磁盘大小未更改,并且其中一个VM不再安装数据磁盘!但是,如果我运行 sudo lshw -C磁盘 我可以看到数据磁盘存在并显示新的大小,以增加安装点的乐趣,即以前是/dev/sdc,现在是/dev/sdd,这意味着FSTAB文件现在已经存在过时了.但是,可以解决此问题.

我怀疑正在发生的事情是正在加密导致此奇怪行为的额外空间,对吗?

我注意到磁盘不再在门户中显示为已加密,而是从数据磁盘显示为<未加密的 az虚拟机加密显示中运行.

如果我的怀疑是正确的,有什么办法可以监视加密的进度,或者我可以寻找某个过程吗?

欢呼

Rob

解决方案

嘿罗布,

监视加密状态:

您可以通过以下几种不同方式来监视加密状态:在提到 本文:使用  Get-AzureRmVmDiskEncryptionStatus cmdlet并检查ProgressMessage字段:

复制

OsVolumeEncrypted ;   :EncryptionInProgress

DataVolumesEncrypted        :未安装

OsVolumeEncryptionSettings:Microsoft.Azure.Management.Compute.Models.DiskEncryptionSettings

ProgressMessage ;    :操作系统磁盘加密已开始


Hi,

I've just expanded a couple of VMs data disks which is normally a quick process, the VM reboots and Linux automatically expands the partition to take advantage of the additional space.  However this is not what I am seeing with encrypted data disks.  The process of expanding the disk through the portal was the same.  Once the VMs were back up I ran a df command and the data disk size hasn't changed, and one of the VMs the data disk is no longer mounted! However if I run sudo lshw -C disk I can see the data disks are present and showing the new size, to add to the fun the mount point have changed i.e. used to be /dev/sdc and is now /dev/sdd which means that FSTAB file is now out of date.  However that can be fixed.

I suspect what is happening is the additional space is now being encrypted which has cause this odd behaviour, is that correct?

I notice that the disks are no longer showing as encrypted in the portal and running az vm encryption show from the cli the data disks are showing as NotEncrypted

If my suspicion is correct is there any way to monitor the progress of the encryption or is there process I can look for?

Cheers

Rob

解决方案

Hey Rob, 

Monitoring Encryption Status:

You can monitor encryption status in different ways as mentioned in this article: Use the Get-AzureRmVmDiskEncryptionStatus cmdlet and inspect the ProgressMessage field:

Copy

OsVolumeEncrypted          : EncryptionInProgress

DataVolumesEncrypted       : NotMounted

OsVolumeEncryptionSettings : Microsoft.Azure.Management.Compute.Models.DiskEncryptionSettings

ProgressMessage            : OS disk encryption started


这篇关于Linux-扩展加密数据磁盘-分区不扩展而且丢失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆