I actually ended up just TARing the whole directory....which took somewhere around 20 minutes to do (and spiked the load average out to around 2.5). Yes, I know, I took the easy way out....I can hear the booing from the crowd. I figured that it made it not only easier to tar, but also easier to restore if need be. After removing all the files, it's now works like a charm, CPU, memory, and disk usage are back where they were when I first installed the system.
I would have to agree though, it would be fun to play with it and see how it works, though I would rather not on my firewall :) Thanks for you help with this! Mike Knisely wrote: > > In the spirit of finding an answer... I went to one of the oldest > crustiest Linux guy I know. Here's this thought: > > Here's what I'd try: > > find $DIRS -name "*.rrd" | xargs tar cvzf rrd_files.tar.gz && find $DIRS > -name "*.rrd" | xargs rm > > So, we're creating the list and feeding it into xargs. Xargs will then > feed tar to create our tarball. Should that complete w/out error we'll > run find again and pipe that to xargs to remove the files. > > Now, another thought that he and I had was that since tar is in > "verbose" mode, it will print each file as it creates the tarball. > Given that, you might be able to just pipe that to xargs and have it > call rm on those. It'd be fun to play with and see how it worked. > > Michael J. Knisely > > > -----Original Message----- > From: danodemano [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2008 2:50 PM > To: efw-user@lists.sourceforge.net > Subject: Re: [Efw-user] rrdfix.sh VERY high CPU and memory usage EFW > 2.2RC3 > > > LOL, well it would have worked great....except for this: > -bash: /bin/tar: Argument list too long > Any way around this?? > > compdoc, ntop is the owner on all files and folders. > > > Mike Knisely wrote: >> >> How's this look? >> >> We'll create a backup to our current directory so if things blow up we >> can put them back: >> tar zcvf rrd_files.tar.gz `find $DIRS -name "*.rrd"` >> >> One we've got that we'll remove them: >> find $DIRS -name "*.rrd" | xargs rm >> >> Michael J. Knisely >> >> -----Original Message----- >> From: danodemano [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, December 03, 2008 1:49 PM >> To: efw-user@lists.sourceforge.net >> Subject: Re: [Efw-user] rrdfix.sh VERY high CPU and memory usage EFW >> 2.2RC3 >> >> >> The permissions are as such: >> [EMAIL PROTECTED]:/var/ntop/rrd/flows # ls -al >> total 8 >> drwx------ 2 ntop ntop 4096 Dec 3 12:17 . >> drwxr-xr-x 5 ntop ntop 4096 Nov 15 14:10 .. >> >> I'm not really sure how to resolve it honestly....I'm sure that there >> would >> be an easy way to fix it all and wipe all those files but I don't know >> what >> that would be. Advice here would be appreciated. >> >> compdoc wrote: >>> >>> You didn't list the owner or permissions of the directories >>> in /var/ntop/rrd/flows/ >>> >>> It's possible that if you changed them correctly, it would >>> all work. >>> >>> However, it's also possible that rrdfix.sh just wasn't >>> written to deal with all the files from enabling the plugins >>> that you did. >>> >>> If you can't resolve it, and if no one else can offer a >>> better suggestion, I would back up the efw, reinstall from >>> cd, and then restore. And if the same thing happens, install >>> from cd and then setup the efw by hand from the gui... >>> >>> >>> >>> >>> >>> >>> >> > ------------------------------------------------------------------------ >> - >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win > great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Efw-user mailing list >>> Efw-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/efw-user >>> >>> >> >> -- >> View this message in context: >> > http://www.nabble.com/rrdfix.sh-VERY-high-CPU-and-memory-usage-EFW-2.2RC >> 3-tp20813429p20819149.html >> Sent from the efw-user mailing list archive at Nabble.com. >> >> >> > ------------------------------------------------------------------------ >> - >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Efw-user mailing list >> Efw-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/efw-user >> >> > ------------------------------------------------------------------------ > - >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Efw-user mailing list >> Efw-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/efw-user >> >> > > -- > View this message in context: > http://www.nabble.com/rrdfix.sh-VERY-high-CPU-and-memory-usage-EFW-2.2RC > 3-tp20813429p20820220.html > Sent from the efw-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Efw-user mailing list > Efw-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/efw-user > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Efw-user mailing list > Efw-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/efw-user > > -- View this message in context: http://www.nabble.com/rrdfix.sh-VERY-high-CPU-and-memory-usage-EFW-2.2RC3-tp20813429p20821795.html Sent from the efw-user mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Efw-user mailing list Efw-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/efw-user