In This Document We Are Going To creating, attaching, mounting, and detaching an additional data disk in an Azure Virtual Machine.
Things Should Be Known Before Starting.......
What Is OS Disk ?
The Operating System Disk is the primary disk attached to a VM and contains the operating system files, Created automatically when you provision a VM.
What is Data Disk ?
A data disk is an additional disk that you manually attach to a VM for storing application data, logs, databases, or custom files, Optional and can be added anytime.
Question : I’ve Created a new Azure virtual machine with a 30 GB of disk size. However, I’ve noticed an additional 4 GB disk is already mounted at /mnt ?
Answer : Azure Linux VMs often come with a temporary disk, typically mounted at /mnt or /mnt/resource. You didn’t explicitly create it because Azure adds it by default during VM provisioning. It's part of the VM's infrastructure and not billed separately.
Step 1) Create a Virtual Machine
- Describe all helping commands from blog
- Link : Click_Me
Step 2) Create and Attach a New Data Disk
- Create A Data disk
- Attach the Disk to the VM
Step 3) Prepare the Disk for Use
- Create a New Partition
- Reboot The VM
- Format the Partition
- Create a Custom Mount Directory
- Temporarily Mount the Disk
- Permanently Mount via /etc/fstab
Step 4) Detach the disk without losing the data.
- Unmount the Disk from the VM
- Remove the Entry from /etc/fstab
- Detach the Disk via Azure Portal
No comments:
Post a Comment
testing