Deleting the orphaned snapshots
The recovery points that consist only snapshot copies are not imported during the upgrade process and these orphaned snapshots stay on the compute storage.
You can delete these snapshots using the delete_snapshots.py script.
To delete the orphaned snapshots
- Copy
nbos-cfg-scriptspackage to the old NBOSVM and extract the files.cp <imagelocation>/nbos-cfg-scripts.tar.gz /home/stack
tar -xvf /home/stack/nbos-cfg-scripts.tar
- Go to the following directory.
cd /home/stack/nbos-cfg-scripts/
- Activate the virtual environment of the nbosjm.
source /home/stack/myansible/bin/activate
- Run the
delete_snapshots.pyscript to delete the recovery points that consist only the snapshot copies.python3 delete_snapshots.py delete
- Run the following command to get the status of the snapshot deletion.
python3 delete_snapshots.py get_delete_status