Each node has exactly one parent except for the root node, which has no parent. Each node has property/value pairs that describe the characteristics of the device being represented. "A device tree is a tree data structure with nodes that describe the devices in a system. The system saves the configurations and exits the vi editor.The objective of this chapter is to give general information about the device tree.Īn extract of the device tree specification explains it as follows: When this parameter is set to 1 for the root partition, this parameter for other partitions must start with 2 because the system checks the partitions in the ascending order of the values. If the mount point is the root partition ( /), this parameter must be set to 1.The sixth column indicates the fsck option, that is, whether to use fsck to check the attached disk during startup.Normally, dump backup is not used, and you can set this parameter to 0. The fifth column indicates the Linux dump backup option.Normally, this parameter is set to defaults. The fourth column indicates the partition mount option.You can query the file system format using the df -TH command. The third column indicates the file system format of the partition.You can query the mount point using the df -TH command. The second column indicates the directory on which the partition is mounted.The first column indicates the partition UUID obtained in 1.Add the information that is used in the environment. The preceding content is used for reference only. In this example, run the following command to mount the new partition /dev/vda2 on /opt: Run the following command to mount the new partition:.In this example, run the following command to create the /opt mount point: Perform this step if you want to mount the partition on a new mount point. (Optional) Run the following command to create a mount point:.Once done is displayed in the command output, the formatting is complete. The formatting takes a while, and you need to observe the system running status. Realtime =none extsz=4096 blocks=0, rtextents=0 ![]() Log =internal log bsize=4096 blocks=5120, version=2 Naming =version2 bsize=4096 ascii-ci=0 ftype=1 Information similar to the following is displayed: ~]# mkfs -t xfs /dev/vda2 Writing superblocks and filesystem accounting information: done To extend partitions and file systems on an ECSwhose kernel version is greater than 3.6.0, see Expanding Disk Partitions and File Systems (Linux). You can then detach and attach back the extended disk to the original ECS, and migrate data back to the system disk. In this case, the disk partition and file system can be extended without a reboot. If you do not want to reboot your ECS, you can migrate data from the system disk to a data disk on the same ECS, detach the data disk, and attach it to an ECS whose OS kernel version is later than 3.6.0.After you run reboot, the additional space is automatically added to the partition at the end of the system disk. If the OS kernel version is earlier than 3.6.0, the extension of an existing MBR partition and file system takes effect only after a system reboot, and services will be interrupted.For details about snapshots, see Creating a Snapshot (OBT). For details about backups, see Managing EVS Backups. So you are advised to back up the disk data using backups or snapshots before expansion. Incorrect operations may lead to data loss or exceptions. ![]() Exercise caution when expanding the disk capacity.Extending an Existing MBR Partition (Kernel Version Earlier Than 3.6.0)įor how to query the Linux kernel version, see Querying the Linux Kernel Version.For detailed operations and differences, see the corresponding OS documentations. The way you allocate additional space depends on the OS. This section uses CentOS 6.5 64bit (kernel version earlier than 3.6.0) as the example OS to describe how to extend the disk partition using growpart and fdisk. In this case, the additional space can be used directly. If the disk capacity is expanded when its server is stopped, the additional space of a Linux system disk will be automatically added to the partition at the disk end upon the server startup. ![]() In Linux, you must allocate the additional space to an existing partition or a new partition. After a disk has been expanded on the management console, the disk size is enlarged, but the additional space cannot be used directly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |