Re: [U2] Freeing up AIX disk space

2006-01-18 Thread karlp
I feel your pain...


  I manage two email servers, one for business and one for a majordomo
list manager that passes several hundred emails every few seconds. It's
run on a Pentium MMX system running at a whopping 830Mgz. There are a
measley 3500 email subscribers on it. Amazing how fast it runs, but
then, it's running Redhat v8.0, Dovecot, Sendmail, Spamassassin, Clamav,
Squirrelmail, and yes, uniVerse PE...
  I just installed a new computer for my daughter so she can finish
writing her new book: Kubuntu (ubuntu.com) Very fast; very nice. Sorry
Mr. Gates




> Sorry, I work at a place where we just swapped out a nice GroupWise
> email system for the behemoth exchange.  Now we reboot for just about
> any reason.  Fixes all sorts of things...
>
> Glad to see that others with some AIX experience were able to show you
> the right way to fix the problem.
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
>


-- 
karl

 _/  _/  _/  _/_/_/      __o
_/ _/   _/  _/_/   _-\<._
   _/_/_/  _/_/_/ (_)/ (_)
  _/ _/   _/  _/   ..
 _/   _/ arl _/_/_/  _/ earson[EMAIL PROTECTED]

--
IT Director, ATS Industrial Supply, Inc.
http://www.atsindustrial.com
Toll-free: 800-789-9300 x29
Direct2Desk: 801-978-4429
Facsimile: 801-972-3888
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Freeing up AIX disk space

2006-01-18 Thread Don Kibbey
Sorry, I work at a place where we just swapped out a nice GroupWise
email system for the behemoth exchange.  Now we reboot for just about
any reason.  Fixes all sorts of things...

Glad to see that others with some AIX experience were able to show you
the right way to fix the problem.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Freeing up AIX disk space

2006-01-17 Thread Sirulnick, Steve
Don,

You're scaring me. :)

Steve

-Original Message-
From: Don Kibbey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 17, 2006 8:16 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Freeing up AIX disk space

You'll have to use the windoze standby, reboot.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Freeing up AIX disk space

2006-01-17 Thread Sirulnick, Steve
This is some good information for me. Thank you for your reply.  I, however,
did a "sync" on the device and everything fell in line.  I was using rm to
delete files, but no one was in them.

One thing that I did notice that may be odd is when I run a df -k I see

/dev/lv0253379072  11705044   79%   102001 7%  

Where "102001" is the Iused and 7% is the %iused.  If I've been deleting
files, should that number (and possibly percentage) also increase?

Steve

-Original Message-
From: Chuck Mongiovi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 17, 2006 11:44 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Freeing up AIX disk space

I wrote this last night, but for some reason it didn't get sent ...
-Chuck
---

> I keep deleting files from AIX, but when I run a df -k, the amount of
> free space seems to be decreasing as opposed to increasing.

Does your free space always decrease that quickly?

It sounds like you're deleting the files (with "rm"?) and the reason that
you're not getting the space back is that the files are in use by another
process .. Try the "df -d" command to see if there's deleted files pending
.. If you log them off, you'll get the space back .. So if the "person"
that's got the files opened is a phantom or daemon, you'd have to stop that
process as well ..

Before you do deletes, you should run the "fuser -f filename" (or "fuser -c
/filesystem") command to see if someone's using the file .. 

If files AREN'T in use, you should get the space back immediately .. If
they're not in use, you'd be safe to resize them on the fly (if the resize
is quick) ..

If you're on UDT, i've got a script that I use that uses fuser and then
figures out what UDT users are involved using "listuser" ..

HTH / chuck
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Freeing up AIX disk space

2006-01-17 Thread Baakkonen, Rodney A (Rod) 46K
We have had a similar circumstance and not gotten the space back until we
kicked all the users off.


I am on Solaris, not AIX.

I have a little UNIX script that I try and run before doing an 'rm' on a
file:


#!/bin/ksh
#getting names on fuser command
filename=$1
if [ "$filename" = "" ];then
echo Usage $0  file name to check for in use
exit 1;
fi

if  [ ! -f  $filename ];then
echo $0: Unable to Open $filename
exit 1;
fi
for x in  `fuser -u $filename  2>&1 | tr ")o(" "\n" | cut -d\( -f2`
do
 grep $x /etc/passwd|cut -d: -f5| sort -u
done

To use it, I do:

file.in.use /mccbase3/udthome3/MCC.MP/VOC
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Freeing up AIX disk space

2006-01-17 Thread Don Kibbey
You'll have to use the windoze standby, reboot.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Freeing up AIX disk space

2006-01-17 Thread Chuck Mongiovi
I wrote this last night, but for some reason it didn't get sent ...
-Chuck
---

> I keep deleting files from AIX, but when I run a df -k, the amount of
> free space seems to be decreasing as opposed to increasing.

Does your free space always decrease that quickly?

It sounds like you're deleting the files (with "rm"?) and the reason that 
you're not getting the space back is that the files are in use by another 
process .. Try the "df -d" command to see if there's deleted files pending .. 
If you log them off, you'll get the space back .. So if the "person" that's got 
the files opened is a phantom or daemon, you'd have to stop that process as 
well ..

Before you do deletes, you should run the "fuser -f filename" (or "fuser -c 
/filesystem") command to see if someone's using the file .. 

If files AREN'T in use, you should get the space back immediately .. If they're 
not in use, you'd be safe to resize them on the fly (if the resize is quick) ..

If you're on UDT, i've got a script that I use that uses fuser and then figures 
out what UDT users are involved using "listuser" ..

HTH / chuck
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Freeing up AIX disk space

2006-01-17 Thread karlp

> I keep deleting files from AIX, but when I run a df -k, the amount of free
> space seems to be decreasing as opposed to increasing.  Is there anything
> I can do to free up more disk space?  This is a production server, so I
> can't really take it off line until a scheduled downtime.

Hi Steve,

It's been my experience that when AIX systems are setup, there are quite a
few free PPs (physical partitions) that are left unused. You may be able
to enlarge the filesystem in question via smitty (smit in CDE/X). If you
need help beyond this initial pointer, you may wish to call your IBM
support folks. This is fairly simple and can be done without having to
backup (though recommended). It should be done with nobody on the system,
however.

if you're a command-line type of guy like I am, you can use:
chfs -a size="" /filesystem

where  = new larger size in 512-byte blocks. You can see what size
your filesystems are now by typing:

lsfs

at a # prompt.

HTH

Karl

>
>
>
> Steve
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
>


-- 
karl

 _/  _/  _/  _/_/_/      __o
_/ _/   _/  _/_/   _-\<._
   _/_/_/  _/_/_/ (_)/ (_)
  _/ _/   _/  _/   ..
 _/   _/ arl _/_/_/  _/ earson[EMAIL PROTECTED]

--
IT Director, ATS Industrial Supply, Inc.
http://www.atsindustrial.com
Toll-free: 800-789-9300 x29
Direct2Desk: 801-978-4429
Facsimile: 801-972-3888
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Freeing up AIX disk space

2006-01-17 Thread Chuck Mongiovi
> I keep deleting files from AIX, but when I run a df -k, the amount of
> free space seems to be decreasing as opposed to increasing.

Does your free space always decrease that quickly?

It sounds like you're deleting the files (with "rm"?) and the reason that 
you're not getting the space back is that the files are in use by another 
process .. Try the "df -d" command to see if there's deleted files pending .. 
If you log them off, you'll get the space back .. So if the "person" that's got 
the files opened is a phantom or daemon, you'd have to stop that process as 
well ..

Before you do deletes, you should run the "fuser -f filename" (or "fuser -c 
/filesystem") command to see if someone's using the file .. 

If files AREN'T in use, you should get the space back immediately .. If they're 
not in use, you'd be safe to resize them on the fly (if the resize is quick) ..

If you're on UDT, i've got a script that I use that uses fuser and then figures 
out what UDT users are involved using "listuser" ..

HTH / chuck
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Freeing up AIX disk space

2006-01-17 Thread Bausili, Don
The AIX command 

fuser -u /

will identify the user session(s) that are using .

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Timothy Snyder
Sent: Monday, January 16, 2006 8:39 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Freeing up AIX disk space


Sirulnick, Steve wrote on 01/16/2006 07:33:45 PM:

> I keep deleting files from AIX, but when I run a df -k, the amount of 
free
> space seems to be decreasing as opposed to increasing.  Is there 
anything I
> can do to free up more disk space?

If somebody has a file open when you delete it, the directory entry will 
be removed but the space will not be reclaimed until after the file is 
closed.  The process(es) will continue to read and even update the 
original contents in the original location.  That is consistent with what 
you're seeing.  Unfortunately, you'll have to wait until everybody who 
opened the now-deleted file has closed it.  If the system isn't too busy, 
you may be able to track something down with filemon, but that's a real 
shot in the dark, since the only reference available will be by device and 
i-node, and you probably don't know what those were and there's no way to 
find out anymore.

Tim Snyder
Consulting I/T Specialist , U2 Professional Services
North American Lab Services
DB2 Information Management, IBM Software Group
717-545-6403
[EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Freeing up AIX disk space

2006-01-16 Thread Timothy Snyder
Sirulnick, Steve wrote on 01/16/2006 07:33:45 PM:

> I keep deleting files from AIX, but when I run a df -k, the amount of 
free
> space seems to be decreasing as opposed to increasing.  Is there 
anything I
> can do to free up more disk space?

If somebody has a file open when you delete it, the directory entry will 
be removed but the space will not be reclaimed until after the file is 
closed.  The process(es) will continue to read and even update the 
original contents in the original location.  That is consistent with what 
you're seeing.  Unfortunately, you'll have to wait until everybody who 
opened the now-deleted file has closed it.  If the system isn't too busy, 
you may be able to track something down with filemon, but that's a real 
shot in the dark, since the only reference available will be by device and 
i-node, and you probably don't know what those were and there's no way to 
find out anymore.

Tim Snyder
Consulting I/T Specialist , U2 Professional Services
North American Lab Services
DB2 Information Management, IBM Software Group
717-545-6403
[EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/