[转]Use ReiserFS in CentOS 5(lvm)

news/2024/6/19 5:56:25 标签: centos, download, report, list, socket, server

转自 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

 


http://www.niftyadmin.cn/n/1054980.html

相关文章

var声明变量

var操作符定义变量将成为定义该变量作用域的局部变量 举例说明&#xff1a;  例子1&#xff1a; 1 function test(){ 2 var message "hi"; //message是函数内部局部变量 3 } 4 5 test(); 6 console.log(message); //报错 错误截图&#xff1a; 解析&#…

day38

今日内容: epoll要解决的问题 1.避免频繁的对等待队列进行操作 2,避免遍历所有socket 对于第一个问题先看select的处理方式 while Ture: r_list,w_list,x_list select.select(rlist,wlist,xlist) 每次处理完一次读写后,都需要将所用过冲重复一遍,包括移除进程,添加进程,默认就…

C语言从TXT文件中读数据

功能&#xff1a; 在C语言程序中&#xff0c;很多地方都需要手动输入数据。 比如你需要打印一串数组&#xff1a;0,1,2,3,4,5,6,7,8,9 第一步你需要一个一个数字在控制台输入。然后才能打印。 常规代码&#xff1a; for(int i0;i<10;i)scanf("%d",&a[i]) 那么…

【Ant Design】只需几步就可以搭建属于自己的前端页面

准备工作&#xff0c;需要电脑安装node&#xff0c;git和yarn&#xff0c;这个不是我说的&#xff0c;是官网说的&#xff0c;不过在安装这个框架的时候我还没有发现哪里有用到yarn&#xff0c;估计在之后会用到&#xff0c;就先安上吧。 一、工具准备 node的安装 https://no…

[转]KFS的部署与简单使用

网上看到一篇KFS的文章&#xff0c;抽时间用一下。 转自&#xff1a;http://blog.csdn.net/ylc2008/archive/2009/08/28/4495002.aspx 预装软件 - zlib - bzip - glib - python - openssl - ncurses - Boost (preferably, version 1.34 or higher) - cmake (preferably, versi…

MySQL 技术内幕:InnoDB存储引擎pdf

下载地址&#xff1a;网盘下载 内容简介 编辑《MySQL技术内幕:InnoDB存储引擎》是国内目前唯一的一本关于InnoDB的著作&#xff0c;由资深MySQL专家亲自执笔&#xff0c;中外数据库专家联袂推荐&#xff0c;权威性毋庸置疑。内容深入&#xff0c;从源代码的角度深度解析了InnoD…

凡事预则立

1、讨论组长是否重选的议题和结论。 组长不重选&#xff0c;因为没有人想当这个组长&#xff0c;所以还是由我继续。 2、下一阶段需要改进完善的功能。 Alpha版本尚未完成的功能很多&#xff0c;预计先将基本功能完成&#xff08;发布信息和修改&#xff09;。 3、下一阶段新增…

django 删除数据库表后重新同步的方法

python manage.py sqlmigrate your_app_name 0001把your_app_name换成自己的app名字即可看到框架自动生成的创建表sql语句&#xff0c;于是我就这样看到了sql语句。我直接在数据库中执行了该句sql命令手动创建了表&#xff0c;再启动应用&#xff0c;可以正常启动&#xff0c;问…