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

Method for recovering LVM configuration under Linux system

A target system and configuration file technology, applied in the direction of response error generation, redundant data error detection in computing, etc., can solve the problems of system loss of LVM, inability to directly obtain configuration information, inconvenience, etc., and achieve consistency sexual effect

Inactive Publication Date: 2015-05-13
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the configuration information of LVM is saved in the local disk, traditionally, the backup software cannot directly obtain the configuration information of LVM after packaging the content of the logical volume. Partition
This causes the system to lose many conveniences of using LVM, and it is very inconvenient to make a lot of modifications after the system is restored.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Mount the backup file system directly through iSCSI on the target system to be restored, read the LVM configuration information, and then use the obtained LVM configuration information to configure the target disk so that its layout and LVM configuration are consistent with the backup Linux system . The present invention is described in detail:

[0020] A method for restoring the LVM configuration under the Linux system, the specific process is:

[0021] ① Configure iSCSI on the target system, and use the Linux Live CD to start the target system for restoration;

[0022] ② Use iSCSI to map the LVM configuration file to an iSCSI LUN;

[0023] ③Use the iSCSI initiator on the target system, and mount the mapped backup to the / tmp directory;

[0024] ④Find the backed up LVM configuration file, where the VG configuration information in the LVM configuration information corresponds to the configuration file beginning with VG, and check the LVM configuration through the mor...

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 discloses a method for recovering LVM configuration under a Linux system, and belongs to the technical field of computers. The method comprises the following steps: 1, configuring iSCSI on a target system and using a Linux Live disc to start a restore target system; 2, using iSCSI to map an LVM configuration file into LUN of iSCSI; 3, using initiator of the iSCSI on the target system and mounting a backup of the mapping to a certain folder; 4, finding the backup LVM configuration file, checking the LVM configuration information, PVID and partition information, and rebuilding PV by using a partition newly-built by uuid of the PV; 5, scanning VG, restoring LVM configuration information by using a backup file of the VG, activating VG and verifying LV. According to the method, the pre-and-post consistency of the LVM configuration information is maintained, and the LVM is continuously used, so that the application convenience of the LVM is maintained, and a file system table requiring mounting and a Linux starting item are not needed to modify.

Description

technical field [0001] The invention discloses a method for restoring LVM configuration, which belongs to the technical field of computers, and in particular relates to a method for restoring LVM configuration under a Linux system. Background technique [0002] At present, most Linux distributions have built-in LVM, Logical Volume Manager, and Logical Volume Manager, and most Linux systems are installed in logical volumes divided by LVM. The first choice for disk partition management. [0003] LVM manages physical disks through volume groups, and divides logical volumes (LVs) in volume groups for use by the operating system. It can dynamically adjust the size of LVs, which provides great convenience for the use of disk space. Simply put, a physical disk or disk partition is added to a VG, Volume Group, or a volume group as a PV, Physical Volume, or physical volume, and then logically divided into LVs. Since the configuration information of LVM is saved in the local disk, t...

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 Applications(China)
IPC IPC(8): G06F11/14
Inventor 王有为张洪宾陈彬
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
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