Creation of LVM partitions in the case of CentOS text mode installation

Source: Internet
Author: User

The creation of the LVM partition under the installation of the CentOS text mode sometimes, when you install CentOS, it goes into the text mode instead of the graphical way. It was always thought
There are restrictions on LVM partitioning in text mode (remember that in the official Rhel document). Yesterday, in the Linux system Management area to see a discussion, personally did the experiment, verified that can be in text mode
Create LVM partitions and the text installer can also recognize LVM. The discussion of the post, please http://bbs.chinaunix.net/thread-3758363-1-1.html www.2cto.com The following will be the whole process of my experiment to write, for your reference. System environment: VMware Virtual Machine, Centos5.8, virtual machine assignment 20G. Specific steps: 1. When installing, enter Linux text in the boot: Force the text to be installed 2. Other operations follow standard steps (select language en, keyboard en ...) To partition the disk, press ALT+F2,
Switch the console, this time out a shell-like terminal. 3. After # input FDISK/DEV/SDA, manual partitioning, divided into two, 1 200m, in the future to boot, the remaining sub-district,
Then convert the partition 2 labeled 8e (LVM) (seemingly do not convert also can, for convenience or conversion, do not convert sda1.
Www.2cto.com 3. End of partition, W save partition Table and Exit fdisk.4. Create PV: Enter the LVM pvcreate/dev/sda2 at the # Prompt to create the PV5. Create VG: Enter LVM after the # prompt vgcreate Myvg/dev /sda2, create the vg.6. Create LV: Enter LVM at the # prompt lvcreate-l 2g-n lv_swap myvg,lvm lvcreate-l 4g-n lv_root myvg, LVM lvcreate-l 13g-n Lv_home MYVG, create 3 LV, respectively corresponding to swap,/and home.7. Format boot and 3 Lv,lv_swap with Mkswap for swap partition format. 8. When you are done, ALT+F1, switch to the installation screen and select the bottom item ( Custom partition that project). After scanning,
The installer will be able to identify the LVM partitions we have created manually.

9. According to the prior thought, mount the sda1 to/boot (in case of the partition highlighting, press F3), my system is CENTOS5.8,EXT4
/boot No, error, and later in the edit window inside the format into ext3 passed. The other, the LV's name has been represented to be
The directory to mount. Press F3 to modify the mount point directly in the case of Lv_home,lv_root highlighting.
Www.2cto.com 10. Follow the normal installation process, select the type of installation, etc. until the installation is complete. System Installation Complete:

Creation of LVM partitions in the case of CentOS text mode installation

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.