How to install and configure xfsfilesystem in rhel5

Source: Internet
Author: User
The xfsfilesystem installation and configuration method in rhel5 is one of my most commonly used filesystems. Compared with the most common ext3, xfsfilesystem has a good reputation and can be queried over the network. However, xfs is generally used as an optional File System in linux. Many operating systems do not install the support required by xfs in the system by default. If you want to try xfs,

Xfs under rhel5FileSystem installation and configuration

Xfs filesystem is one of my most commonly used filesystems, and the most commonExCompared with t3, it has a good reputation. You can query the network for details.

However, xfs is generally used as an optional File System in linux. Many operating systems do not install the support required by xfs in the system by default. If you want to try xfs or have a hard disk, the above file system is xfs, but the system does not support it, there are two options:

1. reinstall the system and create an xfs zone in the partition. Then, the system will mount the required support.
2. For more information about online installation, see.

The support required by xfs is divided into two aspects: Kernel support, 2.6 kernel support for xfs, which can be loaded using modules, and tool software to supportMkfs, Mount, etc. xfs also has a lot of additional tool software, and I have no time to use it. To install xfs support, you just need to fix the kernel and tools.

It is relatively simple to install xfs in ubuntu:

Apt-get install xfsprogs-yf; echo install finishEd

However, when xfs is installed in redhat, you have to tell rhel5 how to install xfs.

First, install yum:

Http://sudone.com/linux/rhel5_yum.html

Search:

Yum search xfs

To get a lot of things, you can select a few installations here:

Kernel:

Yum install kmod-xfs-PAE
Yum install kmod-xfs-xen
Yum install kmod-xfs

Tool section:

Yum install xfsDuMp
Yum install xfsprogs-devel
Yum install xfsprogs

The kernel part can also be selected based on the current system, and the full installation is the most worry-free.

Check:

LsMod |GrepXfs

We can see that this kernel module has been loaded into the system.

Then you can try it:

I have no useless partitions. Just unload swap and try again.

Swapoff-

Swap is idle.

Fdisk-L | grep swap | awk '{print $1 ;}'

Find the swap partition name/dev/sda6

Then you can format it:

Mkfs. xfs-f/dev/sda6

When the grid is finished, mount it up:

Mkdir/Test
Mount-t xfs/dev/sda6/test

Let's see:

Mount

We can see that

/Dev/sda6 on/test type xfs (rw)

Success

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.