In LINUX, we recommend that you use ext3, ReiserFS, and XFS log file systems. These two file system formats run in LINUX with high security. in the case of sudden unexpected downtime, no data consistency needs to be checked, so that the system recovery time ranges from a few minutes...
In LINUX, we recommend that you use ext3, ReiserFS, and XFS log file systems. These two file system formats run in LINUX with high security. in case of unexpected downtime, you do not need to check any data consistency, this shortens the system recovery time from a few minutes to a few seconds. at the same time, it can ensure data integrity and speed. Next, I will briefly introduce the knowledge of these two file systems, the usage of the installation directory in the Ubuntu system, and some of my partition experience to share with you as follows: www.2cto.com 1. Ext3RedHat default file system. Compared with Ext2, the log function is added, and PartitionMagic is compatible. we recommend that you use this file system for new users. The three modes of Ext3 can be converted using the mount Command: (1) data = journal: The file data and metadata are both set to the log mode, with high performance overhead (2) data = ordered (default setting): write data sequentially, write file data first, and then write metadata (3) data = writeback: provides the fastest access speed, but sacrifices data consistency. The metadata is still recorded in the log to ensure the integrity of the metadata. The file data will be restored to the original state after the system crash. 2. ReiserFSSUSE LINUX's default file system. However, Red Hat Enterprise Linux AS does not support ReiserFS. we recommend that you use this file system. this file system has the following three advantages: (1) effectively utilizing disk space, unlike other file systems, ResierFS does not depend on the size of data blocks. Processing a large number of small file storage operations is advantageous, resulting in very few disk fragments; (2) improved reliability and recovery speed; (3) using the data structure of the balance tree, you can store both content data and security metadata to achieve faster access. 3. XfSXfS file system is an advanced log file system developed by SGI. XFS is highly scalable and robust. Fortunately, SGI transplanted it to the Linux system. In linux. The latest XFS file system available in the current version is version 1.2, which can work well under the 2.4 core. Main features include the following: (1) data integrity adopts the XFS file system. when unexpected downtime occurs, the file system first enables the log function, therefore, files on your disk will not be damaged by unexpected downtime. Regardless of the number of files and data stored in the file system, the file system can quickly restore the disk file content according to the recorded logs. (2) transmission features the XFS file system uses optimization algorithms. log records have little impact on the overall file operations. XFS queries and allocates storage space very quickly. The xfs file system continuously provides fast response time. After testing the XFS, JFS, Ext3, and ReiserFS file systems, the XFS file system has outstanding performance. (3) scalability XFS is a fully 64-bit file system that supports storage space of millions of T bytes. The support for ultra-large files and small-sized files is outstanding, and supports ultra-large directories. The maximum supported file size is 263 = 9x1018 = 9 exabytes, and the maximum file system size is 18 exabytes. XFS uses a high table structure (B + tree) to ensure that the file system can quickly search for and quickly allocate space. XFS provides continuous high-speed operations, and the file system performance is not limited by the number of directories and files in the directory. (4) the transmission bandwidth XFS can store data close to bare device I/O performance. In the test of a single file system, the throughput can reach up to 7 GB per second. for read/write operations on a single file, the throughput can reach 4 Gb per second. 4. primary partition, extended partition, and logical partition (1) primary partition: a relatively simple partition, usually located in the front of the hard disk, forming a logical C disk. Other logical disks cannot be created in the primary partition. (2) logical partition: because the hard disk only reserves 64 bytes of storage space for the partition table, the parameters of each partition occupy 16 bytes, therefore, data in a total of four partitions can be stored in the primary boot sector. The operating system can only store data in four partitions. if a logical disk is a partition, the system can only have four logical disks. For specific applications, four logical disks cannot meet the actual needs. To create more logical disks for the operating system, the system introduces the concept of extended partitions. (3) extended partition: Strictly speaking, it is not a partition in actual sense. it is just a pointer to the next partition. this pointer structure will form a one-way linked list. In this way, in addition to the primary partition, only the partition data called the extended partition needs to be stored in the primary boot sector, the data of this extended partition can be used to locate the starting position of the next partition (which is actually the next logical disk), and then all the partitions can be found. No matter how many logical disks are created in the system, you can find each logical disk one by one in the primary boot sector using the parameters of an extended partition. Note that each partition after the primary partition is linked through a one-way linked list structure. Therefore, if a problem occurs in the one-way linked list, the logical disk may be lost. 5. directory function/: Root partitions include/etc,/bin,/sbin,/lib, and/dev. Otherwise, the system cannot be started. /Usr: Contains all user programs (/usr/bin), library files (/usr/lib), Documents (/usr/share/doc), and so on. This is the most space-consuming part of the file system. You must provide at least 500 MB disk space. The total capacity increases based on the number and type of software packages to be installed. Loose workstation or server installation should require 4-6 GB. /Var: all variable data, such as the cache of newsgroup articles, emails, websites, databases, and software package systems, will be put into this directory. The size of this directory depends on your computer's purpose, but for most people, it will be mainly used as a management tool for the software package system. /Tmp: the temporary data created by the program is mostly stored in this directory. Usually 40-100 MB should be enough. Some applications-including archive handlers, CD/DVD preparation tools, and multimedia software-may use/tmp to temporarily save image files. /Home: each user places his/her private data under the subdirectory of this directory. The size depends on how many users use the system and what files are stored in their directories. According to the planned purpose, 100 MB space should be prepared for each user, but it should be adjusted as needed. If you plan to save a large number of multimedia files (images, MP3 files, and movies) in the home directory, you should prepare more space. /Opt: additional application software package. 6. partition experience (1) there must be at least two partitions, one is/swap partition and the other is/root partition. (2) in recent years, the price of hard disks has become cheaper and cheaper. if you spend 200 or 300 yuan, you can buy a large hard disk. I use a 25 GB partition as an example. The remaining disk space can be divided by using the partition management tool after the system is installed and logged on to the system, it can be used for dedicated data storage and backup space. /Calculate the remaining hard disk size, primary partition, start mark, Ext3 format, 5-10G;/HOME 5G, logical partition, Ext3 format;/USR 6G, logical Partition, Ext3 format;/VAR 4G, logical partition, Ext3 format;/TMP 1G, logical partition, Ext3 format;/OPT 1G, logical partition, Ext3 format; the size of the swap is the same as that of the memory. a maximum of 1 GB is enough for the primary partition. The Start flag starts.
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