db-backup fails with "ERROR: There is not enough drive space available to perform the backup" error

book

Article ID: 157250

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

You log in to SMG as admin from a remote SSH client and execute db-backup command. The following error occurs and the backup cannot be created; however, when you log in to SMG locally on the Appliance's console, the db-backup can be performed without errors. You want to know why and want remotely execute the command.

ERROR: There is not enough drive space available to perform the backup.
Space Required: <VERY  LARGE  NUMBER> kb

Cause

db-backup command is executed with some locale other than en_US.UTF-8.

Resolution

Try one of the following workarounds. If they do not work, see TECH84447 shown below in the Related KB section.

  1. Login SMG locally.
  2. When you log in remotely via SSH client, export LANG=en_US.UTF-8 before slogin to SMG:

    $ export LANG=en_US.UTF-8
    $ slogin -l admin <SMG  host IP>
     
  3. Change the shell locale after you log in as admin then execute db-backup:

    admin> LANG=en_US.UTF-8
    admin> db-backup [options]