OVH Community, your new community space.

disk space issue


mark134uk
20-10-2013, 20:58
thanks guys there was 1400gb of binary logs lol,took a while to delete but all sorted now

il also turned logs of in .conf

K.Kode
20-10-2013, 20:10
Run
Code:
lsof | grep deleted
to check for any file handles still open.
Code:
du --si -s /home/*
Will give you files / folder sizes for home.

NeddySeagoon
20-10-2013, 18:29
mark134uk,

You need to through the file descriptors in /proc//fd and determine the owner of the file. There may be a one liner for that but I don't know it.

RikT
20-10-2013, 17:30
I would also hazard a guess at mysql logs if you running with mysql i bet in /var/logs/mysql you have a **** load of bin files you will need to disable that logging in my.cnf

mark134uk
20-10-2013, 17:23
hi mate thanks for your reply,what app do i need to restart

NeddySeagoon
20-10-2013, 15:15
mark134uk,

I suspect you have a log that has been deleted but the app that owns it is still holding it open. It won't be unlinked from the filesystem while its in use but the dir entry will be gone.
You need to restart the app.

mark134uk
20-10-2013, 13:50
hi guys my dedi server has 1.8 T hdd it says ive used %85 e.g 1.5T but all i have on the server is 1 website that totals 30gb,i cant work out where all the rest of the space has gone?

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20478976+ fd Linux raid autodetect
/dev/sda2 2550 243136 1932506112 fd Linux raid autodetect
Partition 2 does not start on physical sector boundary.
/dev/sda3 243136 243201 523264 82 Linux swap / Solaris
Partition 3 does not start on physical sector boundary.

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0000f4b2

Device Boot Start End Blocks Id System
/dev/sdb1 1 2550 20478976+ fd Linux raid autodetect
/dev/sdb2 2550 243136 1932506112 fd Linux raid autodetect
Partition 2 does not start on physical sector boundary.
/dev/sdb3 243136 243201 523264 82 Linux swap / Solaris
Partition 3 does not start on physical sector boundary.

Disk /dev/md2: 1978.9 GB, 1978886193152 bytes
2 heads, 4 sectors/track, 483126512 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Alignment offset: 3584 bytes
Disk identifier: 0x00000000


Disk /dev/md1: 21.0 GB, 20970405888 bytes
2 heads, 4 sectors/track, 5119728 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000





df -h
root@ns3097361 [~]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 9.8G 8.7G 53% /
/dev/root 20G 9.8G 8.7G 53% /
none 7.8G 408K 7.8G 1% /dev
/dev/md2 1.8T 1.5T 291G 84% /home
/dev/loop0 4.0G 171M 3.6G 5% /tmp
/dev/loop0 4.0G 171M 3.6G 5% /var/tmp
/dev/root 20G 9.8G 8.7G 53% /var/named/chroot/etc/named
/dev/root 20G 9.8G 8.7G 53% /var/named/chroot/usr/lib64/bind