Linux Disk partitioning

Source: Internet
Author: User

Disk partitions are: Primary partition, extended partition, logical partition

A hard disk can have up to 4 partitions, and a hard disk must have only one extended partition (cannot be used)

Multiple logical partitions must be partitioned and formatted in this extended partition.

Formatting: Creating a file system

File system: A mechanism for storing data

Linux is accessed by device name and is typically stored under the/dev directory


Linux partitioning scheme

Normal system-to-partition:

  1. At least one/partition

  2. Swap swap partition

  3. Setting up a separate/boot partition is recommended



DB and storage: There's a lot of important data

1./50-200g

2.swap 1.5 times times

3./boot 100M

4./data/remaining hard disk size, all for storing data


Portal:

1./50-200g

2.swap 1.5 times times

3./boot 100M

Others are no longer partitioned, to be preserved, which need to be re-divided in the future


Generally not necessary partition:/usr/home/var

In the production environment: soft raid and LVM on-line adjustment partition performance is poor, generally do not use!

Hardware RAID is recommended, combined with multiple drives to expand

This article is from the Linux Operations sharing blog, so be sure to keep this source http://liangey.blog.51cto.com/9097868/1570982

Linux Disk partitioning

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.