--- Joe Gerkman <[EMAIL PROTECTED]> wrote: > On Fri, 2003-01-31 at 07:47, Chris de Vidal wrote: > > Update: > > From a RedHat 8 box with Samba 2.2.7a from a > Samba.org > > RPM, I could see 1000 directories on a Windows > 2000 > > Pro share. > > > > From a RedHat 7.3 box with Samba 2.2.7a from a > > Samba.org SRPM tweaked to include ACL support, I > could > > see 1000 directories on a Windows 2000 Pro share. > > > > I created them with a for loop from my smbmount, > not > > from within Windows, in case it matters. > > I figured it wasn't a directory/file number > limitation, but wasn't > entirely sure...I guess this confirms it...just as a > check, were there > any particularly large files/directories in there? > I know that we have > some directories that can get as big a 8 GB in > size...just not sure if > size plays into this at all either...
This is what I did from the RH 8 box: for ((i=1;i<=1000;i++)); do mkdir $i; done ls | wc -l 1000 At your question, I made a 2GB file in 10 directories (I couldn't create a 10GB file.. a Windows problem?): for ((i=1;i<=10;i++)); do dd if=/dev/zero of=$i/2GB bs=1M count=2000; done ls | wc -l 1000 I can't explain it. Perhaps some weird/corrupt binary or library? Try rpm -Va | grep '^..5' | grep -v ' c ' | less which will show every non-config file that has been modified since being installed from its original RPM. Look at libraries and binaries in particular. Reinstall a damaged RPM with rpm -Uvh --replacepkgs --force some_package.rpm paying special attention to any .rpmsave/orig/new files created, which might move an original conf file (so diff the *.rpmorig/save/new with the existing file). Also, ensure you are seeing the exact same files missing each time: ls > missing_at_12-24pm.txt <later, after umounting/remounting> ls > missing_at_2-56pm.txt diff missing_at_12-24pm.txt missing_at_2-56pm.txt Any differences might tell me to look at intermittent network connectivity... it's yet another shot in the dark. Sorry I could not offer more specific help; these are the troubleshooting steps I go through when looking at weird problems like these. > > Someone shared that the permissions were possibly > > incorrect, but that would only seem to apply to a > > Samba server, not smbmount. And you're not using > a > > umask, so the default umask is the one from the > > system, which is 0022, making permissions for > folders > > and files 755. > > > > The only thing I can offer now is possibly > ensuring > > that the username you access from the 6.2 box is > the > > same you use on the 7.x+ boxen. If the usernames > were > > different, perhaps permissions on Windows hide > those > > directories from view (but obviously not from cd). > > Yep...same id...same password. > > > Oh, and check the DOS permissions on those > > directories.. make sure they're not hidden. I > don't > > know if smbmount obeys that, but it's worth a > shot. > > I'll double-check that and let you know...but as > most of the directories > are created by a script (on the windows side), and > there haven't been > any changes to the script, they *should* all be the > same...but again, > I'll confirm that. > > > /dev/idal > > > Thanks again Chris... > > -Joe > > > --- Chris de Vidal <[EMAIL PROTECTED]> wrote: > > > To the list: We've been having some off-list > > > conversation and I wanted to clue you in here. > Our > > > thread might be useful for posterity's > (Google's?) > > > sake. > > > > > > /dev/idal > > > > > > --- Joe Gerkman <[EMAIL PROTECTED]> wrote: > > > > We're using the following command (from a > shell > > > > script): > > > > > > First (this isn't your fix but a nicety), it's > > > easier > > > when this is in /etc/fstab instead of with a > script. > > > > > > It can be done automatically at boot (RedHat > > > recognizes smbfs types and waits til network is > > > started) or manually with the noauto option. > Then, > > > you can just run > > > mount /blahblah/Data > > > > > > If you put your password in a credentials file > (see > > > below), you can protect your password. > > > > > > Again, not a fix for your issue but I thought > you'd > > > like to know that. > > > > > > > mount -f -t smbfs -o > > > > > > Second, I had to look up -f. man mount: > > > -f Causes everything to be done except for > the > > > actual system call; if it's not obvious, this > > > ``fakes'' mount-ing the file system. This > option > > > is useful in conjunction with the -v flag to > > > determine > > > what the mount command is trying to do. It can > also > > > be > > > used to add entries for devices that were > mounted > > > earlier with the -n option. > > > > > > I have little confidence this will fix your > problem, > > > but please try it without that flag anyway. > > > > > > It's just a shot in the dark... > > > > > > > > > > > > > username=xxxxxxx,password=xxxxxxx,uid=xxx,gid=xxxxxxxxx,fmask=770,dmask=770 > > > > //blahblah/Data /blahblah/Data > > > > > > Another nicety; use this option with mount or in > > > your > > > fstab: > > > credentials=/some/file/chown/root.root/chmod/600 > > > with > > > username = someuser > > > password = somepassword > > > inside that file. I like to put mine in > > > /etc/smb_passwd and I run chown 0.0/chmod 600 > > > against > > > it. > > > > > > This lets you avoid putting the password in the > > > (world-readable) fstab. Just a suggestion. > > > > > > > Same command we've been using for a while now > (>1 > > > > year)...but then > > > > again, maybe one of the options could have > been > > > > deprecated???? > > > > > > > > Also, we installed Samba via the RPMs from > > > > samba.org...but I've also > > > > tried building from source (both SRPMs and > plain > > > > source)...neither > > > > changed anything... > > > > > > > > Thanks again for your help Chris.... > > > > > > Don't thank me until I can confirm or deny it > from a > > > RH 7.3 and 8.0 box to an NT and 2000 Pro (no > > > Server/Advanced) share (: > > > > > > /dev/idal > > > > > > > > > > > > > On Thu, 2003-01-30 at 17:45, Chris de Vidal > wrote: > > > > > Whoa, really strange. Might be something > you're > > > > > doing, but I'll post my results to you and > the > > > > list > > > > > tomorrow and we can see if it's a consistent > > > > problem > > > > > with RedHat 7+ and 2000. > > > > > > > > > > You are using smbmount or mount smbfs in > fstab, > > > > > correct? > > > > > > > > > > Also, how did you install Samba? I got an > RPM > > > > from > > > > > Samba.org (well, an SRPM so I could tweak > the > > > > > ./configure line). > > > > > > > > > > /dev/idal > > > > > > > > > > --- Joe Gerkman <[EMAIL PROTECTED]> > wrote: > > > > > > Update... > > > > > > > > > > > > See 554 files on rh8.0/2.2.7a machine, 627 > on > > > > the > > > > > > rh6.2/2.0.6-9 machine > > > > > > (the latter being the true number). > > > > > > > > > > > > Tried copying over the same smb.conf file > > > (which > > > > I > > > > > > thought I'd done > > > > > > before)...no change/luck. Also tried the > same > > > > > > version of samba on a 7.3 > > > > > > as well as a 7.1 box (same smb.conf file > > > > too)...no > > > > > > luck there > > > > > > either...oh, all had 2.4.x kernel, well > except > > > > for > > > > > > the working machine > > > > > > (if that matters). > > > > > > > > > > > > On Thu, 2003-01-30 at 14:05, Chris de > Vidal > > > > wrote: > > > > > > > You're using smbmount, right? Sounds > like > > > > you're > > > > > > > seeing only 512 files.. do ls | wc -l. > 512 > > > is > > > > a > > > > > > nice > > > > > > > round binary number and is probably what > > > > you're > > > > > > > seeing. > > > > > > > > > > > > > > I don't have a direct answer, but I'm > under > > > > the > > > > > > > impression that there are many broken > things > > > > in > > > > > > RedHat > > > > > > > 8.0 (RedHat 7.0 also had many broken > > > things.. > > > > > > > cooincidence??). I wrote earlier this > week > > > > about > > > > > > a > > > > > > > RedHat 8-specific problem "cannot find > name > > > > for > > > > > > group > > > > > > > ID XXXXX". Others with RedHat 8 have > shared > > > > > > similar > > > > > > > stories, and I'm having no issues with > the > > > > same > > > > > > exact > > > > > > > version of Samba on a RedHat 7.3 box. > I've > > > > been > > > > > > using > > > > > > > RH8 on my main workstation since > > > introduction > > > > and > > > > > > I've > > > > > > > found other weirdness. > > > > > > > > > > > > > > I'm not near my RH8 box at the moment > but > > > when > > > > I > > > > > > get > > > > > > > back to work tomorrow I'll test an SMB > mount > > > > of a > > > > > > > Windows NT box. I could try a 2000 box > if > > > > > > necessary. > > > > > > > I'll do a wc -l and see what happens. I > do > > > > recall > > > > > > > having no problems with a Samba server > > > (2000+ > > > > > > > directories) and I can confirm that > > > tomorrow. > > > > > > > > > > > > > > First, try copying the smb.conf from the > 6.2 > > > > box. > > > > > > > Smbmount seems to read a few lines from > it, > > > > and > > > > > > there > > > > > > > is a chance you have differences. > > > > > > > > > > > > > > If you have a RedHat 7.3 box handy, > install > > > > the > > > > > > same > > > > > > > version of Samba (I agree it doesn't > sound > > > > > > > version-specific) and try it.. it'd > probably > > > > work > > > > > > > fine. I'll try to do the same. > > > > > > > > > > > > > > > > > > > > > /dev/idal > > > > > > > > > > > > > > --- Joe Gerkman > <[EMAIL PROTECTED]> > > > > wrote: > > > > > > > > Hi all, > > > > > > > > > > > > > > > > Hoping someone might be able to steer > me > > > in > > > > the > > > > > > > > right direction and/or > > > > > > > > help me solve my problem. > > > > > > > > > > > > > > > > We have a number of Linux servers > (RH6.2 > > > -> > > > > RH8) > > > > > > > > which connect to the > > > > > > > > same share on a Win2000 Server. We've > > > been > > > > > > working > > > > > > > > kinda hard to get > > > > > > > > everything upgraded to either RH7.3 or > > > RH8.0 > > > > > > since > > > > > > > > we rarely get the > > > > > > > > opportunity. 2 similar servers (one > dev, > > > > one > > > > > > prod) > > > > > > > > access this same > > > > > > > > window share, which has a large number > of > > > > > > > > directories (about 620-650), > > > > > > > > and the share itself is for a 180GB > > > volume. > > > > > > > > > > > > > > > > Just recently we discovered that our > dev > > > > server > > > > > > > > (RH6.2/2.2.14-5.0 with > > > > > > > > samba 2.0.6-9) can see all of the > > > > > > directories/files > > > > > > > > at the root of this > > > > > > > > share, but the prod server > > > > (RH8.0/2.4.18-19.8.0 > > > > > > with > > > > > > > > samba 2.2.x -> > > > > > > > > 2.2.7a-1) can not, it can however see > a > > > good > > > > > > portion > > > > > > > > of them (about > > > > > > > > 554). > > > > > > > > > > > > > > > > There doesn't seem to be anything in > > > common > > > > > > about > > > > > > > > these "missing" > > > > > > > > directories...have checked time, size, > > > > > > etc...nada in > > > > > > > > common that we can > > > > > > > > determine. We did try quite a few > crazy > > > > things, > > > > > > > > like deleting a few > > > > > > > > directories to see if we saw more, but > > > nope. > > > > > > > > > > And I > > > > > > > > should note that the > > > > > > > > directories are there, you just can't > see > > > > > > them...I > > > > > > > > can 'cd' into them > > > > > > > > with no problem. > > > > > > > > > > > > > > > > Oh, and I've tried going back to the > > > earlier > > > > > > version > > > > > > > > of samba (same as > > > > > > > > on the dev machine - 2.0.6-9), but no > > > luck. > > > > > > > > > > > > > > > > Any ideas? Anyone? Please... > > > > > > > > > > > > > > > > -J > > > > > > > > > > > > > > > > -- > > > > > > > > To unsubscribe from this list go to > the > > > > > > following > > > > > > > > URL and read the > > > > > > > > instructions: > > > > > > > > > > http://lists.samba.org/mailman/listinfo/samba > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > > > Do you Yahoo!? > > > > > > > Yahoo! Mail Plus - Powerful. Affordable. > > > Sign > > > > up > > > > > > now. > > > > > > > http://mailplus.yahoo.com > > > > > > -- > > > > > > Joe Gerkman > > > > > > UNIX/Linux Systems Engineer > > > > > > Gartner > > > > > > 308 SW First Avenue > > > > > > Portland, OR 97204 > > > > > > phone: 503-241-8036 x427 > > > > > > fax: 503-241-8716 > > > > > > pager: 800-217-4529 -or- > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > Do you Yahoo!? > > > > > Yahoo! Mail Plus - Powerful. Affordable. > Sign up > > > > now. > > > > > http://mailplus.yahoo.com > > > > -- > > > > Joe Gerkman > > > > UNIX/Linux Systems Engineer > > > > Gartner > > > > 308 SW First Avenue > > > > Portland, OR 97204 > > > > phone: 503-241-8036 x427 > > > > fax: 503-241-8716 > > > > pager: 800-217-4529 -or- > [EMAIL PROTECTED] > > > > > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > > > now. > > > http://mailplus.yahoo.com > > > -- > > > To unsubscribe from this list go to the > following > > > URL and read the > > > instructions: > > http://lists.samba.org/mailman/listinfo/samba > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > > http://mailplus.yahoo.com > -- > Joe Gerkman > UNIX/Linux Systems Engineer > Gartner > 308 SW First Avenue > Portland, OR 97204 > phone: 503-241-8036 x427 > fax: 503-241-8716 > pager: 800-217-4529 -or- [EMAIL PROTECTED] > -- > To unsubscribe from this list go to the following > URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
