vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, i'm newbie to AIX OS (5L) and i have a problem: # df -m Filesystem MB blocks Free %Used Iused %Iused Mounted on /dev/hd4 384.00 330.68 14% 2221 3% / /dev/hd2 1152.00 68.44 95% 25445 58% /usr /dev/hd9var 128.00 117.64 9% 429 2% /var /dev/hd3 512.00 0.00 100% 728 74% /tmp ^ ^ # pwd && du -sm /tmp 148.55 . ^ What can couse this diffrences, and how can i fix this? I don't want to remount /tmp because i don't know if some procces is not using it and mess up something by doing this. Thank in advance. -- raff |
| |||
| r4ff wrote: > Hello, i'm newbie to AIX OS (5L) and i have a problem: > > # df -m > Filesystem MB blocks Free %Used Iused %Iused Mounted on > /dev/hd4 384.00 330.68 14% 2221 3% / > /dev/hd2 1152.00 68.44 95% 25445 58% /usr > /dev/hd9var 128.00 117.64 9% 429 2% /var > /dev/hd3 512.00 0.00 100% 728 74% /tmp > ^ ^ > # pwd && du -sm > /tmp > 148.55 . > ^ > > What can couse this diffrences, and how can i fix this? > I don't want to remount /tmp because i don't know if some procces is not > using it and mess up something by doing this. > > Thank in advance. > > -- > raff basically: du is lists files and summarizes their output. If you delete a file that is kept open by a running program, it will still be there until the program exists or closes the file even if the directory entry is gone. Therefore df does not see the deleted files available space. |
| |||
| r4ff wrote: > Hello, i'm newbie to AIX OS (5L) and i have a problem: > > # df -m > Filesystem MB blocks Free %Used Iused %Iused Mounted on > /dev/hd4 384.00 330.68 14% 2221 3% / > /dev/hd2 1152.00 68.44 95% 25445 58% /usr > /dev/hd9var 128.00 117.64 9% 429 2% /var > /dev/hd3 512.00 0.00 100% 728 74% /tmp > ^ ^ > # pwd && du -sm > /tmp > 148.55 . > ^ > > What can couse this diffrences, and how can i fix this? To get some relieve: Extend the /tmp filesystem $ chfs -a size=+1 /tmp To solve the problem use the commands fuser or lsof to figure out with processes are using the /tmp filesystem. $ man fuser $ fuser /tmp If possible stop these application , free the space on /tmp and start the application again. And never ever just delete files in /tmp as long as you are not sure that these files are not in use hth Hajo |
| |||
| r4ff wrote: > Hello, i'm newbie to AIX OS (5L) and i have a problem: > > # df -m > Filesystem MB blocks Free %Used Iused %Iused Mounted on > /dev/hd4 384.00 330.68 14% 2221 3% / > /dev/hd2 1152.00 68.44 95% 25445 58% /usr > /dev/hd9var 128.00 117.64 9% 429 2% /var > /dev/hd3 512.00 0.00 100% 728 74% /tmp > ^ ^ > # pwd && du -sm > /tmp > 148.55 . > ^ > > What can couse this diffrences, and how can i fix this? You have a file in /tmp that is still in use and has been deleted. > I don't want to remount /tmp because i don't know if some procces is not > using it and mess up something by doing this. I don't think you could unmount it anyway. Get a copy of lsof -- it comes in handy for this sort of thing. > > Thank in advance. > > -- > raff |
| |||
| Hajo Ehlers wrote: > r4ff wrote: > > Hello, i'm newbie to AIX OS (5L) and i have a problem: > > > > # df -m > > Filesystem MB blocks Free %Used Iused %Iused Mounted on > > /dev/hd4 384.00 330.68 14% 2221 3% / > > /dev/hd2 1152.00 68.44 95% 25445 58% /usr > > /dev/hd9var 128.00 117.64 9% 429 2% /var > > /dev/hd3 512.00 0.00 100% 728 74% /tmp > > ^ ^ > > # pwd && du -sm > > /tmp > > 148.55 . > > ^ > > > > What can couse this diffrences, and how can i fix this? > > To get some relieve: > Extend the /tmp filesystem > $ chfs -a size=+1 /tmp according to original post, /tmp has no space left. chfs needs space in /tmp to do its thing... need to remove some unused files before chfs would work... > > To solve the problem > use the commands fuser or lsof to figure out with processes are using > the /tmp filesystem. > $ man fuser > $ fuser /tmp > > If possible stop these application , free the space on /tmp and start > the application again. > > And never ever just delete files in /tmp as long as you are not sure > that these files are not in use > > hth > Hajo |
| ||||
| sol gongola wrote: > If you delete a file that is kept open by a running program, > it will still be there until the program exists or closes Since I cannot bear the thought of _ever_ rebooting, here are a couple of options: Run "fuser /dev/hd3" and lsof -Pn to identify the programs with open files in /tmp. Once identified, restart the offending program (if it can be safely done). My guess would be that either syslogd or cron may have caused this (or any other programs you run with logging). They can usually be safely restarted (e.g stopsrc -s syslogd; startsrc -s syslogd) so the open filehandle is released. Regards, Niel |