LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-24-2016, 10:28 AM   #1
quintze
LQ Newbie
 
Registered: May 2016
Posts: 14

Rep: Reputation: Disabled
Ubuntu 14.04.4 LTS rsync backups causing disk space loss


I have been doing backups with the following command:

rsync -av #SOURCEPATH #DESTPATH

I noticed that I don't have much disk space left and I think it is due to the backups I am running. I tried to include a pic of my df -h and lsblk output but I can't insert image. Basically, it says I don't have hard drive space on my dev/dm-0 which I think is my hard drive.



I tried to find the TRASH folder and empty it out but for some reason, there is no trash folder when I go to:
ls ~/.local/Trash or ~/media/.local/Trash



I also tried to find the largest files with the following command but the output goes to fast and when I scroll up, I am not able to see what I need. I just see the /proc/ entries which I believe are not relevant:
find / -size +1G -ls


I tried sudo apt-get clean but that didn't empty any trash either.

Let me know if there is a place I can check to free up disk space as I am 80% sure it is because of rsync backups.

Thanks in advance. -Q
 
Old 05-24-2016, 10:35 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Text for details. Pictures sometimes help.
Post these 2 links please
Code:
sudo df -hT | nc termbin.com 9999
sudo lsblk | nc termbin.com 9999
"sudo apt-get clean" only cleans /var/cache/apt/archives

Enjoy the Goodness!

Last edited by Habitual; 05-24-2016 at 10:38 AM.
 
Old 05-24-2016, 10:50 AM   #3
quintze
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
gabriel@linux1:~$ sudo lsblk | nc termbin.com 9999
Use netcat.

gabriel@linux1:~$ sudo df -hT | nc termbin 9999
nc: getaddrinfo: Name or service not known

gabriel@linux1:~$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 243M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 232.6G 0 part
├─linux1--vg-root (dm-0) 252:0 0 228.6G 0 lvm /
└─linux1--vg-swap_1 (dm-1) 252:1 0 4G 0 lvm [SWAP]
sdb 8:16 0 1.8T 0 disk
└─sdb1 8:17 0 1.8T 0 part
sr0 11:0 1 1024M 0 rom

gabriel@linux1:~$ sudo df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 2.0G 4.0K 2.0G 1% /dev
tmpfs tmpfs 396M 748K 395M 1% /run
/dev/dm-0 ext4 225G 224G 0 100% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 2.0G 0 2.0G 0% /run/shm
none tmpfs 100M 0 100M 0% /run/user
/dev/sda1 ext2 236M 70M 154M 32% /boot
overflow tmpfs 1.0M 1020K 4.0K 100% /tmp
 
Old 05-24-2016, 10:58 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Code:
find / -size +1G -ls | less
to make a scrollable list of files greater than 1G in size
 
Old 05-24-2016, 11:06 AM   #5
quintze
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks szboardstretcher. That is a better way to search for large files than I did yesterday.

There is a large log file syslog.1. Not sure if I need it. I also tried to open it and it locked up my system yesterday.


8389562 61502192 -rw-r----- 1 syslog adm 62978228224 May 19 06:32 /var/log/syslog.1
4026531993 0 -r-------- 1 root root 140737477877760 May 24 11:02 /proc/kcore
 
Old 05-24-2016, 12:07 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by quintze View Post
Thanks szboardstretcher. That is a better way to search for large files than I did yesterday.

There is a large log file syslog.1. Not sure if I need it. I also tried to open it and it locked up my system yesterday.


8389562 61502192 -rw-r----- 1 syslog adm 62978228224 May 19 06:32 /var/log/syslog.1
4026531993 0 -r-------- 1 root root 140737477877760 May 24 11:02 /proc/kcore
If it were me, I would remove /var/log/syslog.1

kcore is a virtual file. Don't touch it.

Last edited by Habitual; 05-24-2016 at 12:08 PM.
 
Old 05-24-2016, 12:27 PM   #7
quintze
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
/dev/dm-0

I always thought my hard drive was 225 Gigs and that is was under /dev/sda, but I see that it is probably under dev/dm-0.

Does this indicate any problem?

Also, I deleted the syslog.1 file and see more disk space....is there a way to check if my rsync backups are causing the disk space consumption?

Thanks for the help so far.

gabriel@linux1:~$ sudo df -hT
[sudo] password for gabriel:
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 2.0G 4.0K 2.0G 1% /dev
tmpfs tmpfs 396M 748K 395M 1% /run
/dev/dm-0 ext4 225G 165G 49G 78% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 2.0G 0 2.0G 0% /run/shm
none tmpfs 100M 0 100M 0% /run/user
/dev/sda1 ext2 236M 70M 154M 32% /boot
overflow tmpfs 1.0M 1020K 4.0K 100% /tmp
 
Old 05-24-2016, 12:41 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by quintze View Post
I always thought my hard drive was 225 Gigs and that is was under /dev/sda, but I see that it is probably under dev/dm-0.

Does this indicate any problem?

Also, I deleted the syslog.1 file and see more disk space....is there a way to check if my rsync backups are causing the disk space consumption?

Thanks for the help so far.

gabriel@linux1:~$ sudo df -hT
[sudo] password for gabriel:
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 2.0G 4.0K 2.0G 1% /dev
tmpfs tmpfs 396M 748K 395M 1% /run
/dev/dm-0 ext4 225G 165G 49G 78% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 2.0G 0 2.0G 0% /run/shm
none tmpfs 100M 0 100M 0% /run/user
/dev/sda1 ext2 236M 70M 154M 32% /boot
overflow tmpfs 1.0M 1020K 4.0K 100% /tmp
You can use just
Code:
df -hT /
or
Code:
df -hT /dev/dm-0
since your / partition is on it.

The .1 in /var/log/syslog.1 is indicative of logrote, but that's all I can recall.
That should have rotated in a much smaller size and cycled out the "old" rotations.

Others here may have some details about how that is done, if it can be done, and
if I'm not just talking out the side of my neck (smack/bs)...

rsync has a "dry-run" switch (-n)
so try
Code:
rsync -avn SOURCEPATH DESTPATH
and examine the summary.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching from dump tape directory backups to NAS disk backups on RHEL 6 Jerry_C Red Hat 0 06-05-2013 12:44 AM
[SOLVED] Ubuntu LTS server 10.04.03 is filling disk space rytec Linux - Server 3 01-24-2012 02:48 AM
No enough space error when trying upgrade ubuntu from 8.04 lts to 10.04 lts flik shen Ubuntu 5 06-15-2010 12:44 PM
RDNIS Connection Causing Network Loss On Eth0 jmoschetti45 Linux - Networking 1 11-17-2009 03:37 PM
Failed attempts to serve PHP with Slack 8.1 causing hair loss! dnnrly Linux - Newbie 1 12-02-2003 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration