Chinaunix首页 | 论坛 | 博客
  • 博客访问: 496811
  • 博文数量: 80
  • 博客积分: 1475
  • 博客等级: 上尉
  • 技术积分: 1047
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-01 22:58
文章分类

全部博文(80)

文章存档

2012年(3)

2010年(77)

我的朋友

分类: LINUX

2010-05-08 17:44:37

一、关于resize功能
1、ext2/ext3要resize,一般都使用resize2fs。
2、对于已mount的文件系统,只能扩大。
3、在早期的RHEL中,由于resize2fs无在线resize功能,故额外提供了ext2online。
   kernel 2.6以后,resize2fs已实现在线resize功能。
4、只有ext3可以在线扩展。
5、ext2online与resize2fs均可离线resize ext2和ext3(可以看看manpage)。
二、关于ext2online的命名
由于ext3fs=ext2fs+journaling,所以指令取名为ext2*,并不是说就只能用于ext2,它既可用于ext2,也可用于ext3。类似命名指令还有e2fsck,e2label等。

三、ext2online工具的安装
rpm包下载地址:

-----------------
1、创建sct用户
#useradd sct
2、安装ext2resize包
#rpm -ivh ext2resize-1.1.19-1.x86_64.rpm
-----------------
安装完成后会有三个命令:
ext2online   ext2prepare  ext2resize
-----------------
注意:安装此工具,必须有sct用户(当前用户不用是sct)
否则将出现如下错误:
--------------
[root@rhel15 ~]# rpm -ivh ext2resize-1.1.19-1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:ext2resize             warning: user sct does not exist - using root
warning: group sct does not exist - using root
warning: user sct does not exist - using root 22%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root 47%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root 78%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root
warning: group sct does not exist - using root
warning: user sct does not exist - using root
warning: group sct does not exist - using root
warning: user sct does not exist - using root 88%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root 91%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root 92%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root
warning: group sct does not exist - using root
warning: user sct does not exist - using root
warning: group sct does not exist - using root
warning: user sct does not exist - using root 96%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root 97%)
warning: group sct does not exist - using root
warning: user sct does not exist - using root
warning: group sct does not exist - using root
########################################### [100%]
--------------
阅读(2131) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~