Linux Learning -15-Learning LVM Logical Volumes

Source: Internet
Author: User

In implementing a file system that can elastically adjust capacity

Fdisk/dev/hda partition

Partprobe Update partition

Pvscan Check for PV presence or not

Pvcreate/dev/hda5 Creating PV

Vgcreate vbirdvg/dev/hda{6,7,8} Create VG

Vgscan

Pvscan

Vgextend VBIRDVG/DEV/HDA9 Added VG

Lvcreate-l 5.56g-n VBIRDLV VBIRDVG

Mkfs-t EXT3/DEV/VBIRDVG/VBIRDLV

Mkdir/mnt/lvm

Mount/dev/vbirdvg/vbirdlv/mnt/lvm

Enlarge LV

Fdisk/dev/hda, Partprobe

Pvcreate/dev/hda10

Vgextend vbirdvg/dev/hda10

Lvresize-l +M/DEV/VBIRDVG/VBIRDLV Reduced Use-

Lvdisplay

RESIZE2FS/DEV/VBIRDVG/VBIRDLV making changes effective in the system

Zoom Out LV

Umount/mnt/lvm

E2fsck-f/DEV/VBIRDVG/VBIRDLV Disk Check

RESIZE2FS/DEV/VBIRDVG/VBIRDLV 6900M reduces file system capacity

Mount/dev/vbirdvg/vbirdlv/mnt/lvm

Df/mnt/lvm

Lvresize-l-M/DEV/VBIRDVG/VBIRDLV Lower LV capacity

Pvdisplay

PVMOVE/DEV/HDA6/DEV/HDA10 Moving PV Data

Pvmove source PV Target PV, you can move the PE in the/dev/hda6 to/DEV/HDA10

Vgreduce Vbirdvg/dev/hda6 move out of VG

Pvscan

Pvremove/dev/hda6 Moving out of PV


System snapshot for LVM P575


Linux Learning -15-Learning LVM Logical Volumes

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.