CentOS 7 partition

Source: Internet
Author: User
Tags centos

1. Download the installation package:

2, select the relevant information, enter the partition interface, select the LVM mode allocation


3. Click to enter


Select---I'll configure partitioning in the interface


Then choose the LVM allocation method


Configure the root user password




Wait for the installation to restart when the installation is complete.


Configuring static IP Addresses

Go to catalogue cd/etc/sysconfig//network-scripts/

Use VI to open ifcfg-eno16777728 (my system is the profile, please follow your own system's configuration file to modify)

The original file



The modified file



4. CentOS Time Synchronization

Installing Ntppdate with Yum

Yum Install-y ntpdate

Using commands

Ntpdate time.nist.gov

Server Time updated successfully






------------------------------------------------------------------------------------------------

Partition:

50G HDD 1G Memory

/5GB

/boot 200MB

Swap 2GB

/Home 5GB

/usr 4GB

/usr/local 5GB

/tmp 1GB

/var remaining space


Recommendations for partitioning

The installation of CentOS requires at least one partition, but there are at least four CentOS recommendations:/boot,/////swap. You can also create additional partitions that you need.

Logical Volume Management (LVM) describes the underlying physical storage space, such as a simple logical view of a hard drive or LUN. A physical storage partition is represented as a physical volume and can be combined into a volume group. Each volume group can be divided into multiple logical volumes, each of which is similar to a standard disk partition. Therefore, the LVM logical volume acts as a partition that can span multiple physical disks.


1) Most basic partitioning scheme:

/: Recommended size is above 5GB.
Swap: Swap partition, the recommended size is one or more times of physical memory.

(2) Advanced partitioning scheme:
/boot: Used to store the Linux system boot-related programs, such as boot loader, etc., the recommended size is 100MB.
/: The root directory of the Linux system, all directories are hung under this directory, the recommended size is more than 5GB.
/home: The data for ordinary users is the host directory of ordinary users, the recommended size is the remaining space.
Swap: Implements virtual memory, the recommended size is one or more times of physical memory.

(3) Advanced partitioning scheme:
/boot: Used to store the Linux system boot-related programs, such as boot loader, etc., the recommended size is 100MB.
/usr: used to store applications in Linux systems, with more relevant data, more than 3GB is recommended.
/var: used to store frequently changing data and log files in Linux systems, more than 1GB is recommended.
/home: The data for ordinary users is the host directory of ordinary users, the recommended size is the remaining space.
/: The root directory of the Linux system, all directories are hung under this directory, the recommended size is more than 5GB.
/tmp: The temporary disk in a separate partition, you can avoid the system when the file system is full of stability affected. The recommended size is above 500MB.
Swap: Implements virtual memory, the recommended size is one or more times of physical memory.

HDD 500G

Scenarios for server partitioning:

Actual size of partition type partition

/1g-2g (Minimum 150–250MB)
/boot 32m-100m (boot partition up to 100M or so)
/OPT 100m-1g (Additional application)
/tmp 40m-1000m (maximum can be set to about 1G, if the load ISO image file is set to about 4G bar
, usually not so much)
/Home 2g-10g (about 100M per user, specific custom. User directory. )
/usr 3g-10g (the most space-consuming part.) At least about 500M, generally loose server to
Points to 4-6g)
/usr/local 3g-15g (self-installed program installed here)
/var >2g– hdd remaining space (minimum 300m-500m, general 2-3g, server
Space is divided into it)

Server actually 3 or 4 partitions can be
3 x:
/100g
Swap 2g
/data 900g
Four:
/100g
Swap 2g
/data 450g
/backup 450g

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.