Tool

gemeer's picture
tool
Reads:

4290

Score:
4
4
1
 
Comments:

0

Purge files on OES2 (cluster) server

Author Info

3 November 2011 - 9:42am
Submitted by: gemeer

(View Disclaimer)

license: 
None

This is a simple script that checks the mounted NSS volumes and purges all deleted files.

There is no need to change the script when a new volume is created or and old one is deleted.

Even in a clustered environment when a cluster-server has not always the same volumes mounted.

#!/bin/bash
Dirlist=$(dir /media/nss)
for direc in $Dirlist ; do
ncpcon purge volume $direc
done
AttachmentSize
purge.zip207 bytes

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell