You don't need to take any action other than calling the explicit detach command to see this improvement. You won't see the performance improvement if you call a command that may implicitly perform a detach, like az vm update. However, this improvement is limited to the explicit disk detach command, az vm disk detach. This is useful if you have planned/unplanned failovers between VMs, you're scaling your workload, or are running a high scale stateful workload such as Azure Kubernetes Service. In select regions, the disk detach latency has been reduced, so you'll see an improvement of up to 15%. The disk stays in storage but is no longer attached to a virtual machine. This example detaches the myDataDisk disk from VM named myVM in myResourceGroup. The following example unmounts the /dev/sdc1 partition from the /datadrive mount point: sudo umount /dev/sdc1 /datadrive In this example, the following line needs to be deleted from the /etc/fstab file: UUID=33333333-3b3b-3c3c-3d3d-3e3e3e3e3e3e /datadrive ext4 defaults,nofail 1 2 Open the /etc/fstab file in a text editor as follows: sudo vi /etc/fstab It is also recommended that a backup of the /etc/fstab file is created before editing. If unsure, refer to the distribution's documentation for information on how to properly edit this file. ![]() Improperly editing the /etc/fstab file could result in an unbootable system. The output looks similar to the following example: /dev/sda1: UUID="11111111-1b1b-1c1c-1d1d-1e1e1e1e1e1e" TYPE="ext4" You also should grab the UUID of the disk. Here, sdc is the disk that we want to detach. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) The output is similar to the following example: SCSI subsystem initialized The following example uses dmesg to filter on SCSI disks: dmesg | grep SCSI ![]() ![]() In this example, the public IP address of the VM is 10.0.1.4 with the username azureuser: ssh find the data disk that you want to detach. Connect to the VM to unmount the diskīefore you can detach the disk using either CLI or the portal, you need to unmount the disk and removed references to if from your fstab file.Ĭonnect to the VM. If you want to use the existing data on the disk again, you can reattach it to the same virtual machine, or another one. For more information, see Pricing and Billing when using Premium Storage. If you have subscribed to Premium storage, you will continue to incur storage charges for the disk. If you detach a disk it is not automatically deleted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |