Linux partition Selection Based on server usage

Source: Internet
Author: User
Article Title: Linux partition Selection Based on server usage. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

When deploying network applications on a Linux system, the system administrator needs to properly plan Linux partitions. This is different from deploying network applications on Microsoft servers. To achieve high security performance on Microsoft servers, you only need to convert the partition format to NTFS format. However, if Linux is used, it is not that simple. The Linux system administrator should select the appropriate Linux partition based on the purpose of the server.

  I. Similarities and Differences between Linux partitions and ipvs partitions.

In Microsoft operating system, the partition is represented by a single letter, such as C, D, and E. However, in Linux, there is another set of representation methods. To manage Linux partitions, you must first understand the encoding of these partitions. In fact, the partition encoding in Linux is divided into two parts: Hard Disk encoding and partition encoding.

In Linux, each hardware device is printed to a system file. Therefore, hardware devices such as hard drives and optical drives are stored as files in Linux. Linux allocates a file consisting of hd prefixes to various IDE devices, while a file consisting of sd prefixes to various SCSI devices. For example, for the first IDE device, Linux is defined as hda; for the second IDE device, hdb; and so on. The SCSI devices should be sda, sdb, and sdc. If there are two IDE hard disks in Linux, the first hard disk code is had, and the second hard disk code is hdb. Obviously, this is different from Microsoft's operating system representation. If it is a Windows operating system, it is expressed as disk 0 and Disk 1.

In addition, there are also differences between the two operating systems in the partition representation. The two are the same, that is, operations must be performed on each hardware device to partition, which may be an IDE hard disk or a SCSI hard disk. However, the Code for the two partitions is different. For each hard disk, a serial number ranging from 1 to 16 is assigned in the Linux operating system, which indicates the Partition Number on the hard disk. For example, the first partition of the first IDE Hard Disk maps hda1 in Linux, and the second partition is called hda2. If there is a second hard disk, the partition code is hdb1. This is different from the Windows operating system. In the Microsoft operating system, its partitions are directly marked with C, D, E, F, and so on. Therefore, if you look at the partition code, the Microsoft operating system does not know how many hard disks are in the operating system and which one is on which disk. This brings some trouble to the daily management of the system.

In Linux, the df command can be used to view the current partition information. The actual information is as follows. From this information, we can know the quantity of the current hard disk, the type of the hard disk (IDE hard disk or SCSI hard disk), the usage of each partition, and usage.

 



Insert: DF command

[1] [2] [3] Next page

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.