'Do AWS Snapshots made in a particular directory always need to be restored in the same directory?
Do AWS Snapshots made in a particular directory always need to be restored in the same directory again? (therefore making it impossible to view and verify a snapshot on the same EC2 device from which the snapshot was generated?). If not, how would I view a volume-snapshot from an EC2 instance, on that same instance, but in a different directory?
I created a snapshot of
/my/path
I then created a new volume from the snapshot and tried mounting it to:
/my/new-path
The files never show up. Sometimes there are duplicate UUID for the mount paths for which I've tried like:
sudo xfs_admin -U generate /dev/sdb
to make new UUIDs since the UUIDs are the same, but it doesnt matter. The files still dont' show up.
I can explicitly mount:
sudo mount /dev/sda /my/path
sudo mount /dev/sdb /my/newpath
And if I mount the snapshot volume to /dev/sdb on the website, the files still appear in /my/path. It's as if #1. I can't view a snapshot on the same EC2 instance that came from that instance. #2. I can't change the path from which I mount a snapshot to on an EC2 instance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
