I will try to provide as many details as possible but this one has me scratching my head...
A few months ago I was asked to set up a test syslog server for internal use only. I chose to go the following route for simplicity:
1. I used Gentoo Linux so that I could have the most stripped down and highest performing box possible for the task
2. I also decided to use the Xen virtualization system so that I could easily migrate this server from this box to any other Xen box with minimal or no downtime
3. I chose syslog-ng as the syslog server since it was part of Gentoo's portage archives
4. I used the ReiserFS for all filesystems including the dedicated syslog filesystem
Xen details:
1. After installing the base Gentoo distro, I installed Xen from source and compiled a new kernel with support for everything I needed including the ReiserFS
2. I took the primary disk device and used LVM (again for simplicity's sake sinc e it's much more flexible than partitions) to slice it up for Domain0 (the "host" OS for lack of a better term) and the other domains, one of which was my syslog server
3. I then built my syslog VM (Domain1) based off the stripped down base OS for Domain0 on an LVM and unmounted it in Domain0
4. The new vg was then mounted as ReiserFS within Domain1 and I booted
5. I then emerged syslog-ng and got it configured to work as needed
Everything seemed fine. I was able to capture syslog... no problem. For one day's worth of Pix data I had a 48 Gigabyte syslog file. This is where the problem comes in. It appears the ReiserFS has no problem handling the file size. But if I attempt to transfer it off to any other system using FTP I get an error. I thought it might have something to do with the target system's file system. But one of the boxes I was testing with was an HP-UX box with vxfs and the largefiles option enabled. It SHOULD be able to handle a 48 gigabyte file. So to test further I decided to create a file that was slightly less than 4 gigs and see if it would transfer. Still didn't work. IN fact the only way a file will transfer is if I'm below 2 gigs. This is where I'm a bit confused. If the filesystem that currently contains the file can handle super large files, then why won't it transfer those files using FTP? See below:
FTP gives me the following:
I've tried pushing the files from the syslog server (ftp client) to the target hosts (ftp server). And I've tried pulling from the syslog server (ftp server) to the target hosts (ftp client). The target hosts have all been either Unix (Linux, Solaris, HP-UX) or VMS boxes. The VMS box is the final target actually and the other Unix boxes were just used to try and troubleshoot this problem. The VMS box is using a version of the RMS filesystem that can also support files larger than 2 gigs. I was only able to successfully copy the large file to another Linux box using scp. Multinet's SCP on the OpenVMS box fails with the following error:
Finally I also tried running a Samba server on the syslog server and using DEC's SMB client to copy the file but it failed after copying 2 gigs. Note; the underlying file system (RMS) does not have a 2 gig file limitation. I suspect that the SMB implementation from DEC is the limitation here.
Anyone have any ideas?
Last edited by deckard; 07-18-2006 at 01:58 PM..
Reason: Forgot to use code tags on the VMS section
A lot of programs use 32 bit file pointers, limiting the offset to 2+GB. Is there a reason why the logfile has to be whole during the transfer? You could certainly
try on the Gentoo end:
It's been so long since played VMS sysmgr I've forgotten the DCL to reconstruct file file. If you can execute a UNIX shell -
Is there a reason why the logfile has to be whole during the transfer? You could certainly
try on the Gentoo end:
Well that's the solution I came up with but my supervisor really wants the file whole. However, in my experimenting I'm starting to wonder if it's a limitation of the ftp client and/or server I'm working with. The VMS guys here routinely do transfers of large files with no problem between the VMS boxes, so I'm getting laughed at. :\ My next experiment is to try and move from ReiserFS to something else since I've found some hits with Google that point to problems with ReiserFS and FTP at times. I'm going to try ext3 next...
I tried with ext3 instead of ReiserFS and still had the same problem. So I switched FTP servers on the syslog server. I went from "Net FTPD" to "PureFTPD". When I did that, I was able to PULL the file to the VMS box (ftp client) from the syslog server (ftp server) with no problem. And now, when I try to push the file from the syslog server (ftp client) to the VMS box (ftp server), I get a different error:
I did some Googling on that and tried changing the ulimit settings on the syslog server from "unlimited" to 4 gigs just to see if it made a difference. Unfortunately, it didn't change things. I'm now going to try the 'ncftp' client to see if that gives me anything different.
I wound up installing 'ncftp' as the ftp client on my syslog server and used ncftpput to transfer the file to the VMS box. That worked. It would appear that the ftp client that Gentoo installs by default has some kind of limitation. It's "Net FTP" which I supposed would make some sense as the FTPD was from the same project.
Quote:
Originally Posted by deckard
I tried with ext3 instead of ReiserFS and still had the same problem. So I switched FTP servers on the syslog server. I went from "Net FTPD" to "PureFTPD". When I did that, I was able to PULL the file to the VMS box (ftp client) from the syslog server (ftp server) with no problem. And now, when I try to push the file from the syslog server (ftp client) to the VMS box (ftp server), I get a different error:
I did some Googling on that and tried changing the ulimit settings on the syslog server from "unlimited" to 4 gigs just to see if it made a difference. Unfortunately, it didn't change things. I'm now going to try the 'ncftp' client to see if that gives me anything different.
Did you try to cp this file somewhere by any chance and run into the same problem? I have a similar problem here with one disk but the file can't even be cp'd. I also get "File too large".
hello all,
i am having problem in accessing a directory.I dont think its a permission issue.can anyone help me out. I am using korn sell
code:
$ ls -ltr sc*
lrwxrwxrwx 1 essbase essbase 21 Oct 8 2010 sc_ssp -> /work/nfs/nas2/sc_ssp
$ cd sc_ssp
ksh: sc_ssp: not found
$ (6 Replies)
Hi All,
I am encountering an unexpected problem while running my process, using daemon placed in /etc/init.d/.
I have a process that is opening shared library using dlopen.
When I run my process on the command line, it is able to open the library. But when I used daemon to run my process, I... (0 Replies)
Hi All,
I am facing a strange problem with my shell script when I run the script from CRON.
script----
#!/bin/ksh
date_var=`date "+%Y%m%d%H%M%S"`
memory_file_name=Mem-"$date_var".csv
total_memory_mb=`prtconf -v | grep Memory |tr -s " " "," | cut -f3 -d ','`
total_memory_kb=`expr... (7 Replies)
Hi,
in my environment we have several server with rlogin passwordless login enabled, now there is a problem to setup this with a hpux server. i have check the .rhosts file and kerberos key are all setup properly and permission is correct, even other user id on the server can login without... (3 Replies)
Well, my script started off to do what i wanted. Now, i think its not recognizing the pattern so its not moving anything.
What i have to do is execute my script command for the move to take effect. So i did that and yayy it worked.
Strange thing is that my DESTDIR was empty to begin with.... (2 Replies)
I am using SunOS 5.9 and I don't know why all my commands are getting executed as if an extra 'enter' has been pressed.
What could be the reason and how to correct it?
Please help.
Asty (2 Replies)
I have installed Fedora Core on a Toshiba Satellite Pro4600 laptop recently I have experienced a rather mysterious problem if I touch anything specially the keyboard or mouse I see this stuff “67yujhnmyyy” straight away some time it won't stop for while like this... (5 Replies)
Hi..
Some of my application were not running properly due to lack of virtual memory.....so wht i did add one free harddisk as swap file system...and increased the swap memory..
But since than my root file system is showing 100% full thr is no space left...is thr any link between these two..... (1 Reply)
I did an installation of Redhat 7.1 and it seem to install smoothly. I go and reboot and I get the following message:
"INIT: Id "x" respawing too fast: disabled for 5 minutes"
The screen flashes 4 times every 10 seconds or so.
I can't seem to figure why this does this. It might be a simple... (2 Replies)
I¡¯m a network operator, mine is an IBM PC server 320, operating system SCO unix 3.2v4.2, triton 3.1 of Baan. Recently, my server went dead every a few hours, no sign & signal shows malfunction suddenly. It looks like a sudden power failure, but the indicator of main power supply is on. Normal... (1 Reply)