LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2011, 03:44 AM   #1
bhaveshvv109
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
What is the difference between ext2online and resize2fs command


What is the difference between ext2online and resize2fs command?
 
Old 03-09-2011, 03:50 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I just saw this on the web the other day....

Quote:
resize2fs - The resize2fs program will resize ext2 or ext3 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing

ext2online - The ext2online tool resizes ext2 file systems while they are mounted and in use by the system. It is OK to resize the filesystem even while programs have open files and are writing into the filesystem. It is only possible to enlarge a mounted filesystem. To be able to use ext2online, you need to have the Online ext2 resize support (CONFIG_EXT2_RESIZE) feature enabled in the kernel

Tresize2fs - The resize2fs program does not manipulate the size of partitions. If you wish to enlarge a filesystem, you must first make sure you can expand the size of the underlying partition first.

ext2online - The ext2online program does not change the size of the actual device - only the filesystem. If you wish to enlarge a filesystem, you must make sure you expand the underlying device first.

You can shrink partitions using resize2fs but u cant do it with ext2onilne.


FYI - The ext2online tool can currently only resize ext3 filesystems online, despite references to ext2 filesystems in this manpage. The ext2resize tool can resize either ext2 or ext3 filesystems, offline.

ref : - http://linux.die.net/man/8/resize2fs

http://linux.die.net/man/8/ext2online
(taken from a google cache exert)
 
Old 03-09-2011, 04:29 AM   #3
bhaveshvv109
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks dude
 
Old 03-09-2011, 04:32 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
No problem man. Mark your thread as solved if you can, thanks.

Josh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can ext2online tool works on ext3. cj_cheema Linux - Server 1 07-08-2009 04:48 AM
ext2online error - found 0 not 1605634 at 2[7] epoh Linux - Server 1 06-24-2008 01:43 PM
[SOLVED] ext2online is not there procfs Linux - Newbie 1 03-04-2008 12:31 PM
lv command difference between -L and -l vinodkumarmj Linux - Software 2 05-30-2006 09:04 AM
resize2fs nooch Red Hat 2 02-25-2005 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration