corrution when creating large number of directory

Simon Kenyon (simon@koala.ie)
Tue, 22 Sep 1998 21:54:49 +0100


i'm setting up a samba server for my accountant
(this is the second attempt :-()
what happens is that (this time on 2.0.35) i have a script which creates a
large number of directories of the format <year>/<clients>/<catagory> where
<year> ::== 1990 ... 1999
<client> ::== [A-Z][A-Z][A-Z][0-9][0-9] (about 600 of them)
<catagory> ::= about twenty different 3-5 character mnemonics
in total we are talking about approx 150k directories

i'm getting corruption of the directory hierarchy
the disk was so screwed when i checked it today just before the system went
live that i was forced to do a complete reinstall

i installed slackware 3.4
i built a (non-modular) 2.0.35 for it
upgraded X to 3.3.2
installed kde
installed samba

and then ran the script to make all the directories
because i was concerned to keep the os and this data apart i partioned the
disk (an ST34501W hooked up to a 2940W) to create a 1G root and a 3.5G /u
having run the script i then rebooted and ran "linux init=bin/bash" and ran
fsck on / and /u
/ was fine, but /u (where the 150k directories were just created) was corrupted
with things like:
Missing '.' in directory
Missing '..' in directory
Entry 'scout' in /storage/storage/1994/K/KEA01 has deleted/unused inode
'..'in /storage/storage/1994/KAV01/take5 is <The NULL inode> (0), should be
/storage/storage/1994/KAV01
Inode 2 ref count is 7, should be 8.

this is a brand new machine with (now) a clean install
this will be data server for about 12 accountants
i do not want to have to explain how i've lost all their data

any help would be appreciated, even if it is to tell be to scrap the 2940
(although i'd rather not)

--
simon

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/