johnathan3
April 10th, 2017, 05:40 PM
Someone issued an rsync command to copy files from one disk to another and they messed it up. the commands or something happened on the system where the root / partition became full. they did not exclude some other directories they should have. So I found some files that were in the home directory and deleted them it free'd about 35GB. I cant find where the remaining 150GB is being taken up.
I have rebooted the system a few times and df remains the same.
$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
The rsync command was:
sudo rsync -av --progress / /mnt/ssd --exclude /mnt --exclude /proc --exclude /dev
$ sudo df -lhaT
Filesystem Type Size Used Avail Use% Mounted on
sysfs sysfs 0 0 0 - /sys
proc proc 0 0 0 - /proc
udev devtmpfs 1.8G 12K 1.8G 1% /dev
devpts devpts 0 0 0 - /dev/pts
tmpfs tmpfs 358M 2.5M 355M 1% /run
/dev/sdb1 ext4 226G 181G 34G 85% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
none fusectl 0 0 0 - /sys/fs/fuse/connections
none debugfs 0 0 0 - /sys/kernel/debug
none securityfs 0 0 0 - /sys/kernel/security
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 1.8G 12K 1.8G 1% /run/shm
none tmpfs 100M 0 100M 0% /run/user
none pstore 0 0 0 - /sys/fs/pstore
binfmt_misc binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
systemd cgroup 0 0 0 - /sys/fs/cgroup/systemd
/home/cata/.Private ecryptfs 226G 181G 34G 85% /home/cata
$ sudo lsof | grep deleted
$ pwd
/
$ sudo du -hsc
du: cannot access ‘./proc/22085/task/22085/fd/4’: No such file or directory
du: cannot access ‘./proc/22085/task/22085/fdinfo/4’: No such file or directory
du: cannot access ‘./proc/22085/fd/4’: No such file or directory
du: cannot access ‘./proc/22085/fdinfo/4’: No such file or directory
6.4G .
6.4G total
cata@server1:/$
$ cd /home/cata/
$ sudo du -hsc
516K .
516K total
I installed ncdu and it does not show this space used.
I need to free up this space for some additional data being generated in a few days.
I have rebooted the system a few times and df remains the same.
$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
The rsync command was:
sudo rsync -av --progress / /mnt/ssd --exclude /mnt --exclude /proc --exclude /dev
$ sudo df -lhaT
Filesystem Type Size Used Avail Use% Mounted on
sysfs sysfs 0 0 0 - /sys
proc proc 0 0 0 - /proc
udev devtmpfs 1.8G 12K 1.8G 1% /dev
devpts devpts 0 0 0 - /dev/pts
tmpfs tmpfs 358M 2.5M 355M 1% /run
/dev/sdb1 ext4 226G 181G 34G 85% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
none fusectl 0 0 0 - /sys/fs/fuse/connections
none debugfs 0 0 0 - /sys/kernel/debug
none securityfs 0 0 0 - /sys/kernel/security
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 1.8G 12K 1.8G 1% /run/shm
none tmpfs 100M 0 100M 0% /run/user
none pstore 0 0 0 - /sys/fs/pstore
binfmt_misc binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
systemd cgroup 0 0 0 - /sys/fs/cgroup/systemd
/home/cata/.Private ecryptfs 226G 181G 34G 85% /home/cata
$ sudo lsof | grep deleted
$ pwd
/
$ sudo du -hsc
du: cannot access ‘./proc/22085/task/22085/fd/4’: No such file or directory
du: cannot access ‘./proc/22085/task/22085/fdinfo/4’: No such file or directory
du: cannot access ‘./proc/22085/fd/4’: No such file or directory
du: cannot access ‘./proc/22085/fdinfo/4’: No such file or directory
6.4G .
6.4G total
cata@server1:/$
$ cd /home/cata/
$ sudo du -hsc
516K .
516K total
I installed ncdu and it does not show this space used.
I need to free up this space for some additional data being generated in a few days.