Can't Delete /home/admin/tmp
Can't Delete /home/admin/tmp
Hello Team,
I try to delete files from /home/admin/tmp
When I command in putty
Timeout cannot delete
Please help, Any solution
Thanks...
I try to delete files from /home/admin/tmp
When I command in putty
Code: Select all
find /home/*/tmp -type f -name 'sess_*' -ctime +5 -delete
Please help, Any solution
Thanks...
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Can't Delete /home/admin/tmp
Is it a KVM-VPS or Dedicated server ?
To check what is holding a lock
then kill the process and try
# Check iNodes if full
# Clear Caches (DOESNT WORK on OPENVZ)
If possible: shutdown your server for 10 minutes, then reboot it. This shall clear all cache and kernel flags and release any locks
To check what is holding a lock
Code: Select all
lsof +f -- /home/admin/tmp
# Check iNodes if full
Code: Select all
df -i
Code: Select all
sync; echo 1 > /proc/sys/vm/drop_caches
sync; echo 2 > /proc/sys/vm/drop_caches
sync; echo 3 > /proc/sys/vm/drop_caches
Re: Can't Delete /home/admin/tmp
Hi, Thanks
Its a Dedicated Server and number of files (over 10,000,000) from 1 year
Its a Dedicated Server and number of files (over 10,000,000) from 1 year
Dedicated Server: :~# lsof +f -- /home/admin/tmp/
lsof: not a file system: /home/admin/tmp/
lsof 4.86
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s]
[-F [f]] [-g [s]] [-i ] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Dedicatedserver:~# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/md4 488099840 45854266 442245574 10% /
udev 4110633 452 4110181 1% /dev
tmpfs 4112910 781 4112129 1% /run
tmpfs 4112910 1 4112909 1% /dev/shm
tmpfs 4112910 5 4112905 1% /run/lock
tmpfs 4112910 13 4112897 1% /sys/fs/cgroup
/dev/md2 128016 328 127688 1% /boot
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Can't Delete /home/admin/tmp
Your iNodes are full. This is a sever problem.
clear your caches as I told and power off, then reboot as I said.
clear your caches as I told and power off, then reboot as I said.