When you resize a disk of an Elastic Compute Service (ECS) instance, only the storage capacity of the disk is extended. The file systems of the instance are not resized. You can perform the operations in this topic to resize the file systems of the instance and then extend its storage capacity. To prevent data loss caused by accidental changes, we recommend that you create snapshots to back up your data. For more information, see
Create a snapshot for a disk. If no data disks are resized, perform the operations described in Step 2: Resize the disk in the ECS console to resize a data disk. For more information about connection methods, see Connection methods. Background informationIn the examples of this topic, the following configurations are used:
Adjust the commands or parameter settings based on the actual operating system and device name of your data disk. Check the partition format and the file system type
Choose a method to resize partitions or file systemsChoose a resize method based on the partition format and the file system type.
Note
Option 1: Resize existing MBR partitionsNote To prevent data loss, we recommend that you do not resize partitions and file systems that are mounted to ECS instances. To resize a partition that is mounted to an ECS instance, run the umount command to unmount the partition and then resize it. When the partition resumes normal working, run the mount command to mount it again. Perform operations based on the Linux kernel version:
Perform the following operations to resize an existing MBR partition:
Option 2: Create and format MBR partitionsPerform the following operations to create more MBR partitions:
Option 3: Resize existing GPT partitionsPerform the following operations to resize an existing GPT partition:
Option 4: Create and format GPT partitionsPerform the following operations to create more GPT partitions: In this example, a 32 TiB data disk is used. The disk has a 4.8 TiB /dev/vdb1 partition, and a new /dev/vdb2 partition is to be created.
Option 5: Resize the file system of a raw data diskIf a raw data disk contains a file system but no partitions, perform the following operations to resize the file system:
Which type of file system is used by the file storage?Examples include FAT (FAT12, FAT16, FAT32), exFAT, NTFS, HFS and HFS+, HPFS, APFS, UFS, ext2, ext3, ext4, XFS, btrfs, Files-11, Veritas File System, VMFS, ZFS, ReiserFS and ScoutFS. Some disk file systems are journaling file systems or versioning file systems.
Which of these file systems supports large files and partitions?NTFS - Set for the OS or data drive, huge file storage or transfer (bigger than 4GB), or use it on a gaming disk. Fat32 - Set for external gaming drive, Android memory card, small-capacity USB or SD card (32GB or smaller).
What is a file system choose the most correct answer?A file system stores and organizes data and can be thought of as a type of index for all the data contained in a storage device.
Which file system supports very large disk capacity?exFAT was designed for high-capacity removable devices, such as external hard disks, USB drives, and memory cards. exFAT is the default file system used by SDXC cards.
|