Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] ps-toolkit-migrate-backup.sh (4.0 RC2 Nov 1)

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] ps-toolkit-migrate-backup.sh (4.0 RC2 Nov 1)


Chronological Thread 
  • From: Dan Doyle <>
  • To: Michael Petry <>
  • Cc: perfsonar-user <>
  • Subject: Re: [perfsonar-user] ps-toolkit-migrate-backup.sh (4.0 RC2 Nov 1)
  • Date: Thu, 17 Nov 2016 10:33:16 -0500
  • Ironport-phdr: 9a23:kIEjwRzMcmra1zbXCy+O+j09IxM/srCxBDY+r6Qd2+wQIJqq85mqBkHD//Il1AaPBtSArasawLSG+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFGiTanfL9/LRq6oATSu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8rxmQwH0higZKzE58XnXis1ug6JdvBKhvAF0z4rNbI2IKPZyYqbRcNUHTmRDQ8lRTTRMDZ+zYIUSD+QOP+hWoYrzp1UQqhWzHgasCP/qyjJShn/6wbM23uI8Gg/GxgwgGNcOvWzaotrvMqcZTO67zK7IzDXHcfxdxDDw55XSfRAlvP6MWrJxcc7PxkQ0GAPFilKQppf/MDOR0OQNtHSU4/BhVeKykWIotRx+oiW2y8oql4LHiIUVylXe+iV4xoY4PdK4SE9nYd6kDZtfrDuWOJdxQsMnRWxjpSU0yqUetJKmcyUHzI4rywPeZvGHaYSE/xzuWemLLTp5gH9pYK+zihm2/ES61+HxV9W43ExXoidFltTArHAA2hrO4cadUPR95F2u2TOX2gDT9O5EJUc0mLLeK5E7w74wkocfvV3FHiDolkT6lqCWdl8i+uiv9+vreLTmpoKGO4Bqlw7+L7wims25AesmLggDR3WX9Ou42bH54EH0QbVHgucrnqTXv53WP8UWq6qhDw9QyIkj6hK/Dzm80NQfmHkKNE9KdwiDj4f0PFHPIPT4AumkjlSjlDdrwOvJMaflApXLKXjMjK3tfbdg60JG1gU80M1f64pOCr4dOPLzRlPxtNvAAx8hLQO02ejnCM561oMYQ22PGLaVML7JsVCW/OIiOO2MZI4OuDbhMPgp+eTijX4/mV8BY6apx50XZ26kHvh4OUmWf2fjgspSWVsN6y8/R+zjhVnKaTNPfWf6C7ox+isqIJ+jB4yFS4yw1u+vxiC+S7FfYChqDUGIHD+8e4yAV/AdbC+6LctmmDUAU7+qDY48kxyiqVmpmPJcMuPI93hA5trY399v6riWzElq+A==

Hi Michael,

Thanks for the feedback - seems like these would be some good quality of life improvements. I went ahead and created this issue to track it: https://github.com/perfsonar/toolkit/issues/170. Feel free to add anything else you think might be of value.

Dan Doyle
GlobalNOC Software Developer
1-812-856-3892

On Nov 16, 2016, at 11:31 AM, Michael Petry <> wrote:

I've tried using the backup and restore script in 
/usr/lib/perfsonar/scripts

with limited success.  Here are a few things:

1) If you do a backup (with data "-d") of a clean system (no tests configured) you get an error

root@oit-82-33 cassandra]#  /usr/lib/perfsonar/scripts/ps-toolkit-migrate-backup.sh -d ~petry/backuptest
Backing-up users...[SUCCESS]
Backing-up groups...[SUCCESS]
Backing-up passwords...[SUCCESS]
Backing up administrative users...[SUCCESS]
Backing-up toolkit configuration...[SUCCESS]
Backing-up bwctl-server configuration...[SUCCESS]
Backing-up owamp-server configuration...[SUCCESS]
Backing-up pScheduler configuration...[SUCCESS]
Backing-up NTP configuration...[SUCCESS]

Backing-up cassandra data...Unable to snapshot cassandra database


Digging into the bash script, it fails on doing the node tool command.
Its a corner case, but annoying.  (Once there is data, there is another problem  see 2.)

Notetool on clean system
---------------------------------

nodetool snapshot esmond -t esmond_snapshot
Requested creating snapshot for: esmond 
Exception in thread "main" java.io.IOException: Keyspace esmond does not exist
at org.apache.cassandra.service.StorageService.getValidKeyspace(StorageService.java:2298)
.
.
.


2) do the same backup on a system with data.  Do it a second time and you'll get.
the script should probably clean up after itself and do a "nodetool clearsnapshot"

[root@ps-10g-sdmz scripts]# /usr/lib/perfsonar/scripts/ps-toolkit-migrate-backup.sh -d ~petry/backuptest
Backing-up users...[SUCCESS]
Backing-up groups...[SUCCESS]
Backing-up passwords...[SUCCESS]
Backing up administrative users...[SUCCESS]
Backing-up toolkit configuration...[SUCCESS]
Backing-up bwctl-server configuration...[SUCCESS]
Backing-up owamp-server configuration...[SUCCESS]
Backing-up pScheduler configuration...[SUCCESS]
Backing-up NTP configuration...[SUCCESS]
Backing-up cassandra data...Unable to snapshot cassandra database
[root@ps-10g-sdmz scripts]# nodetool snapshot esmond -t esmond_snapshot
Requested creating snapshot for: esmond 

Exception in thread "main" java.io.IOException: Snapshot esmond_snapshot already exists.
.
.

.


Mike


Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.19.

Top of Page