LVM command abstract-general Linux technology-Linux technology and application information. The following is a detailed description. Description
Extendfs
Open or close a volume group:
# Vgchange-a y/dev/vg00
Vgchgid
Change the volume group ID of the physical volume:
# Vgchgid/dev/rdisk/disk3
Vgcreate
Create a volume group:
# Vgcreate/dev/vg01/dev/disk/disk2/dev/disk/disk3
Vgdisplay
Displays information about the volume group:
# Vgdisplay-v/dev/vg00
Vgextend
Expand the volume group by adding physical volumes:
# Vgextend/dev/vg00/dev/disk/disk2
Vgexport
Delete a volume group from the system:
# Vgexport/dev/vg01
Vgimport
Add an existing volume group to the system:
# Mkdir/dev/vg04
# Mknod/dev/vg04/group c 640x0n0000
# Vgimport-v/dev/vg04
(N numbers are unique among all volume groups ).
Vgmodify
Modify the configuration parameters of a volume group:
# Vgmodify-v-t-n-r/dev/disk/disk3
Vgscan
Scan the system disk of the volume group:
# Vgscan-v
Vgreduce
Delete one or more physical volumes from the volume group to narrow down the volume group:
# Vgreduce/dev/vg00/dev/disk/disk2
Vgremove
Delete the volume group definition from the system and disk:
# Vgremove/dev/vg00/dev/disk/disk2
Vgsync
Synchronize all mirror logical volumes in the volume group:
# Vgsync vg00
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