[转]Use ReiserFS in CentOS 5(lvm)

本文介绍如何在 CentOS 5 上安装并使用 ReiserFS 文件系统,包括启用内核更新、安装支持 ReiserFS 的内核及工具、格式化分区等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自 http://www.fengfly.com/plus/view-65281-1.html

 

Use ReiserFS in CentOS 5

CentOS 5 doesn’t support ReiserFS by default. You need to install the kernel with reiserfs support and reiserfs utilities (such as mkfs.reiserfs) from “centosplus” repository.

However, “centosplus” in not enabled by default and kernel update is disabled in /etc/yum.conf in some customized versions. So we shall enable kernel update first

1. edit /etc/yum.conf, comment the line “exclude=kernel*” out.
2. install kernel and utilities from centosplus repo

[root@xok.la-LAN ~]# yum --disablerepo updates,base --enablerepo=centosplus list 'kernel*'

centosplus                100% |=========================|  951 B    00:00    
addons                    100% |=========================|  951 B    00:00    
extras                    100% |=========================| 1.1 kB    00:00    
Excluding Packages in global exclude list
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
Installed Packages
kernel.i686                              2.6.18-92.el5          installed      
kernel-devel.i686                        2.6.18-92.el5          installed      
kernel-headers.i386                      2.6.18-92.el5          installed      
Available Packages
kernel.i686                              2.6.18-128.1.6.el5.cen centosplus     
kernel-PAE.i686                          2.6.18-128.1.6.el5.cen centosplus     
kernel-PAE-devel.i686                    2.6.18-128.1.6.el5.cen centosplus     
kernel-devel.i686                        2.6.18-128.1.6.el5.cen centosplus     
kernel-doc.noarch                        2.6.18-128.1.6.el5.cen centosplus     
kernel-headers.i386                      2.6.18-128.1.6.el5.cen centosplus     
kernel-xen.i686                          2.6.18-128.1.6.el5.cen centosplus     
kernel-xen-devel.i686                    2.6.18-128.1.6.el5.cen centosplus

[root@myserver ~]# yum --disablerepo updates,base --enablerepo=centosplus install kernel.i686
if report:
Error: kernel conflicts with ecryptfs-utils < 44
resolve:

rpm -e ecryptfs-utils

[root@xok.la-LAN ~]# yum --disablerepo updates,base --enablerepo=centosplus install kernel.i686

Excluding Packages in global exclude list
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.18-128.1.6.el5.centos.plus set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kernel                  i686       2.6.18-128.1.6.el5.centos.plus  centosplus         17 M

Transaction Summary
=============================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 17 M
Is this ok [y/N]: y
Downloading Packages:
http://mirror.khlug.org/centos/5.3/centosplus/i386/RPMS/kernel-2.6.18-128.1.6.el5.centos.plus.i686.rpm: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
(1/1): kernel-2.6.18-128.   8% |==                       | 1.4 MB    69:21 ETA ^(1/1): kernel-2.6.18-128. 100% |=========================|  17 MB    10:14    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kernel                       ######################### [1/1]

Installed: kernel.i686 0:2.6.18-128.1.6.el5.centos.plus
Complete!
[root@myserver ~]# yum --disablerepo updates,base --enablerepo=centosplus list '*reiser*'
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * centosplus: centos.mirroring.us
 * addons: centos.mirroring.us
 * extras: mirrors.service.softlayer.com
Available Packages
reiserfs-utils.i386                    2:3.6.19-2.4.1         centosplus     
[root@myserver ~]# yum --disablerepo updates,base --enablerepo=centosplus install reiserfs-utils.i386

[root@xok.la-LAN ~]# yum --disablerepo updates,base --enablerepo=centosplus install reiserfs-utils.i386
Excluding Packages in global exclude list
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package reiserfs-utils.i386 2:3.6.19-2.4.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 reiserfs-utils          i386       2:3.6.19-2.4.1   centosplus        482 k

Transaction Summary
=============================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 482 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): reiserfs-utils-3.6 100% |=========================| 160 kB    00:33    
http://mirror.nus.edu.sg/centos/5.3/centosplus/i386/RPMS/reiserfs-utils-3.6.19-2.4.1.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(1/1): reiserfs-utils-3.6 100% |=========================| 482 kB    00:13    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: reiserfs-utils               ######################### [1/1]

Installed: reiserfs-utils.i386 2:3.6.19-2.4.1
Complete!
3.format
mkfs.reiserfs /dev/xxxx
update /etc/fstab (e2label doesn’t work for reiserfs, so use device name instead of LABEL)

4. reboot server to use new kernel


原文来自:雨枫技术教程网 http://www.fengfly.com
原文网址:http://www.fengfly.com/plus/view-65281-1.html

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值