gns3-server
gns3-server copied to clipboard
Disk full condition can wipe out a project file
This is GNS3 2.2.34 (from the GNS3 PPA) on Ubuntu 18.04.6 LTS.
I ran out of disk space on the gns3 partition while I had one project open in the GUI. I switched to another project (hoping to delete one of the nodes there), but couldn't open the project because of the disk full condition. So I switched the GUI back to the first project.
The .gns3
, .gns3.backup
, and .gns3.tmp
files for the second project (that I tried to open and failed), are now all zero-length files.
I was able to recover the data on the project's Ubuntu nodes using the following procedure:
- Fix the disk full condition
- grep in the
qemu.log
files in the project'sqemu
directories to find the command lines that were used to start each node, and from this figure out whichhda_disk.qcow2
file corresponded to each node - Use the
GNS3/upload-image.py
script in https://github.com/BrentBaccala/NPDC to upload the qcow2 file to the GNS3 server as an image - Use the
GNS3/add-appliance.py
script (same repository) to create an appliance file using the uploaded image as its disk template - Import the appliance into the GNS3 GUI
- Clone the appliance as a node and boot it
The resulting nodes have a disk backed by the recovered disk image, which is itself backed by the original node's backing file, so make sure not to delete the original node's backing file.