Re: [SLUG] file system full - debugfs

2001-04-18 Thread Jean-Yves Provost

Howard Lowndes wrote:
> 
> Any money that you are running Mandrake 7.1?  I had the same problem.  It
> also screws your /var/log/news directory.

I have nothing to offer but you've won the guess the distro quiz :-)

- I managed to fix it using the 1st tip I received.
JYP
> 
> A df -i will show that you are out of inodes.
> 
> Do
> find /var/log/mail -exec rm -f {} \;
> 
> It will take time but it will kill them off eventually.
> 
> --
> Howard.
> 
> LANNet Computing Associates 
>"...well, it worked before _you_ touched it!"
> 
> On Thu, 12 Apr 2001, Jean-Yves Provost wrote:
> 
> > Hi all,
> >
> > I have a problem where I can not create any files in my / partition
> > although df doesn't show any problem
> >
> > FilesystemSize  Used Avail Use% Mounted on
> > /dev/hda1 1.0G  732M  249M  75% /
> > /dev/hda6 860M  169M  647M  21% /home
> >
> > I've located the culprit, /var/log/mail on /dev/hda1
> >
> > ie: ls -l /var/log/mail does not respond
> >
> > if I try 'rm *.1' it returns
> > bash: /bin/rm: Argument list too long
> >
> > output from debugfs of /var/log/mail
> > -- snip
> > 52684 (52) mail.info.1.gz.2.gz.1.gz.2.gz.4.gz.2.gz.1.1
> > 65767 (52) mail.info.1.gz.2.gz.1.gz.4.gz.5.gz.2.gz.1
> > 65673 (52) mail.info.1.gz.2.gz.1.gz.2.gz.5.gz.3.gz.1.1
> > 65709 (68) mail.info.1.gz.2.gz.1
> > 31056 (52) mail.info.1.gz.2.gz.2.gz.2.gz.2.gz.4.gz.1.1
> > ..
> > -- snip
> > Looks like the logrotate cron is stuffed and I'll fix that ;-)
> > the list is huge and I can delete files individually in debugfs
> >
> > I'm unable to use wild cards *.1, rmdir is not yet implemented in
> > debugfs:
> >
> > any suggestion to remove the entire content of that directory?
> >
> > Thanks
> >
> > JYP
> >
> >


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] file system full - debugfs

2001-04-12 Thread Howard Lowndes

Any money that you are running Mandrake 7.1?  I had the same problem.  It
also screws your /var/log/news directory.

A df -i will show that you are out of inodes.

Do
find /var/log/mail -exec rm -f {} \;

It will take time but it will kill them off eventually.

-- 
Howard.

LANNet Computing Associates 
   "...well, it worked before _you_ touched it!"

On Thu, 12 Apr 2001, Jean-Yves Provost wrote:

> Hi all,
> 
> I have a problem where I can not create any files in my / partition
> although df doesn't show any problem
> 
> FilesystemSize  Used Avail Use% Mounted on
> /dev/hda1 1.0G  732M  249M  75% /
> /dev/hda6 860M  169M  647M  21% /home
> 
> I've located the culprit, /var/log/mail on /dev/hda1
> 
> ie: ls -l /var/log/mail does not respond
> 
> if I try 'rm *.1' it returns
> bash: /bin/rm: Argument list too long
> 
> output from debugfs of /var/log/mail
> -- snip
> 52684 (52) mail.info.1.gz.2.gz.1.gz.2.gz.4.gz.2.gz.1.1   
> 65767 (52) mail.info.1.gz.2.gz.1.gz.4.gz.5.gz.2.gz.1   
> 65673 (52) mail.info.1.gz.2.gz.1.gz.2.gz.5.gz.3.gz.1.1   
> 65709 (68) mail.info.1.gz.2.gz.1
> 31056 (52) mail.info.1.gz.2.gz.2.gz.2.gz.2.gz.4.gz.1.1   
> ..
> -- snip
> Looks like the logrotate cron is stuffed and I'll fix that ;-)
> the list is huge and I can delete files individually in debugfs
> 
> I'm unable to use wild cards *.1, rmdir is not yet implemented in
> debugfs:  
> 
> any suggestion to remove the entire content of that directory?
> 
> Thanks
> 
> JYP
> 
> 


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] file system full - debugfs

2001-04-11 Thread Matthew Dalton

Jean-Yves Provost wrote:

> any suggestion to remove the entire content of that directory?

try 'find . -name "*.1" | xargs rm'

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] file system full - debugfs

2001-04-11 Thread Gareth Walters


- Original Message -
From: "Jean-Yves Provost" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001 1:17 PM
Subject: [SLUG] file system full - debugfs


> if I try 'rm *.1' it returns
> bash: /bin/rm: Argument list too long
>
> output from debugfs of /var/log/mail
> -- snip
> I'm unable to use wild cards *.1, rmdir is not yet implemented
in

> any suggestion to remove the entire content of that directory?

I believe you can do either of the following;

Upgrade to a newer debugfs which has the rmdir function
implemented
remove the directory.
or
Using debugfs, cd into  /var/log/mail and remove each file,
I believe this will work even though the normal rm command fails
and if it doesn't like the name I think you can use the inode to
delete the file.

Make sure you run fsck on the drives after this.

Good luck

---Gareth Walters




-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] file system full - debugfs

2001-04-11 Thread Tony Green

* This one time, at band camp, Jean-Yves Provost said:
> if I try 'rm *.1' it returns
> bash: /bin/rm: Argument list too long
> 
try this


for I in *
do
rm $I
done

change the * to match your requirements (*gz etc)

Greeno
-- 
Greeno <[EMAIL PROTECTED]>

You mentioned your name as if I should recognize it, but beyond the
obvious facts that you are a bachelor, a solicitor, a freemason, and
an asthmatic, I know nothing whatever about you.
-- Sherlock Holmes, "The Norwood Builder"


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



[SLUG] file system full - debugfs

2001-04-11 Thread Jean-Yves Provost

Hi all,

I have a problem where I can not create any files in my / partition
although df doesn't show any problem

FilesystemSize  Used Avail Use% Mounted on
/dev/hda1 1.0G  732M  249M  75% /
/dev/hda6 860M  169M  647M  21% /home

I've located the culprit, /var/log/mail on /dev/hda1

ie: ls -l /var/log/mail does not respond

if I try 'rm *.1' it returns
bash: /bin/rm: Argument list too long

output from debugfs of /var/log/mail
-- snip
52684 (52) mail.info.1.gz.2.gz.1.gz.2.gz.4.gz.2.gz.1.1   
65767 (52) mail.info.1.gz.2.gz.1.gz.4.gz.5.gz.2.gz.1   
65673 (52) mail.info.1.gz.2.gz.1.gz.2.gz.5.gz.3.gz.1.1   
65709 (68) mail.info.1.gz.2.gz.1
31056 (52) mail.info.1.gz.2.gz.2.gz.2.gz.2.gz.4.gz.1.1   
..
-- snip
Looks like the logrotate cron is stuffed and I'll fix that ;-)
the list is huge and I can delete files individually in debugfs

I'm unable to use wild cards *.1, rmdir is not yet implemented in
debugfs:  

any suggestion to remove the entire content of that directory?

Thanks

JYP

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug