Alex Bligh | 1 Aug 21:34 2004
Picon

RE: Large File Copy to Large ext3 RAID5 Array Often Stalls


--On 31 July 2004 14:36 -0700 Calin Brabandt <calinb <at> comcast.net> wrote:

> Perhaps this IS a Samba problem.  I created a new directory structure on
> my RAID5 array from the Linux console and move its contents of large
> files to the new subdirectory.  Although I need to do more testing, the
> problem seem to have vanished--at least when copying new files from my
> network Samba clients to the new subdirectory.

I am *FAR* from an expert, but I seem to remember that samba isn't
particularly efficient at scanning directories, not least because of
case-insensitive filename matching.

You didn't say what kernel you were using, but if it is 2.4, then ext3 is
also not efficient at holding directories with large numbers of files
(which is what I think you said you had). It may be that the two problems
compound to give you very slow performance.

You can try the htree patch for your kernel, then ensure the directory gets
indexed - IIRC mv the directory out the way, create a new directory when
htree is turned on (which will then be created with the relevant htree
index), and mv each of the files in the old directory back into the new
directory.

If you were using 2.4, but in the intervening period you've upgraded to 2.6
(which has the htree fixes in), I note you've just done effectively that,
which may be why the problem has disappeared - just a guess.

Alex
(Continue reading)

Calin Brabandt | 2 Aug 10:38 2004
Picon
Picon

RE: Large File Copy to Large ext3 RAID5 Array Often Stalls

Thanks Alex!  I'm running 2.6 from a new install of Fedora Core 2 so it's my
understanding that the htree fixes were there all along--unless they came
with one of the Core 2 kernel updates.  Samba may be responsible for some of
my problems, but because I had the same problems with ftp and I couldn't
correlate the trouble to anything on the client machines or network, I was
ready to blame ext3 or the RAID5.  Things seem better now that I recreated
the directory structure from the server console and moved the files to the
new subdirectories, rather than copying the subdirectories from the Samba
clients.

Cal

-----Original Message-----
From: Alex Bligh [mailto:alex <at> alex.org.uk] 
Sent: Sunday, August 01, 2004 11:35 AM
To: Calin Brabandt; ext3-users <at> redhat.com
Cc: Alex Bligh
Subject: RE: Large File Copy to Large ext3 RAID5 Array Often Stalls

--On 31 July 2004 14:36 -0700 Calin Brabandt <calinb <at> comcast.net> wrote:

> Perhaps this IS a Samba problem.  I created a new directory structure on
> my RAID5 array from the Linux console and move its contents of large
> files to the new subdirectory.  Although I need to do more testing, the
> problem seem to have vanished--at least when copying new files from my
> network Samba clients to the new subdirectory.

I am *FAR* from an expert, but I seem to remember that samba isn't
particularly efficient at scanning directories, not least because of
case-insensitive filename matching.
(Continue reading)

Peter Schmidt | 3 Aug 03:40 2004

How to determine the size of a existing journal file

I'm wondering if there is a way to figure out what the size of a journal 
file that was created on an ext3 file system.

Any help would be greatly appreciated.

Thanks..

peter
Zach Brown | 3 Aug 05:38 2004
Picon

Re: How to determine the size of a existing journal file

Peter Schmidt wrote:
> I'm wondering if there is a way to figure out what the size of a journal
> file that was created on an ext3 file system.

well, one way:

# dumpe2fs -h /dev/hda2 | grep 'Journal inode'
dumpe2fs 1.34 (25-Jul-2003)
Journal inode:            8

# debugfs -R 'stat <8>' /dev/hda2
Inode: 8   Type: regular    Mode:  0600   Flags: 0x0   Generation: 0
User:     0   Group:     0   Size: 33554432
[...]

32M, here.

- z
Simon Oliver | 3 Aug 10:26 2004
Picon

RE: ext3 performance with hardware RAID5

> On Wed, 2004-07-14 at 14:56, Simon Oliver wrote:
> > -O dir_index because this is supposed to help file listing 
> performance 
> > with Samba shares -R stride=8 because of the 32kb stripe size 
> > (4kb*8=32kb)
> > 
> 
> RHEL3 does not include HTREE though (the thing that uses dir_index)
> 
Does any know if the dir_index option will this be included in update 3?
Also, any plans for XFS to be included?

--

-- 
  Simon Oliver
susu musa | 3 Aug 11:38 2004
Picon

Recover deleted FILE in EXT-3 FS

Hi All

Can someone advice me how to recover a deleted file in EXT-3 File system ?

Thanks

susu

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail
Shwartz Avraham | 3 Aug 11:41 2004

Recover deleted FILE in EXT-3 FS

Hi All

Can someone advice me how to recover a deleted file in EXT-3 File system ?

Thanks
 
 
Avraham
 
_______________________________________________
Ext3-users mailing list
Ext3-users <at> redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
Stephen C. Tweedie | 9 Aug 22:28 2004
Picon

RE: ext3 performance with hardware RAID5

Hi,

On Tue, 2004-08-03 at 09:26, Simon Oliver wrote:
> > On Wed, 2004-07-14 at 14:56, Simon Oliver wrote:
> > > -O dir_index because this is supposed to help file listing 
> > performance 
> > > with Samba shares -R stride=8 because of the 32kb stripe size 
> > > (4kb*8=32kb)
> > > 
> > 
> > RHEL3 does not include HTREE though (the thing that uses dir_index)
> > 
> Does any know if the dir_index option will this be included in update 3?
> Also, any plans for XFS to be included?

There are no plans to include either of them for update 3.

--Stephen
Zhu Ye | 10 Aug 03:42 2004

Conversion / partition from ext2 to ext3

Hi,
 
I have installed Red Hat Linux 7.3 with ext2 file system and I have multiple partition. I converted them to ext3 using following command.
 
tune2fs -j -i 0 /dev/hdaX
 
And I modified /etc/fstab as below.
 
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home             /home                   ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/var              /var                    ext3    defaults        1 2
/dev/hda5               swap                    swap    defaults        0 0
 
After I rebooted  the system, I found / partition still was mounted as ext2.
 
[root <at> ProEIM root]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw 0 0                      # not mounted as ext3
/proc /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda1 /boot ext3 rw 0 0
none /dev/pts devpts rw 0 0
/dev/hda6 /home ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/hda2 /var ext3 rw 0 0
[root <at> ProEIM root]#
 
But it is ext3 when I use df -T.
 
[root <at> ProEIM root]# df -T
Filesystem    Type   1k-blocks      Used Available Use% Mounted on
/dev/hda3     ext3     5036316    335784   4444700   8% /                   
/dev/hda1     ext3      101089      8724     87146  10% /boot
/dev/hda6     ext3    66263252    466552  62430684   1% /home
none         tmpfs      127416         0    127416   0% /dev/shm
/dev/hda2     ext3     5036316    101656   4678828   3% /var
[root <at> ProEIM root]#
 
How can I convert / partition from ext2 to ext3? Please help me.
 
Regards,
Zhu
 
_______________________________________________
Ext3-users mailing list
Ext3-users <at> redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
Andreas Dilger | 10 Aug 06:00 2004

Re: Conversion / partition from ext2 to ext3

On Aug 10, 2004  09:42 +0800, Zhu Ye wrote:
> After I rebooted  the system, I found / partition still was mounted as ext2.
> 
> [root <at> ProEIM root]# cat /proc/mounts 
> rootfs / rootfs rw 0 0
> /dev/root / ext2 rw 0 0                      # not mounted as ext3
> 
> But it is ext3 when I use df -T.
> 
> [root <at> ProEIM root]# df -T
> Filesystem    Type   1k-blocks      Used Available Use% Mounted on
> /dev/hda3     ext3     5036316    335784   4444700   8% /                    
> /dev/hda1     ext3      101089      8724     87146  10% /boot
> /dev/hda6     ext3    66263252    466552  62430684   1% /home
> none         tmpfs      127416         0    127416   0% /dev/shm
> /dev/hda2     ext3     5036316    101656   4678828   3% /var
> [root <at> ProEIM root]#
> 
> How can I convert / partition from ext2 to ext3? Please help me.

Rebuild your initrd (mkinitrd).

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://members.shaw.ca/adilger/             http://members.shaw.ca/golinux/

Gmane