Azure Linux VM expands operating system disk space
Currently, Azure offers new features for Linux VMS that increase operating system disk space, and currently support virtual machines primarily include DS, DSV2, and FS series virtual machines. This helps the customer apply the log to keep increasing disk space in the SDA file.
1. Select when creating a virtual machine
2. Enter the operating system to see that the disk space has been increased to the corresponding size.
3. repartitioning
[Email protected] ~]# FDISK/DEV/SDA
The device presents a logical sector size is smaller than
The physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance could be impacted.
Welcome to Fdisk (Util-linux 2.23.2).
Changes'll remain in memory only, until the decide to write them.
Be careful before using the Write command.
Command (M for help): D
Partition Number (2, default): 2
Partition 2 is deleted
Command (M for help): P
disk/dev/sda:549.8 GB, 549755813888 bytes, 1073741824 sectors
Units = sectors of 1 * MB = bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk label Type:dos
Disk IDENTIFIER:0X000CB2FD
Device Boot Start End Blocks Id System
/DEV/SDA1 * 2048 1026047 512000 Linux
Command (M for help): N
Partition Type:
P Primary (1 primary, 0 extended, 3 free)
E Extended
Select (default p): P
Partition number (2-4, default 2): 2
First sector (1026048-1073741823, default 1026048):
Using Default Value 1026048
Last sector, +sectors or +size{k,m,g} (1026048-1073741823, default 1073741823):
Using Default Value 1073741823
Partition 2 of type Linux and of size 511.5 GiB is set
Command (M for help): W
The partition table has been altered!
Calling IOCTL () to re-read partition table.
Warning:re-reading the partition table failed with error 16:device or resource busy.
The kernel still uses the old table. The new table is being used at
The next reboot or after you run Partprobe (8) or KPARTX (8)
Syncing disks.
4. After completing the partition, you still do not see the change and need to restart to reread the partitioned table before stretching
Azure Linux VM expands operating system disk space