Skip to content

Commit e10cc54

Browse files
authored
Merge pull request #108460 from simonesavi/linuxdiskpartitions
Add Linux partitions in example
2 parents 24c301c + f56f400 commit e10cc54

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

articles/virtual-machines/extensions/azure-disk-enc-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.service: virtual-machines-linux
1212
ms.topic: article
1313
ms.tgt_pltfrm: vm-linux
1414
ms.workload: infrastructure-services
15-
ms.date: 06/10/2019
15+
ms.date: 03/19/2020
1616
ms.author: ejarvi
1717

1818
---

articles/virtual-machines/extensions/azure-disk-enc-windows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.service: virtual-machines-windows
1212
ms.topic: article
1313
ms.tgt_pltfrm: vm-windows
1414
ms.workload: infrastructure-services
15-
ms.date: 06/12/2018
15+
ms.date: 03/19/2020
1616
ms.author: ejarvi
1717

1818
---
@@ -30,7 +30,7 @@ For a full list of prerequisites, see [Azure Disk Encryption for Windows VMs](..
3030
- [Networking requirements](../windows/disk-encryption-overview.md#networking-requirements)
3131
- [Group Policy requirements](../windows/disk-encryption-overview.md#group-policy-requirements)
3232

33-
## Extension schema
33+
## Extension Schema
3434

3535
There are two versions of extension schema for Azure Disk Encryption (ADE):
3636
- v2.2 - A newer recommended schema that does not use Azure Active Directory (AAD) properties.

articles/virtual-machines/linux/disk-encryption-linux.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ The following table lists Resource Manager template parameters for existing or r
203203
| keyEncryptionKeyURL | URL of the key encryption key that's used to encrypt the encryption key. This parameter is optional if you select **nokek** in the UseExistingKek drop-down list. If you select **kek** in the UseExistingKek drop-down list, you must enter the _keyEncryptionKeyURL_ value. |
204204
| volumeType | Type of volume that the encryption operation is performed on. Valid values are _OS_, _Data_, and _All_.
205205
| forceUpdateTag | Pass in a unique value like a GUID every time the operation needs to be force run. |
206-
| resizeOSDisk | Should the OS partition be resized to occupy full OS VHD before splitting system volume. |
207206
| location | Location for all resources. |
208207
208+
For more information about configuring the Linux VM disk encryption template, see [Azure Disk Encryption for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/azure-disk-enc-linux).
209209
210210
## Use EncryptFormatAll feature for data disks on Linux VMs
211211
@@ -215,7 +215,7 @@ The **EncryptFormatAll** parameter reduces the time for Linux data disks to be e
215215
216216
>[!WARNING]
217217
> EncryptFormatAll shouldn't be used when there is needed data on a VM's data volumes. You may exclude disks from encryption by unmounting them. You should first try out the EncryptFormatAll first on a test VM, understand the feature parameter and its implication before trying it on the production VM. The EncryptFormatAll option formats the data disk and all the data on it will be lost. Before proceeding, verify that disks you wish to exclude are properly unmounted. </br></br>
218-
>If youre setting this parameter while updating encryption settings, it might lead to a reboot before the actual encryption. In this case, you will also want to remove the disk you dont want formatted from the fstab file. Similarly, you should add the partition you want encrypt-formatted to the fstab file before initiating the encryption operation.
218+
>If you're setting this parameter while updating encryption settings, it might lead to a reboot before the actual encryption. In this case, you will also want to remove the disk you don't want formatted from the fstab file. Similarly, you should add the partition you want encrypt-formatted to the fstab file before initiating the encryption operation.
219219
220220
### EncryptFormatAll criteria
221221
The parameter goes though all partitions and encrypts them as long as they meet **all** of the criteria below:
@@ -261,17 +261,22 @@ We recommend an LVM-on-crypt setup. For all the following examples, replace the
261261
- Add the data disks that will compose the VM.
262262
- Format, mount, and add these disks to the fstab file.
263263

264-
1. Format the newly added disk. We use symlinks generated by Azure here. Using symlinks avoids problems related to device names changing. For more information, see the [Troubleshoot Device Names problems](troubleshoot-device-names-problems.md) article.
264+
1. Choose a partition standard, create a partition that spans the entire drive, and then format the partition. We use symlinks generated by Azure here. Using symlinks avoids problems related to device names changing. For more information, see the [Troubleshoot Device Names problems](troubleshoot-device-names-problems.md) article.
265265

266-
`mkfs -t ext4 /dev/disk/azure/scsi1/lun0`
266+
```azurepowershell-interactive
267+
parted /dev/disk/azure/scsi1/lun0 mklabel gpt
268+
parted -a opt /dev/disk/azure/scsi1/lun0 mkpart primary ext4 0% 100%
269+
270+
mkfs -t ext4 /dev/disk/azure/scsi1/lun0-part1
271+
```
267272

268273
1. Mount the disks.
269274

270-
`mount /dev/disk/azure/scsi1/lun0 /mnt/mountpoint`
275+
`mount /dev/disk/azure/scsi1/lun0-part1 /mnt/mountpoint`
271276

272277
1. Add to fstab.
273278

274-
`echo "/dev/disk/azure/scsi1/lun0 /mnt/mountpoint ext4 defaults,nofail 1 2" >> /etc/fstab`
279+
`echo "/dev/disk/azure/scsi1/lun0-part1 /mnt/mountpoint ext4 defaults,nofail 0 2" >> /etc/fstab`
275280

276281
1. Run the Set-AzVMDiskEncryptionExtension PowerShell cmdlet with -EncryptFormatAll to encrypt these disks.
277282

@@ -404,7 +409,7 @@ Azure Disk Encryption does not work for the following Linux scenarios, features,
404409
- Dynamic volumes.
405410
- Ephemeral OS disks.
406411
- Encryption of shared/distributed file systems like (but not limited to): DFS, GFS, DRDB, and CephFS.
407-
- Moving an encrypted VMs to another subscription.
412+
- Moving an encrypted VM to another subscription.
408413
- Kernel Crash Dump (kdump).
409414
410415
## Next steps

0 commit comments

Comments
 (0)