Articles in this section

asmt backup and restore is failing with 'Failed to extract namespace names from list.'

Problem Description

ASMT 2.1.0 backup and restore is failing with ‘Failed to extract namespace names from list.'

Example for restore failing:

[root@mycluster-1 tmp]# asmt -r -v -p /tmp/asmtbkup            
Aerospike Shared Memory Tool, Version 2.1.1
Copyright (C) 2022-2024 Aerospike, Inc.  All rights reserved.

asmt -r -v -p /tmp/asmtbkup

Performing restore operation.

Failed to extract namespace names from list.

Explanation

As of ASMT 2.1.0, it is a requirement to specify the list of namespaces to backup using the -n flag.

Solution

Specify the namespaces you would like to backup or restore using the -n flag.

Example for backup:

[root@test-1 asmtbackup]# asmt -b -v -p /tmp/asmtbackup/ -n test,bar
Aerospike Shared Memory Tool, Version 2.1.0
Copyright (C) 2022-2024 Aerospike, Inc.  All rights reserved.

asmt -b -v -p /tmp/asmtbackup/ -n test,bar

Performing backup operation.

key         shmid  user  group  mode  natt  segsz       inst  nsid  name  type      stage  
----------  -----  ----  -----  ----  ----  ----------  ----  ----  ----  --------  -----  
0xae001000  8      root  root   0666  0     2097152     0     1     test  pi-base   -      
0xae001001  7      root  root   0666  0     5259264     0     1     test  pi-treex  -      
0xa2001000  6      root  root   0666  0     50032       0     1     test  si-meta   -      
0xae001100  2      root  root   0666  0     1073741824  0     1     test  pi-stage  0x100  
0xa2001100  4      root  root   0666  0     1073741824  0     1     test  si-stage  0x100  

Transferred  50% of data in 6.5s.
Transferred 100% of data in 6.5s.

Successfully backed up 5 Aerospike database segments.

key         shmid  user  group  mode  natt  segsz       inst  nsid  name  type      stage  
----------  -----  ----  -----  ----  ----  ----------  ----  ----  ----  --------  -----  
0xae002000  11     root  root   0666  0     2097152     0     2     bar   pi-base   -      
0xae002001  10     root  root   0666  0     5259264     0     2     bar   pi-treex  -      
0xa2002000  9      root  root   0666  0     50032       0     2     bar   si-meta   -      
0xae002100  3      root  root   0666  0     1073741824  0     2     bar   pi-stage  0x100  
0xa2002100  5      root  root   0666  0     1073741824  0     2     bar   si-stage  0x100  

Transferred  50% of data in 3.7s.
Transferred 100% of data in 3.7s.

Successfully backed up 5 Aerospike database segments.
[root@test-1 asmtbackup]#

Was this article helpful?
0 out of 0 found this helpful