The volume is still attached to this instance - you can check using the advanced interface.
Volumes can exist in three states when looking from inside an instance:
- Not attached
- Attached but not mounted
- Attached and mounted
will only display volumes that are in the third state - attached and mounted.
It might be that your volume is in the second state - attached but not mounted. You can use
to list all of the attached volumes, whether they are mounted or not.
If your volume appears in the
lsblk list without a mountpoint, all you need to do is run
sudo mount /dev/vdX [mountpoint]
where [mountpoint] is the directory where you want to mount your volume.
All data that was in the volume will still be in the volume, even if it has been completely detached from the instance. This means that you can detach and reattach volumes between instances to share data.
Volumes attached to instances are NOT automatically mounted on boot, so if you reboot your instance, prepare to have a moment’s shock when your files aren’t where you left them, then remember that you have to remount your volumes.