View previous topic :: View next topic |
Author |
Message |
codejnki n00b
Joined: 08 Aug 2002 Posts: 36
|
Posted: Mon Sep 23, 2002 11:48 pm Post subject: Convert ext3 to ext2--can it be done? |
|
|
I'm convinced that my preformance problems are related to ext3. During boot the kernel messages fly by as quickly as I have always seen them fly by and then as soon as it hit's mounting the file systems everything slows down to a crawl.
Is there a simple command line I can run to convert my ext3 file system to an ext2 file system? I've used ext2 for years and never ran in to a major problem. |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Mon Sep 23, 2002 11:58 pm Post subject: |
|
|
Code: | umount /dev/hdaX
/sbin/tune2fs -O ^has_journal /dev/hdaX
/sbin/e2fsck -y /dev/hdaX
mount -t ext2 /dev/hdaX /mount/point
rm -f /mount/point/.journal |
cheers
steve |
|
Back to top |
|
|
codejnki n00b
Joined: 08 Aug 2002 Posts: 36
|
Posted: Tue Sep 24, 2002 12:06 am Post subject: |
|
|
okay to ask my second question of the eveaning...
How would you go about doing thins on the root file system where your /sbin directory lived? |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Sep 24, 2002 12:13 am Post subject: |
|
|
Use the install disk to boot and then do this. You root won't be mounted then.
codejnki wrote: | okay to ask my second question of the eveaning...
How would you go about doing thins on the root file system where your /sbin directory lived? |
|
|
Back to top |
|
|
codejnki n00b
Joined: 08 Aug 2002 Posts: 36
|
Posted: Tue Sep 24, 2002 12:12 pm Post subject: |
|
|
Naan Yaar wrote: | Use the install disk to boot and then do this. You root won't be mounted then. |
And a loud "DUH!!!" was heard in the vacinity of the Michigan/Indiana/Ohio border.
Thanks |
|
Back to top |
|
|
paul138 Guru
Joined: 09 Aug 2002 Posts: 370 Location: Ottawa, ON
|
Posted: Tue Sep 24, 2002 2:01 pm Post subject: BC |
|
|
ext3 is backward compatible with ext2.
You can change the file system type in your fstab to ext2 instead of ext3 and see if that helps. _________________ Talk is cheap because supply always exceeds demand. |
|
Back to top |
|
|
codejnki n00b
Joined: 08 Aug 2002 Posts: 36
|
Posted: Tue Sep 24, 2002 3:02 pm Post subject: |
|
|
So if I understand this correctly, if I tell it to mount it as an ext2 instead of ext3 it basically won't do the journaling
This would be very nice. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Tue Sep 24, 2002 3:16 pm Post subject: |
|
|
Short answer: yes
Long answer: why do you need a longer answer???
codejnki wrote: | So if I understand this correctly, if I tell it to mount it as an ext2 instead of ext3 it basically won't do the journaling
This would be very nice. |
|
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Sep 24, 2002 3:21 pm Post subject: |
|
|
You have to be careful with this though. If you have unclean shutdowns when mounted as ext3, you would want to mount as ext3 to recover the journal and do a clean shutdown before mounting as ext2.
The slowing down to a crawl part is probably not due to journaling. Have you optimized your hdparm settings to enable DMA, etc., if applicable? This could be a reason.
codejnki wrote: | So if I understand this correctly, if I tell it to mount it as an ext2 instead of ext3 it basically won't do the journaling
This would be very nice. |
|
|
Back to top |
|
|
paul138 Guru
Joined: 09 Aug 2002 Posts: 370 Location: Ottawa, ON
|
Posted: Tue Sep 24, 2002 3:32 pm Post subject: |
|
|
Naan Yaar wrote: | You have to be careful with this though. If you have unclean shutdowns when mounted as ext3, you would want to mount as ext3 to recover the journal and do a clean shutdown before mounting as ext2.
|
Correct. I recommended switching to ext2 to see if ext3 was in fact the cuprate. Maybe I should have been more clear on this.
If it's not the problem, swicth back to ext3 (via fstab) and try the hdparm stuffs.
After you've booted up, run:
/etc/init.d/hdparm start
And work with it for a while. But not until you've tested ext2 -without- this script. _________________ Talk is cheap because supply always exceeds demand. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Tue Sep 24, 2002 3:54 pm Post subject: |
|
|
Well, I'm quite happy with my ext3 partitions. Have been using ext3 for a while, never had corruption/performance problems. I cannot see any difference in performance when compared with ext2, although I can see the advantage when I have some power interruption (which is not a problem in my notebook ). Anyway, I like the journaling and I feel a *lot* better having it than sacrificing it for some small (if any) performance improvement.
How worth is your data? |
|
Back to top |
|
|
codejnki n00b
Joined: 08 Aug 2002 Posts: 36
|
Posted: Tue Sep 24, 2002 5:18 pm Post subject: |
|
|
It's actually just a web browsing system for my girlfriend. She needs something to browse the web to check her bank statement and chat with people (go gaim). Other than that it's the firewall/router for when i use my laptop. I'm running the cable modem through there.
I actually turned OFF the dma stuff (i'm not exactly sure if this system supports DMA or not) and didn't notice a thing. I'm at work right now so I'll have to wait till I get home to really test it out. |
|
Back to top |
|
|
codejnki n00b
Joined: 08 Aug 2002 Posts: 36
|
Posted: Wed Sep 25, 2002 1:00 am Post subject: |
|
|
I've mounted as EXT2: still felt sluggish
ran the hdparm script: small improvement (may be just a mental thing though)
swiched from running Mozilla to the newly release Pheonix (this thing rocks) and although I still feel like it's limping along, at least there isn't the full mozilla bloat.
Patrick |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Wed Sep 25, 2002 2:13 am Post subject: |
|
|
Maybe the problem is elsewhere, like in your kernel...
Are you sure you have the correct options for your specific motherboard? Correct chipsets may improve your performance a lot.
codejnki wrote: | I've mounted as EXT2: still felt sluggish
ran the hdparm script: small improvement (may be just a mental thing though)
swiched from running Mozilla to the newly release Pheonix (this thing rocks) and although I still feel like it's limping along, at least there isn't the full mozilla bloat.
Patrick |
|
|
Back to top |
|
|
codejnki n00b
Joined: 08 Aug 2002 Posts: 36
|
Posted: Wed Sep 25, 2002 2:34 pm Post subject: |
|
|
Could the problem be devfs? Looking through my kernel config I've got just about all the chipset stuff compiled in. One thing that I did find is that devfs is enabled (per Gentoo's request) but it was not set to autmatically mount at boot.
Could this be causing the system come in to conflict with things? |
|
Back to top |
|
|
fmalabre Guru
Joined: 19 Jun 2002 Posts: 376 Location: Chicago
|
Posted: Wed Sep 25, 2002 5:26 pm Post subject: |
|
|
Reiser fs is very fast. |
|
Back to top |
|
|
|