Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method for expanding the root partition of a Linux virtual machine based on a cloud platform

A technology for machine expansion root and root partition, which is applied in the field of cloud computing and can solve problems such as lost data

Active Publication Date: 2022-04-01
G CLOUD TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There is a risk of losing data when the last saved partition table is incorrect

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for expanding the root partition of a Linux virtual machine based on a cloud platform
  • A method for expanding the root partition of a Linux virtual machine based on a cloud platform
  • A method for expanding the root partition of a Linux virtual machine based on a cloud platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] See figure 1 As shown, the Linux virtual machine security expansion root partition method of the present invention comprises:

[0049] Step 1: Expand the system disk of the virtual machine;

[0050] Step 2: Export the partition table of the system disk;

[0051] Because the partition table is a part of the master boot sector and only occupies 64 bytes, use the command dd if= / dev / sda of=dpt.bak bs=1skip=446count=64 to export.

[0052] The partition table refers to the start sector and the total number of sectors used to define data stored in the hard disk, and is a part of the main boot sector, with a total of 64 bytes.

[0053] The said master boot sector, that is, MBR (main boot record), is the first sector of the 0-cylinder 0-head of the hard disk, with a total of 512 bytes. It is the code to be run after the bios power-on self-test. The boot sector consists of 3 parts:

[0054] (1) Bootloader, the main boot program --- 446 bytes;

[0055] (2) Dpt (Disk Partition...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of cloud computing, in particular to a method for expanding the root partition of a Linux virtual machine based on a cloud platform. The method of the present invention comprises the following steps: 1, expansion of the virtual machine system disk; 2, exporting the partition table of the system disk; 3, changing the root partition of the partition table and the starting sector and the total number of sectors of each partition; 4, importing The modified system disk partition table; 5. Restart the virtual machine; 6. Expand the root partition file system. The present invention does not need to delete each partition of the system disk and then rebuild the partition to expand the capacity of the root partition; if the partition table is incorrectly modified, there is no risk of data loss caused by mistakenly deleting partitions.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method for expanding the root partition of a Linux virtual machine based on a cloud platform. Background technique [0002] With the continuous development of the customer's business, the rapid growth of application data often leads to insufficient virtual machine system disk, and it is often necessary to expand the virtual machine system disk. However, after the system disk of the Linux virtual machine has increased space, it will not be used by the system root partition. When the root partition of the system is insufficient, if the root partition is an LVM partition, use the newly added disk space to add a new partition, and then merge it into the lvm volume where the root partition is located. If the root partition is not an LVM partition, use the newly added disk space to create a new partition and format it, then copy the data from the original directory to the ne...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/06G06F9/455
Inventor 洪紫程季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products