Create an lvm partition when installing Centos text

Source: Internet
Author: User
If you install Centos in text mode, when creating lvm partitions, you can install centos in text mode instead of graphics mode. I have always thought that there are limits on lvm partitioning in text mode (remember this in the official rhel documentation .) yesterday, I saw a discussion in the linux system management area...
In the case of Centos text installation, when creating lvm partitions, installing centos will enter the text mode instead of the graphic mode.
There are limits on lvm partitioning in text mode (remember to say this in the rhel official document .) yesterday, I saw a discussion in the linux system management area and conducted an experiment to verify that the experiment can be performed in the text mode.
Create lvm partitions and the text installer can also identify lvm. the post of the discussion process, please go to the http://bbs.chinaunix.net/thread-3758363-1-1.html www.2cto.com below to write out the entire experiment process, for your reference. system environment: vmwarevm, Centos5.8, virtual machine assigned 20 GB hard disk. steps: 1. during installation, enter linux text at the end of boot, and enter the text installation method 2. perform other operations according to the standard steps (select language en, keyboard en ...) when partitioning the disk, press alt + f2,
Switch to the console. at this time, a terminal similar to shell is generated. 3. enter fdisk/dev/sda next to #, and manually partition the disk. There are two partitions, one of which is 200 MB. in the future, boot will be given, and the remaining partitions will be allocated to one partition,
Then convert the label of partition 2 to 8e (lvm) (it seems that the conversion is acceptable. for convenience, do not convert sda1.
Www.2cto.com 3. when the partition ends, w saves the partition table and exits fdisk.4. create pv: enter lvm pvcreate/dev/sda2 at the end of the # prompt to create pv5. create vg: enter lvm vgcreate myvg/dev/sda2 after the # prompt to create vg.6. create lv: enter lvm lvcreate-L 2G-n lv_swap myvg after the # prompt, lvm lvcreate-L 4G-n lv_root myvg, lvm lvcreate-L 13G-n lv_home myvg, create 3 lv, correspond to swap, respectively, /and home.7. format boot and 3 lv. lv_swap uses mkswap to form the swap partition format. 8. after completion, alt + f1, switch to the installation interface, and select the bottom project (the project of the custom partition ). scanned,
The installer can identify the lvm partition we have created manually.

9. Mount sda1 to/boot (press f3 when the partition is highlighted) according to previous ideas. my system is centos5.8 and ext4.
The/boot fails, and an error is reported. after formatting to ext3 in the edit window, it passes. others, the lv name already indicates
The directory to be mounted. modify the mount point by pressing f3 when lv_home and lv_root are highlighted.
Www.2cto.com 10. select the installation type according to the normal installation process until the installation is complete. The system installation is complete:
 
Related Article

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.