Monitoring, Management & Location Tracking

How much disk space is used per user?

As of AirWave 7.3:

You should plan on a requirement of about 84GB storage per 100,000 unique users. To break that down a little more, each unique user will use about 780-900kb of disk space, which includes the following considerations:

- Exactly 530kb worth of RRD files, for storing historical signal metrics and bandwidth usage
- An additional 10-170kb worth of data in the sql database. In most cases, this number is between 10-20kb, so it's a small fraction of the total per-user data we store.
- 250kb to store all that data in 4 amp backups.

Today in AirWave, there are 3 data purging settings on the AMP Setup page that can affect how much user data we keep:

- User Association History: this affects sql data
- Reports: this affects sql data
- Inactive User Data: this affects sql data and RRD files. For saving disk space in environments with lots of unique users, this is by far the most important setting to keep low.

Version history
Revision #:
1 of 1
Last update:
‎06-29-2014 09:46 AM
Updated by:
 
Labels (1)
Contributors
Comments

Hi,

 

How can i release/free a few space in the server?

 

[root@airwave mercury]# df -h
Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00
130G 121G 1.9G 99% /
tmpfs 5.9G 0 5.9G 0% /dev/shm
/dev/sda1 97M 36M 57M 39% /boot
[root@airwave mercury]#

 

 

Upgrade package AMP-8.0.0-x86_64-cvs.tar.gz was not found in local cache.
Checking for any patches or modifications to the code
This process may take a few minutes...

No outstanding changes were found. Continuing with the upgrade.

The estimated amount of disk space needed for data migration during the
upgrade process exceeds your currently available disk space.
Upgrade aborted.

 

Any idea?

 

Regards

Hi,

 

Here are some good ways to free up some space on your server's hard drive:

Delete AMP upgrade packages:
# rm -rf /root/AMP-*.tar.gz
# rm -rf /root/AMP-*amp_upgrade

Delete the code from your previous AMP version:
# rm -rf /root/svn_old

Delete archived logs:
# rm -rf /var/log/*.1
# rm -rf /var/log/*.2
# rm -rf /var/log/*.3
# rm -rf /var/log/*.4

Delete old AMP backups:
[NOTE: if you choose to do this it is best to save the backup files off to another machine before deleting them.]
# rm -rf /var/airwave-backup/*003*
# rm -rf /var/airwave-backup/*004* 

 

Also, if you need more inputs on planning the server retention setting based on your current hardware, please feel free to open up a TAC case, we could help you in avoiding this in future, please let me know if you have any more queries.

 

Hi Thanks!

 

This is the log:

 

[root@airwave ~]# date
Mon Jul 14 13:08:07 MST 2014
[root@airwave ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
130G 116G 7.5G 94% /
tmpfs 5.9G 0 5.9G 0% /dev/shm
/dev/sda1 97M 36M 57M 39% /boot
[root@airwave ~]#

[root@airwave ~]# du -hs /root/svn_old
1.3G /root/svn_old
[root@airwave ~]#
[root@airwave ~]# rm -rf /root/svn_old
[root@airwave ~]# du -hs /root/svn_old
du: cannot access `/root/svn_old': No such file or directory
[root@airwave ~]#
1.3 GB more! :)

[root@airwave ~]# du -hsc /var/log/*.1 /var/log/*.2 /var/log/*.3 /var/log/*.4 | grep total
357M total
[root@airwave ~]#
[root@airwave ~]# rm -rf /var/log/*.1 /var/log/*.2 /var/log/*.3 /var/log/*.4
[root@airwave ~]# du -hsc /var/log/*.1 /var/log/*.2 /var/log/*.3 /var/log/*.4 | grep total
du: cannot access `/var/log/*.1': No such file or directory
du: cannot access `/var/log/*.2': No such file or directory
du: cannot access `/var/log/*.3': No such file or directory
du: cannot access `/var/log/*.4': No such file or directory
0 total
[root@airwave ~]#

357 MB More! :)

[root@airwave ~]# du -hsc /var/airwave-backup/*003* /var/airwave-backup/*004*
2.6G /var/airwave-backup/nightly_data003.tar.gz
2.6G /var/airwave-backup/nightly_data004.tar.gz
5.2G total
[root@airwave ~]#
[root@airwave ~]# rm -rf /var/airwave-backup/nightly_data003.tar.gz /var/airwave-backup/nightly_data004.tar.gz
[root@airwave ~]# du -hsc /var/airwave-backup/*003* /var/airwave-backup/*004*
du: cannot access `/var/airwave-backup/*003*': No such file or directory
du: cannot access `/var/airwave-backup/*004*': No such file or directory
0 total
[root@airwave ~]#

5.2 GB more! :)

before transfer airwave8 tar.gz:

[root@airwave ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
130G 109G 15G 89% /
tmpfs 5.9G 0 5.9G 0% /dev/shm
/dev/sda1 97M 36M 57M 39% /boot
[root@airwave ~]#

after transfer airwave8 tar.gz:

[root@airwave ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
130G 110G 14G 90% /
tmpfs 5.9G 0 5.9G 0% /dev/shm
/dev/sda1 97M 36M 57M 39% /boot
[root@airwave ~]#

 

new try:

[root@airwave /]# amp_upgrade -v 8.0.0 -f ./
Upgrade script AMP-8.0.0-amp_upgrade was not found in local cache.
Upgrade package found in local cache.
Validating the upgrade package...
Upgrade package is OK.
Using upgrade script extracted from local package.
Upgrade package found in local cache.
Checking for any patches or modifications to the code
This process may take a few minutes...
Modified files:
? bin/mkapidoc
? lib/conf/redis.conf
....
? support/aw-support-connection-2.0-9.noarch.rpm

WARNING: AMP contains patches or modifications to the code
These changes are likely to be overwritten during the upgrade.
For additional information please contact Aruba Networks Support at:
1-800-WiFi-LAN or support@arubanetworks.com
Would you like to continue with the upgrade? (yes/no): yes
Continuing with upgrade.
Patches and modifications are likely to be overwritten.
Validating the upgrade package...
Upgrade package is OK.
Upgrading AMP to version 8.0.0 from version 7.7.11...
Detailed log will be written to /var/log/upgrade/AMP-8.0.0-upgrade.log

STEP 1: Moving old version aside.

STEP 2: Unpacking upgrade package.

STEP 3: Checking for compatibility.

STEP 4: Stopping AMP services.

STEP 5: Installing upgrade.

STEP 6: Restarting AMP services.
[root@airwave /]# amp_version
8.0.0
[root@airwave /]#

checking space after upgrade:
[root@airwave /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
130G 115G 8.7G 93% /
tmpfs 5.9G 0 5.9G 0% /dev/shm
/dev/sda1 97M 36M 57M 39% /boot
[root@airwave /]#

 

Regards

Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.