View Single Post

   
  #8 (permalink)  
Old 01-05-2008, 08:20 AM
aixadmins@gmail.com
 
Posts: n/a
Default Re: Quick File Deletions?

scott_doyland@johnlewis.co.uk wrote:
> Dan Foster wrote:
> > In article <df4n68$8ee$1@news.ryerson.ca>, Larry Anta <lanta@ryerson.ca> wrote:
> > > Is there a way to quickly delete all files in a filesystem? A recursive rm
> > > is much too slow on a filesystem that contains hundreds of thousands of
> > > files. Thanks.

> >
> > Sure. Sounds odd, but: unmount the filesystem, remake the filesystem, remount.
> >
> > Doesn't get any quicker than that.
> >
> > -Dan

>
> I didnt think this would work, so I tried unmounting and then
> recreating the FS thru smit. It didnt work and it said
>
> crfs: 0506-909 /scott file system already exists.
>
> Are there flags I need to the crfs to overwrite the exisitng FS.
>
> Scott



How about removing that entry in /etc/filesystem?

Jason Liang

Reply With Quote