Add hard disk. RedhatAS4 to LVM in Linux

Source: Internet
Author: User
Linux: Add hard disk. RedhatAS4 under LVM -- Linux general technology-Linux technology and application information. For more information, see the following. 1. Use fdisk to create a partition/dev/sdb1 for the new Hard Disk/dev/sdb and set the flag to Linux LVM (8e ). (Use the t command to modify the flag)

2. Use pvcreate to create a physical volume
Pvcreate/dev/sdb1

3. Use vgextend to add a new physical volume to an existing volumn group.
Vgextend VolGroup00/dev/sdb1

4. Use lvextend to add the physical volume to the existing logical volume
Lvextend-L + 3G/dev/VolGroup00/LogVol00/dev/sdb1

5. Now you can use df to view the/directory and the available controls have not been added. You need to extend the file system of the logical volume LogVol00 to a new space. We recommend that you use the ext2online tool, you need to download and install it on your own.

Ext2online-v/dev/VolGroup00/LogVol00

6. Now you can use the new space.

PS: ext2online is available on the RedhatAS4 disc. If AS4 is installed, you can use it directly now.

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.