How to add disk in azure
On the Disks pane, under Data disks, select Create and attach a new disk or attach an existing disk.
Enter a name for your managed disk. Review the default settings, and update the Storage type, Size (GiB), Encryption and Host caching as necessary.
Once connected to your VM, you need to find the disk. In this example, we're using lsblk to list the disks.
Format the drive mkfs.xfs /dev/sdc
Partition Create fdisk /dev/sdc
You can create/resize/delete LVM partitions.
No need to reboot the system to make the kernel aware of the newly created or resized partitions.
If you have more than one hard disk, Logical Volumes can extend over more than one disk
- First list the hard disk
Check the PV, VG, and LV.
PV- Physical Volume
VG- Volume Group
LV- Logical Volume
Create PV & SV & LV
If mounted the drive is not possible to create LVM
First, unmount the drive sudo umount /dev/sdc
Create PV & SV & LV
Check PV,VG,LG
Check the path fdisk -l
Format the disk
Check the path
Finally mount a drive
sudo mount /dev/mapper/Test-Create /Data
/dev/mapper/Test-create - OS understands the name
/dev/Test/Create - Logical Volume understand the name
Thank you for reading...!
Hope you find this article helpful.