A method for expanding a root partition based on a cloud platform Linux virtual machine
The invention relates to the technical field of cloud computing, in particular to a method for expanding a root partition based on a cloud platform Linux virtual machine. The method comprises the following steps of: 1, expanding the capacity of a virtual machine system disk; 2, exporting a partition...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to the technical field of cloud computing, in particular to a method for expanding a root partition based on a cloud platform Linux virtual machine. The method comprises the following steps of: 1, expanding the capacity of a virtual machine system disk; 2, exporting a partition table of the system disk; 3, changing the root partition of the partition table and the initial sector and the total number of sectors of each partition; 4, importing the modified system disk partition table; 5, restarting the virtual machine; and 6, expanding a root partition file system. According to the invention, it is unnecessary to delete each partition of the system disk and then reconstruct the partition for root partition expansion; and if the partition table is incorrectly modified, the risk of data loss caused by mistakenly deleting partitions is avoided.
本发明涉及云计算技术领域,特别是一种基于云平台Linux虚拟机扩容根分区的方法。本发明所述的方法包括如下步骤:1、虚拟机系统盘扩容;2、导出系统盘的分区表;3、更改分区表的根分区及各分区的开始扇区及总扇数;4、导入修改后的系统盘分区表;5、重启虚拟机;6、扩大根分区文件系统。本发明不需要通过删除系统 |
---|