Hi all
I have a requirement to look through a filesystem, identify any files
that haven't been accessed for 365 days then output this to a file.
Simple right: # find . -atime +365 > file.foo
However, I can't seem to create a file greater than ~32mb (on this
attempt I get a file of 33249280 bytes). It's a very large filesystem.
Trussing find's PID, I can see that find is still active, and statting
files.
If I pipe the find output to tee, ( # find . -atime +365 |tee file.foo
for example ), I get the same issue.
Does anyone have any idea - I'm thinking this might be a limitation with
find, or my environment maybe. Solaris 9 118558-11 and GNU bash, version
2.05.0(1)-release (sparc-sun-solaris2.9).
Or, should I forget find, and "find" another way to do this using grep,
ls etc?
cheers
Sam
|
|
0
|
|
|
|
Reply
|
Sam
|
5/15/2006 5:34:14 PM |
|
Sam Nelson <sun@unix.ms.nospam> wrote:
> I have a requirement to look through a filesystem, identify any files
> that haven't been accessed for 365 days then output this to a file.
> Simple right: # find . -atime +365 > file.foo
> However, I can't seem to create a file greater than ~32mb (on this
> attempt I get a file of 33249280 bytes). It's a very large filesystem.
You're saying the 'file.foo' seems to max out at that size?
The size you show is still some 300K short of 32 * 2^20, and 32M isn't a
limit of any part of the filesystem that I'm aware of.
> Trussing find's PID, I can see that find is still active, and statting
> files.
Yes, but is it write()'ing output? Thats the only thing that will make
the file increase in size. What's the return code on the write()? If
there were a limitation in the filesize, it should have an error code.
Is your filesystem full (doesn't sound like it)?
> If I pipe the find output to tee, ( # find . -atime +365 |tee file.foo
> for example ), I get the same issue.
Are you sure the output is incorrect?
> Does anyone have any idea - I'm thinking this might be a limitation with
> find, or my environment maybe. Solaris 9 118558-11 and GNU bash, version
> 2.05.0(1)-release (sparc-sun-solaris2.9).
> Or, should I forget find, and "find" another way to do this using grep,
> ls etc?
Nothing you've mentioned so far would suggest that 'find' wasn't a
reasonable solution.
--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
|
|
0
|
|
|
|
Reply
|
Darren
|
5/15/2006 10:30:14 PM
|
|
Darren Dunham wrote:
> Sam Nelson <sun@unix.ms.nospam> wrote:
>> I have a requirement to look through a filesystem, identify any files
>> that haven't been accessed for 365 days then output this to a file.
>
>> Simple right: # find . -atime +365 > file.foo
>
>> However, I can't seem to create a file greater than ~32mb (on this
>> attempt I get a file of 33249280 bytes). It's a very large filesystem.
>
> You're saying the 'file.foo' seems to max out at that size?
>
> The size you show is still some 300K short of 32 * 2^20, and 32M isn't a
> limit of any part of the filesystem that I'm aware of.
>
>> Trussing find's PID, I can see that find is still active, and statting
>> files.
>
> Yes, but is it write()'ing output? Thats the only thing that will make
> the file increase in size. What's the return code on the write()? If
> there were a limitation in the filesize, it should have an error code.
>
> Is your filesystem full (doesn't sound like it)?
>
>> If I pipe the find output to tee, ( # find . -atime +365 |tee file.foo
>> for example ), I get the same issue.
>
> Are you sure the output is incorrect?
>
>> Does anyone have any idea - I'm thinking this might be a limitation with
>> find, or my environment maybe. Solaris 9 118558-11 and GNU bash, version
>> 2.05.0(1)-release (sparc-sun-solaris2.9).
>
>> Or, should I forget find, and "find" another way to do this using grep,
>> ls etc?
>
> Nothing you've mentioned so far would suggest that 'find' wasn't a
> reasonable solution.
>
Hi Darren - thanks for the answers: I now have the solution.
The filesystem resides on a netapp cluster, and a snapshot of all data
was mounted under ".snapshot".
Of course, find was going through the .snapshot, and was taking 4 hours
to complete.
D'oh!
|
|
0
|
|
|
|
Reply
|
Sam
|
5/16/2006 7:10:50 AM
|
|
|
2 Replies
147 Views
(page loaded in 0.046 seconds)
Similiar Articles: processing output of external command - comp.lang.awkI need to query a LDAP server, then process the putput with out using temp files. ... command directly from awk ... Hi All, When using the AT command I find all output goes ... Need to Query a Pervasive 9.X DB - comp.databases.btrieve ...I need to query a pervasive 9.X DB and have the output to a txt or CSV file. I tried using the internal pvddl tool but it seems to just create/upd... I want to display output from 10 SQL queries in JSP page - what is ...I want to query SQL database tables to gather data on lab system and ... Oracle: Garbled output from sample query page - database.itags.org... output from sample query ... Query - Sorting alphabetically starting by certain letter number ...... example, a user searches for the letter 'c', the query ... where the c appears? Could you give a sample output? ... anchor', 'watch', 'cat' If someone used the search term ... Query - password expiry alert - comp.unix.solaris... for the expiration date and print out that alert you want to the standard output. ... Query To Find Out Password Expiration?: password, oracle, find ..... password using a ... Enform query - Count, sort with partial string - comp.sys.tandem ...You might think it would be easier to use an OUTPUT statement to get DDL source for ... Enform query - Count, sort with partial string - comp.sys.tandem ... Could anyone ... Output to the database - comp.soft-sys.sasI need to query a pervasive 9.X DB and have the output to a txt or CSV file. I tried using the internal pvddl tool but it seems to just create/upd... Capturing the output from a system command into a single string ...I want to catch the output from a system command into a variable. For example, if I ... This is not answering your general question, but for the specific > > query ... Table Partition Count - comp.databases.oracle.serverWhat do you want your output to look like ? How generic do you want the query to be ? ... because if you want to change the table you have to find ... pass through query from access to oracle - date format - comp ...Hello I have a pass through query from access to oracle, where is such condition ... 59) > =A0 =A0 =A0 SS Second (0-59) > > You have just learned how to output a DATE ... Output an SQL Query to a text file - Microsoft SQL ServerOutput an SQL Query to a text file. Microsoft SQL Server Forums on Bytes. Visual Basic :: Query Output - BigResource: Webmaster Scripts ...Query Output Ok here is the newbie question I need to make an application at work that enables employes to browse our database without them having to enter query ... 7/13/2012 4:06:03 PM
|