系統管理
1751874 會員
5176 線上
108782 解決方案
發表新文章

Enterprise Linux AS release 3上有ext2online嗎

 
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎



我的版本是

Enterprise Linux AS release 3 (Taroon Update 4)

On IA64

請問有ext2online這個東西嗎,還是需要另外裝
12則回覆 12
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

use following to check,

#rpm -ql ext2resize



if don't have it, you can either install via rpm package or source tarball.



http://rpmfind.net/linux/rpm2html/search.php?query=ext2online&submit=Search+...



http://sourceforge.net/projects/ext2resize/
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

你有使用 LVM 嗎 ? 有的話可以用 e2fsadm 來做 resize 的動作, 更方便哦
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

e2fsadm跟ext2online可以不用umount 就直接resize了嗎
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

ext2resize也是不用umount就resize嗎



watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

But online resize must be supported in your kernel, so, you must to have the kernel support first, then it's possible without umount.
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

For mounted filesystems it can extend the

logical volume and grow the filesystem using

ext2online

watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

要怎知道我的kernel 是否有支援呢?
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

首先必須先檢查是否目前的kernel版本已包含該有的模組



1. #cd /usr/src/linux-2.X

2. #make menuconfig

3. check "CONFIG_EXPERIMENTAL" under "Code maturity level options" and "CONFIG_EXT2_RESIZE" under "File systems" to see if it is build-in kernel or build as module. if the answer is yes, then your kernel is supported now. if don't or you didn't see the option in your kernel, then go though following,



4. you have to patch your kernel first,

5. go to official web to download the version which you would like to install, for example ext2resize-1.1.19 and download the tarball package onto your system.

6. # tar -jxvf ext2resize-1.1.19.tar.bz2

7. # cd /usr/local/src/ext2resize-1.1.19/patches

8. if your kernel is 2.4.8, then go to /usr/src/linux-2.4.8

9. # `patch -p1 < /path/to/patch/online-ext2-2.4.8.diff'

10. repeat step one to three, then activate the option in kernel configuration,

11. Build the kernel `make dep; make bzImage; make modules'

12. Install the kernel (as appropriate for your system). and reboot, after reboot, you have the supported kernel.



*Note: all patches are under /${EXTRACT_PATH}/patches/
watermelonyu
教授

Enterprise Linux AS release 3上有ext2online嗎

有錯誤....

ext2online: group 0, block 4 not reserved

ext2online: unable to resize /dev/Volume00/home

我的版本是RHEL3 LVM version is LVM 1

所以沒辦法用ext2online嗎?