LVM volume group command, lvm volume group

Source: Internet
Author: User

LVM volume group command, lvm volume group
General maintenance commands
# Vgscan // check all disks in the system
# Vgck [volume group name] // used to check the consistency of volume group description region information in the volume group.
# Vgdisplay [volume group name] // display the volume group attributes
# Vgrename original volume group name new volume group name
# Vgchange-a y | n [volume group name] // change the corresponding attributes of the volume group. Allocable or not
# Vgchange-l maximum number of logical volumes // The maximum number of logical volumes that a volume group can accommodate
# Vgchange-x y | n [volume group name] // whether the volume is valid
# Vgmknodes [volume group name | volume group path] // used to create (re-establish) an existing volume group directory and the device files in it
// Piece
 
Backup and recovery commands for volume group configuration
# Vgcfgbackup [volume group name] // back up VGDA information in the volume group to a file in the "/etc/lvmconf" Directory
# Vgcfgrestore-n volume group name physical volume full path name // you must specify the physical volume information from the backup file
 
Volume Group Creation and deletion commands
# Vgcreate volume group name physical volume full path name [physical volume full path name]
# Vgremove volume group name
 
Command to expand or contract a volume group
# Vgextend volume group name physical volume full path name [physical volume full path name]
# Vgreduce volume group name physical volume full path name [physical volume full path name]
 
Merge and split a volume group
# Vgmerge target volume group name source volume group name // merge two existing volume groups, requiring the physical
// The source volume group is not active when the region size is equal.
# Vgsplit full path name of the physical volume in the new volume group of the existing volume group [full path name of the physical volume]
 
Volume Group Input and Output commands
# Vgexport volume group name
# Vgimport volume group name physical volume in the volume group [physical volume in the volume group]
Which of the following statements about LVM commands on linux? Urgent

This section summarizes common commands for Linux LVM tools to manage physical volume PVS, volume group VG, and logical Volume LV, and attaches application instances. The command comparison between AIX and Linux LVM is provided, which provides a reference for Linux and AIX system administrators to create, delete, resize, view, and modify PV/VG/LV.
Community.emc.com/docs/DOC-18332
Initialize to physical volume

Note: Use the pvcreate command to initialize a block device as a PV. The PhysicalVolume parameter can be a disk partition, the entire disk, and the meta disk device. When the entire disk acts as a PV, the disk must have no partition list. to erase the partition table, run the following command to write the first sector

In linux, what is the difference between an lvm volume group and a hard drive?

An LVM volume group is a logical disk space management mechanism,
A hard drive is a physical device on the physical layer.
In our daily work, we can use logical volume groups to manage hard disks and use logical volume groups to flexibly increase or decrease storage space.
For example, I can divide 10 hard disks into one hard disk to increase storage space.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.