Why is One MN Different size on VPS ?

Check dash folder with du -h command:
:~$ du -h .dash
194M .dash/blocks/index
2.4G .dash/blocks
4.4M .dash/backups
92K .dash/database
47M .dash/chainstate
2.5G .dash
 
ok I've checked a MN that is not so old and it has only used 5gb ,,,,, guess they use more gb as time goes on ,,,,

are there files I can delete ??
 
No, current blockchain size is about 2.5GB.
Is 12GB size of dash folder or whole system?
If first, check size of debug.log file.
 
Ok I do not know lynux so I use putty and WINSPC to work my MN's

I have looked at the two servers with WinSPC and tried to find there the differences are and it seem's that both the user folders containing the Mn's show no difference in size ,,
below are both the "df -h" read out's from putty showing the difference in size also i have added some folders that appear to contain very different sizes when i look at properties with WIn spc
the other thing which is apparent is each MN is running on a different version of ubuntu ( could one version really be twice the size of the other )?,,,
could anyone put any light on this ?
_____________________________________________________________________________________________________________________________
MN1
____
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-92-generic x86_64)

* Documentation: https://help.ubuntu.com/
New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Filesystem Size Used Avail Use% Mounted on
/dev/vda1 15G 12G 2.5G 83% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 361M 4.0K 361M 1% /dev
tmpfs 75M 360K 74M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 371M 0 371M 0% /run/shm
none 100M 0 100M 0% /run/user

-----------------------------------------
lib = 2635mb

sys = 82000kb

usr = 1300mb

var = 1900mb
******************************************************************************
MN2
______
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-107-generic x86_64)

* Documentation: https://help.ubuntu.com/
New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Filesystem Size Used Avail Use% Mounted on
udev 361M 4.0K 361M 1% /dev
tmpfs 75M 372K 74M 1% /run
/dev/vda1 15G 5.0G 9.1G 36% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 371M 0 371M 0% /run/shm
none 100M 0 100M 0% /run/user

---------------------------------------------------------------------------------------------
lib = 849mb

sys = 177mb

usr = 478mb

var = 638 mb
 
Thank's ,,,when i use WINSPC to measure both the dash folders they look the nearly the same


ls -lah ~/.dash/debug.log MN1
=
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-92-generic x86_64)

* Documentation: https://help.ubuntu.com/
New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Mon Feb 6 18:26:21 2017 from ********
*******@vultr:~$ ls -lah ~/.dash/debug.log
-rw------- 1 ******** 303M Feb 7 08:55 /home/******/.dash/debug.log
******@vultr:~$
____________________________________________________________
ls -lah ~/.dash/debug.log MN2
=
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-107-generic x86_64)

* Documentation: https://help.ubuntu.com/
New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Mon Feb 6 02:01:35 2017 from ********
********@vultr:~$ ls -lah ~/.dash/debug.log
-rw------- 1 ******** 79M Feb 7 08:58 /home/********/.dash/debug.log
********@vultr:~$
_____________________________________________________________
 
Hmm, looks like my guess about huge debug.log wasn't correct then. Try "ls -lah ~/.dash/" and see if there are any other huge files.
What's the _exact_ output of "du -h .dash" btw?
 
du -h .dash MN1

53M .dash/chainstate
6.3M .dash/backups
204M .dash/blocks/index
2.4G .dash/blocks
1.9M .dash/database
2.8G .dash

du -h .dash MN2

1.1M .dash/database
5.1M .dash/backups
52M .dash/chainstate
232M .dash/blocks/index
2.4G .dash/blocks
2.6G .dash

the difference to me looks to be in the OS itself !!
 
du -h .dash MN1

53M .dash/chainstate
6.3M .dash/backups
204M .dash/blocks/index
2.4G .dash/blocks
1.9M .dash/database
2.8G .dash

du -h .dash MN2

1.1M .dash/database
5.1M .dash/backups
52M .dash/chainstate
232M .dash/blocks/index
2.4G .dash/blocks
2.6G .dash

the difference to me looks to be in the OS itself !!
Yep, check you home dir "du -hd1" for any huge folders or "ls -lah" for any huge files.
You might also want to remove cached packages "sudo apt-get purge".
 
******@vultr:~$ du -hd1
4.0K ./.cache
2.8G ./.dash
2.8G

.
******@vultr:~$ ls -lah
total 12M
drwxr-xr-x 4 ****** 4.0K Feb 6 01:53 .
drwxr-xr-x 3 root root 4.0K Oct 7 2015 ..
-rw------- 1 ****** ****** 1.6K Feb 7 09:44 .bash_history
-rw-r--r-- 1 ****** ****** 220 Oct 7 2015 .bash_logout
-rw-r--r-- 1 ****** ****** 3.6K Oct 7 2015 .bashrc
drwx------ 2 ****** ****** 4.0K Oct 7 2015 .cache
drwxrwxr-x 6 ****** ****** 4.0K Sep 6 19:35 .dash
-rwxrwxrwx 1 ****** ****** 2.5M Jan 1 2016 dash-cli
-rwxrwxrwx 1 ****** ****** 9.0M Jan 1 2016 dashd
-rw------- 1 ****** ****** 196 Oct 7 2015 .joe_state
-rwxrw-r-- 1 ****** ****** 70 Oct 9 2015 mn_watch.sh
-rw-r--r-- 1 ****** ****** 675 Oct 7 2015 .profile
-rw-rw-r-- 1 ****** ****** 66 Oct 9 2015 .selected_editor
******@vultr:~$

****** = my user
Have i somehow got 2 x user's ?
 
.


******@vultr:~$ sudo apt-get purge
sudo: unable to resolve host vultr.guest
[sudo] password for ******:
****** is not in the sudoers file. This incident will be reported.
******@vultr:~$
 
.


******@vultr:~$ sudo apt-get purge
sudo: unable to resolve host vultr.guest
[sudo] password for ******:
****** is not in the sudoers file. This incident will be reported.
******@vultr:~$
Ah, right. ok, so login with any power user or root and try that again.
 
RRRR@vultr:~# sudo apt-get purge
sudo: unable to resolve host vultr.guest
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.13.0.93.100) but 3.13.0.92.99 is installed
E: Unmet dependencies. Try using -f.
RRRR@vultr:~#
 
Next run "sudo apt-get -f install", it will clean up whatever mess is in there and afterwards run "sudo apt-get purge" again, you may not need to but it wont do any harm. Seeing as you've added that user to the sudoers file (or you've logged in as root, if so you don't need the "sudo" part of those commands) it could be worth running "sudo du -h /var" before and after, it will give some idea of how much space the apt cache was using and you may have a lot of logs files built up in /var/log.
 
Ok I forgot to do before and after this is after I have gained 2% of 15gb :)

I think a while ago I did this

* Documentation: https://help.ubuntu.com/
New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

and it did not go smoothly may be that caused all the extra usage,,
can I do sudo du -h for the whole server and get a detailed breakdown ?

RRRR@vultr:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 15G 12G 2.8G 81% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 361M 4.0K 361M 1% /dev
tmpfs 75M 356K 74M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 371M 0 371M 0% /run/shm
none 100M 0 100M 0% /run/user

RRRR@vultr:~# sudo du -h /var
sudo: unable to resolve host vultr.guest
4.0K /var/local
4.0K /var/spool/plymouth
4.0K /var/spool/rsyslog
8.0K /var/spool/cron/crontabs
12K /var/spool/cron
24K /var/spool
1.3M /var/backups
4.0K /var/lib/dpkg/parts
99M /var/lib/dpkg/info
40K /var/lib/dpkg/triggers
4.0K /var/lib/dpkg/updates
128K /var/lib/dpkg/alternatives
101M /var/lib/dpkg
8.0K /var/lib/ntp
4.0K /var/lib/python
4.0K /var/lib/AccountsService/users
4.0K /var/lib/AccountsService/icons
12K /var/lib/AccountsService
52K /var/lib/belocs
4.0K /var/lib/libuuid
8.0K /var/lib/update-manager
12K /var/lib/sgml-base
500K /var/lib/usbutils
4.0K /var/lib/plymouth
4.0K /var/lib/update-notifier
8.0K /var/lib/urandom
28K /var/lib/pam
15M /var/lib/mlocate
12K /var/lib/xml-core
4.0K /var/lib/apt/periodic
12K /var/lib/apt/lists/partial
168M /var/lib/apt/lists
4.0K /var/lib/apt/mirrors/partial
8.0K /var/lib/apt/mirrors
20K /var/lib/apt/keyrings
168M /var/lib/apt
4.0K /var/lib/ntpdate
32K /var/lib/ucf/cache
80K /var/lib/ucf
4.0K /var/lib/apparmor/profiles
8.0K /var/lib/apparmor
12K /var/lib/dictionaries-common/wordlist
16K /var/lib/dictionaries-common
4.0K /var/lib/aptitude
12K /var/lib/dhcp
4.0K /var/lib/vim/addons
8.0K /var/lib/vim
4.0K /var/lib/update-rc.d
8.0K /var/lib/dbus
4.0K /var/lib/man-db
8.0K /var/lib/ubuntu-release-upgrader
4.0K /var/lib/ureadahead/debugfs
8.0K /var/lib/ureadahead
12K /var/lib/cloud/sem
28K /var/lib/cloud/data
112K /var/lib/cloud/instances/1cdf728b1c41d9cf4f6dbef4c32d2b47/sem
4.0K /var/lib/cloud/instances/1cdf728b1c41d9cf4f6dbef4c32d2b47/handlers
4.0K /var/lib/cloud/instances/1cdf728b1c41d9cf4f6dbef4c32d2b47/scripts
148K /var/lib/cloud/instances/1cdf728b1c41d9cf4f6dbef4c32d2b47
152K /var/lib/cloud/instances
4.0K /var/lib/cloud/seed
4.0K /var/lib/cloud/handlers
12K /var/lib/cloud/scripts/per-instance
12K /var/lib/cloud/scripts/per-once
4.0K /var/lib/cloud/scripts/per-boot
4.0K /var/lib/cloud/scripts/vendor
36K /var/lib/cloud/scripts
240K /var/lib/cloud
12K /var/lib/locales/supported.d
16K /var/lib/locales
84K /var/lib/initramfs-tools
4.0K /var/lib/misc
4.0K /var/lib/insserv
4.0K /var/lib/sudo/MY USER ,,,,,,,,,,,,,,,,,,,,,,,,,,,
8.0K /var/lib/sudo
4.0K /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants
20K /var/lib/systemd/deb-systemd-helper-enabled
24K /var/lib/systemd
4.0K /var/lib/initscripts
8.0K /var/lib/logrotate
285M /var/lib
4.0K /var/opt
4.0K /var/log/ntpstats
208K /var/log/upstart
104K /var/log/apt
320K /var/log/unattended-upgrades
4.0K /var/log/dist-upgrade
12K /var/log/fsck
13M /var/log/installer/cdebconf
14M /var/log/installer
270M /var/log
4.0K /var/tmp
4.0K /var/cache/man/nl/cat5
4.0K /var/cache/man/nl/cat8
4.0K /var/cache/man/nl/cat1
36K /var/cache/man/nl
4.0K /var/cache/man/fr/cat5
4.0K /var/cache/man/fr/cat8
4.0K /var/cache/man/fr/cat1
44K /var/cache/man/fr
4.0K /var/cache/man/cat5
4.0K /var/cache/man/ko/cat5
4.0K /var/cache/man/ko/cat8
4.0K /var/cache/man/ko/cat1
36K /var/cache/man/ko
4.0K /var/cache/man/tr/cat5
4.0K /var/cache/man/tr/cat8
4.0K /var/cache/man/tr/cat1
36K /var/cache/man/tr
4.0K /var/cache/man/cat2
4.0K /var/cache/man/es/cat5
4.0K /var/cache/man/es/cat8
4.0K /var/cache/man/es/cat1
40K /var/cache/man/es
4.0K /var/cache/man/id/cat5
4.0K /var/cache/man/id/cat8
4.0K /var/cache/man/id/cat1
36K /var/cache/man/id
4.0K /var/cache/man/gl/cat8
28K /var/cache/man/gl
4.0K /var/cache/man/hu/cat5
4.0K /var/cache/man/hu/cat8
4.0K /var/cache/man/hu/cat1
36K /var/cache/man/hu
4.0K /var/cache/man/zh_TW/cat5
4.0K /var/cache/man/zh_TW/cat8
4.0K /var/cache/man/zh_TW/cat1
36K /var/cache/man/zh_TW
4.0K /var/cache/man/pt_BR/cat5
4.0K /var/cache/man/pt_BR/cat8
4.0K /var/cache/man/pt_BR/cat1
36K /var/cache/man/pt_BR
4.0K /var/cache/man/fi/cat8
4.0K /var/cache/man/fi/cat1
32K /var/cache/man/fi
4.0K /var/cache/man/da/cat5
4.0K /var/cache/man/da/cat8
4.0K /var/cache/man/da/cat1
36K /var/cache/man/da
4.0K /var/cache/man/it/cat5
4.0K /var/cache/man/it/cat8
4.0K /var/cache/man/it/cat1
40K /var/cache/man/it
4.0K /var/cache/man/cat3
4.0K /var/cache/man/pl/cat5
4.0K /var/cache/man/pl/cat8
4.0K /var/cache/man/pl/cat1
40K /var/cache/man/pl
4.0K /var/cache/man/cat6
4.0K /var/cache/man/sl/cat8
4.0K /var/cache/man/sl/cat1
32K /var/cache/man/sl
4.0K /var/cache/man/cat8
4.0K /var/cache/man/ja/cat5
4.0K /var/cache/man/ja/cat8
4.0K /var/cache/man/ja/cat1
44K /var/cache/man/ja
4.0K /var/cache/man/ru/cat5
4.0K /var/cache/man/ru/cat8
4.0K /var/cache/man/ru/cat1
44K /var/cache/man/ru
4.0K /var/cache/man/zh_CN/cat5
4.0K /var/cache/man/zh_CN/cat8
4.0K /var/cache/man/zh_CN/cat1
36K /var/cache/man/zh_CN
4.0K /var/cache/man/cat7
4.0K /var/cache/man/sv/cat5
4.0K /var/cache/man/sv/cat8
4.0K /var/cache/man/sv/cat1
36K /var/cache/man/sv
4.0K /var/cache/man/cat4
4.0K /var/cache/man/pt/cat5
4.0K /var/cache/man/pt/cat8
4.0K /var/cache/man/pt/cat1
36K /var/cache/man/pt
4.0K /var/cache/man/cs/cat5
4.0K /var/cache/man/cs/cat8
4.0K /var/cache/man/cs/cat1
36K /var/cache/man/cs
4.0K /var/cache/man/cat1
4.0K /var/cache/man/de/cat5
4.0K /var/cache/man/de/cat8
4.0K /var/cache/man/de/cat1
44K /var/cache/man/de
1.1M /var/cache/man
4.0K /var/cache/apt/archives/partial
1.4G /var/cache/apt/archives
1.4G /var/cache/apt
4.0K /var/cache/pppconfig
4.0K /var/cache/apparmor
36K /var/cache/dictionaries-common
16K /var/cache/ldconfig
4.5M /var/cache/debconf
1.4G /var/cache
4.0K /var/mail
2.0G /var
RRRR@vultr:~#
 
Last edited:
this would account for the extra 6gb
are they ment to be that big ?


1.4G /var/cache/apt/archives
1.4G /var/cache/apt
4.0K /var/cache/pppconfig
4.0K /var/cache/apparmor
36K /var/cache/dictionaries-common
16K /var/cache/ldconfig
4.5M /var/cache/debconf
1.4G /var/cache
4.0K /var/mail
2.0G /var
 
The package manager (dpkg and apt) are taking up a lot of space, 1.4GB of cached files in there which is a lot! You can do "apt-get clean" to clear them all out and get that 1.4GB back. That much used space is normal because apt stores everything with the standard config, it's simple enough to get it to delete downloaded packages after they've been installed but it's not usually much of an issue, a full release update will use a lot of space though! I'd suggest not doing them tbh, they can be trouble sometimes (as you found out!) and unless there's no option it's generally better to do a fresh install. That still leaves you with 4GB more used on one of your servers or are they both about the same now?

EDIT: The bottom value shows the total used in /var , 2.0G. Use "du -sh" instead to just show the sumarised value, just the size of the folder on its own. "du --help" explains what the options mean, -s = summarised, -h = human readable, ie. 2.7G instead of 2830416 (K)
 
Back
Top