Skip to Content.
Sympa Menu

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

Subject: perfSONAR User Q&A and Other Discussion

List archive

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


Chronological Thread 
  • From: Michael Petry <>
  • To: perfsonar-user <>
  • Subject: [perfsonar-user] ps-toolkit-migrate-backup.sh (4.0 RC2 Nov 1)
  • Date: Wed, 16 Nov 2016 11:31:13 -0500
  • Ironport-phdr: 9a23:KVSq8h8Mx38LI/9uRHKM819IXTAuvvDOBiVQ1KB41ekcTK2v8tzYMVDF4r011RmSDN6dsq4P27uempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwtFiCCgbb59Ixm7rgHcvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6apgVR3mhzodNzMh8G/ZhM9+gr9Frh29vBFw2ZLYbZuPOfZiYq/Qf9UXTndBUMZLUCxBB5uxYYwOD+UdPeZXtZfyp18TphWkGwasGPnvyz9VjXLxxa01zfghERvG3QE7AtIOtW/bo8nvOKgMTO+10bDFwDPeZP1VwTfw8JbEfxE9rfyOWL9wf8ncxlIzGw7AgVictZDpMy6Q2+sRr2SU9O9tWOexh2I5tQ58pCWkyN02hYnTnI0Vz0jJ9SVnz4YxIt21UEt7bsSlEJtUri2aNpd2Tt87T2Bnpio21KMJtYS0fCgNz5QnyBrfZOKdf4eU5RLjUf6dITZ+hH17ZLKynwi+/Em8xuD+U8S03lVHoTFZntTJuX0BywDf5tWCR/Rh4kuuwjOC2gXN5u1aP084ja/bJIQgwr40mJoTq0PDHirulUXukqCWal8k++iz5uT6Z7XpvYOTO5VqhQ7jL6Qigta/DvggMggSQ2ib/vyx1KX98k3jTrVKlfo2kq/Dv5DAPMgbu7W5DBFP0os47xa/Diym0MgDnXUZNl5FeRSHj5T3NFHUJvD3E+u/j0q2nDh12v/GI+6pPpKYNnXZnqzme79nrlNHxRB7mchS/ZxPDbcIOrfuQULrnN3eEhIjNQGomaDqBMgrha0EXmfaJ66SMKrftRew6/41MqHYfIIJoifVNv0v7LjjgWJvygxVRrWgwZZCMCPwJf9hOUjMOXc=

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




Archive powered by MHonArc 2.6.19.

Top of Page