Friday, July 05, 2013

[SOLVED] Asterisk disk space problem

Recently, we see an issue with an Asterisk installation where the disk
usage keeps growing, but apparently not due to increasing call volume.

First of all, repeating 'df -h' shows that '/' is approaching its
capacity upper limit. More importantly, the free space keeps decreasing
for unknown reason.

# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 43G 39G 2.5G 94% /

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 43G 39G 2.0G 96% /

However, the 'du -sh /' provides conflicting results.

# du -sh /
13G /

Such discrepancy could be due to hidden files behind a mount point under
'/'. The 'df' command uses the file system superblock to report the
usage statistics. On the other hand, 'du' command follows the directory
tree to accumulate the usage figures and files hidden behind a mount
point are not taken into consideration.

This system is coincidentally mounting a storage device on
/var/spool/asterisk/monitor.

We can use the 'bind' option in mount to reveal the real situation.

# mount -o bind / /another-view-root
# cd /another-view-root
# du -sh /another-view-root/var/spool/asterisk/monitor

Now, we get consistent result with the 'df' command. It also shows the
wave files which became hidden when another device was mounted over them.

Furthermore, we spot a very large wave file modified recently among
these hidden files. The wave filename indicates that it was created at
least a month ago, but is still growing.

Using 'CLI> core show channels', we notice there is a active call which
is bridged to VM. This problematic call is not disconnected for unknown
reason and because all extensions under this site requires monitoring,
its corresponding wave file keeps growing.

Another device later mounts over these files and unintentionally hides
the problem until the decreasing free space alerts the administrator.

By stop this problematic call using 'CLI> channel request hangup
<channel-id>', the wave file is closed finally and subsequently deleted.

5 comments:


  1. Thank you very much for your information.
    Australia ETA/eVisitor Visa
    is quiet easy to apply online from Singapore,
    Malaysia, United Kingdom, United States, Canada, France and including all others ETA Eligible Countries from our website.

    ReplyDelete
  2. Very good article and I like it. Thank you for giving me information

    Please Visit to mboplay888.com Slot gambling agent, ball, live casino Indonesia

    Nikmati bonus menarik dari MBOPLAY :

    Welcome Bonus New Member 20% ALL GAMES [ BOLA, POKER, LIVE CASINO, SLOT, IDN LIVE ]

    Promo Cashback Mingguan BOLA UP TO 7.5%
    Promo Cashback Mingguan BOLA UP TO SLOT 1%
    Promo Cashback Mingguan BOLA UP TO LIVE CASINO 1%
    Bonus Next Deposit 5% [ BOLA, LIVE CASINO, SLOT, IDN LIVE ]
    Komisi IDNPOKER 0.5%

    MBOPLAY
    SPBO BOLA
    AGEN SBOBET
    BANDAR JUDI
    AGEN IDN SPORTS
    BURSA TARUHAN BOLA
    JUDI BOLA TERPERCAYA
    BANDAR SPORTS ONLINE TERPERCAYA

    Contact us MBOPLAY.COM :
    Livechat : https://mboplay88b.com/?ref=daftar
    Whatsapp : +6282117858228

    Link Alternatif MBOPLAY :

    https://mboplay88b.com/?ref=daftar
    https://mboplay88c.com/?ref=daftar
    https://mboplay888.com/?ref=daftar

    ReplyDelete