Wireless Access

Reply
Occasional Contributor II
Posts: 10
Registered: ‎10-28-2013

what goes in the /dev/mapper directory? my / disk appears full with that taking up most space

Can't start airwave and I figured this might be a culprit.

 

[root@adc1-01-airwave-01 mapper]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       75G   72G     0 100% /
tmpfs                 5.9G     0  5.9G   0% /dev/shm
/dev/sda1              97M   36M   57M  39% /boot

Moderator
Posts: 1,252
Registered: ‎10-16-2008

Re: what goes in the /dev/mapper directory? my / disk appears full with that taking up most space

Yikes!  That partition has everything that falls under / except /boot.  This means the entire AirWave application, database, logs, etc.

 

Next steps:

1. Open support case

2. Decide which is more important, getting data collection going or finding root cause to prevent issue from happening again

 

If getting data collection is the priority, then:

1. Prevent further data collection

    # amp_disable

2. Grab any and all backups from /var/airwave-backup/ (you can use an SCP tool like WinSCP if you're on a Window's machine)

3. Start clearing out some of the older logs:

    # cd /var/log

    # rm -rf *.4

    # rm -rf *.3

    # rm -rf *.2

-Check to see if enough space is available to resume AirWave processing

4. Clear out old partial backups

    # rm -rf /alternative/*

-Check to see if enough space is available to resume AirWave processing

5. Clear out older upgrade packages from /root

    # cd /root

    # rm -rf *.tar.gz

-Check to see if enough space is available to resume AirWave processing

6. Remove backups since you've already copied them off server

    # cd var/airwave-backup

    # rm -rf *.tar.gz

7. Turn back on AirWave

    # amp_enable -now

 

If finding the root cause is the priority, then:

1. Prevent further data collection

    # amp_disable

2. Find the files that are hogging the disk:

    # find / -type f -size +20M | xargs du -h | sort -nr

3. Take note of the files, and then delete the largest files that aren't in the application code -> typically runaway logs are the culprit.

 

 

Once things are back to normal, be sure to add a trigger alert for when disk space reaches 75% in System -> Triggers.


Rob Gin
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company
MVP
Posts: 1,415
Registered: ‎10-25-2011

Re: what goes in the /dev/mapper directory? my / disk appears full with that taking up most space

[ Edited ]

Once you complete all of Rob's work and you have it up and running again. It may be worth investigation Historical Data Retention and how many days you are keeping data.

Client Data Retention Interval (1-425 days) is the biggest hog of data. You may consider reducing it to a value that makes more sense.

Whatever you do, do not see any of values to 0, as it will not delete or age out the data, it will just stay there. Minimum is 1 day unless you are absolutely sure the HDR field can be set to 0

 

EDIT: BTW Rob, this is an excellent KB article idea for checking/clearing diskspace from AMP when it is full which I nominated for you :)

Pasquale Monardo | Senior Network Solutions Consultant
ACDX #420 | ACMP
[If you found my post helpful, please give kudos!]
Search Airheads
Showing results for 
Search instead for 
Did you mean: