Make a little progress every day--linux Disk Management LVM and raid

Source: Internet
Author: User

Reprint Please specify source: http://blog.csdn.net/cywosp/article/details/38965799


1. Traditional Disk Management issueswhen the partition size is not enough to expand its size, only by joining the hard disk, create a new partition to expand the space. However, the newly added hard drive is a standalone file system, and the original file system has not been expanded. High-level applications can only access a file system very often. Only allow existing disks to be offline. After you replace the new disk, import the data from the original disk.

2. LVMLVM (Logical Volume Manager) Logical volume management provides a logical volume representation to the upper system by encapsulating the underlying physical hard disk abstraction. The size of the logical volume can be dynamically adjusted. And no existing data is lost. The newly added drive does not change the existing upper-level logical volumes. As a dynamic disk Management mechanism. Logical volume technology greatly improves the flexibility of disk Management.


PE (physical Extend) PV (physical Volume) VG (Volume Group) LV (Logical Volume)

1. The physical disk is formatted as PV. Space is divided into PE2. Different PV Add the same VG, different PV PE all enter the PE pool of VG3. LV is created based on PE, the size is an integer multiple of PE, the PE composed of LV may come from different physical disks4. LV is now directly able to format, and then mount it to use the5. The expansion reduction of LV is actually the addition or decrease of the number of PE composing LV. The process does not lose the original data 6. Each PE default is 4MB size
when a new hard drive is added, for example,

3. Creating LVM

4. View Commands

5. Stretching of logical volumes

6. Stretch the volume group

7. Reduce the logical volume
shrinking may damage the original data, so try not to shrink the logical volume
8. Shrinking the volume group

9. RAID

9.1 RAID0

9.2 RAID1

9.3 RAID5

9.4 RAID6

RAID implementations

create raid on Linux.

12. View Raid

13. Create various RAID

14. Turn off RAID




Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

Make a little progress every day--linux Disk Management LVM and raid

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.