Files to delete

Oezcan Acar acar at unitedinter.net
Sat May 12 20:28:24 UTC 2007


Hi,

I deleted the files 6 hours ago, but they are not removed from the filesystem


ps afx shows:

21144 ?        S      5:07 /usr/bin/perl /usr/bin/mogilefsd -c /etc/mogilefs/mogilefsd.conf --daemon
21145 ?        S      3:22  \_ /usr/bin/mogilefsd [replicate]
21146 ?        S      0:00  \_ /usr/bin/mogilefsd [delete]
21147 ?        S      0:37  \_ /usr/bin/mogilefsd [queryworker]
21148 ?        S      0:39  \_ /usr/bin/mogilefsd [queryworker]
21149 ?        S      0:40  \_ /usr/bin/mogilefsd [queryworker]
21150 ?        S      0:43  \_ /usr/bin/mogilefsd [queryworker]
21151 ?        S      0:56  \_ /usr/bin/mogilefsd [queryworker]
21152 ?        S     14:24  \_ /usr/bin/mogilefsd [monitor]
21153 ?        S      0:54  \_ /usr/bin/mogilefsd [reaper]
21154 ?        SN     0:49  \_ /usr/bin/mogilefsd [fsck]


I am using the HEAD version and my mogilefsd.conf looks like:


db_dsn DBI:mysql:mogilefs:192.168.1.30
db_user bizimalem
db_pass bizimalem
conf_port 6001
listener_jobs 5


When will be the files removed from the underlying filesystem?

thanks.





-------- Original-Nachricht --------
Datum: Sat, 12 May 2007 16:34:35 +0000 (UTC)
Von: Brad Fitzpatrick <brad at danga.com>
An: Oezcan Acar <acar at unitedinter.net>
CC: mogilefs at lists.danga.com
Betreff: Re: Files to delete

> A delete operation just removes it from the namespace immediately.  The
> actual deletions from mogstoreds (which may be down at the time of your
> delete!), happen asynchronously, sometime in the future... usually within
> a 10-15 seconds, but more if there were problems.
> 
> See the file_to_delete table (immediately enqueued), or
> file_to_delete_later (where it goes if there are problems while deleting).
> 
> Make sure you're running [delete] jobs on your mogilefsds...
> 
>    $ ps afx | grep delete
> 
> You see a line like:
> 
>      \--- mogilefsd [delete]
> 
> If so, that's what will delete it later.
> 
> - Brad
> 
> 
> On Sat, 12 May 2007, Oezcan Acar wrote:
> 
> > Hi,
> >
> > I added with mogtool new files to mogilefs and deleted them again with
> mogadmin.
> >
> >
> > mogtool --trackers=192.168.1.2:6001 --domain=ref --class=class delete
> mykey
> >
> > After this op mogtool says "Deleted" but the files are not removed from
> devices! Is that a correct behaviour or are the files marked as to be
> deleted later? How is the file deletion policy ?
> >
> > thanks.
> >
> >
> >
> >
> >
> >
> > --
> > Mit freundlichen Grüßen
> >
> > ___________________________
> >
> > Özcan Acar, Dipl. Inf(FH)
> > Vorstand
> > Smart Web Business AG
> >
> > Im Niederfeld 8
> > 65462 Gustavsburg
> >
> > +49 171 57 33 66 5
> > acar at unitedinter.net
> >
> >

-- 
Mit freundlichen Grüßen

___________________________

Özcan Acar, Dipl. Inf(FH)
Vorstand
Smart Web Business AG

Im Niederfeld 8
65462 Gustavsburg

+49 171 57 33 66 5
acar at unitedinter.net



More information about the mogilefs mailing list