Detail
If a namespace has been configured assingle-bin true is it possible to change this into a multiple bin namespace by taking a backup of the data using asbackup and restoring into a namespace where the setting is single-bin false?Answer
It is not possible to restore a backup taken from asingle-bin namespace directly into a multiple bin namespace. As bin names are redundant in a single-bin namespace they are not stored, even if sent by the client. As such, a restore into a multiple-bin namespace will fail as there are no bin names for the records in the backup file.Notes
There are two options when there is a business driver to migrate data from a single-bin namespace to a multiple-bin namespace.
Option 1 is to use a custom application that reads the data from the single-bin namespace, appends bin names and then writes this data into a multiple bin namespace.
Option 2 would be to take a backup of the single-bin namespace using asbackup and then use text editing tools to append bin names before restoring the data. Files created using asbackup are human readable.
Assistance in performing this migration may be provided by Aerospike as part of a Client Services engagement if required.