Opened 10 years ago
Last modified 9 years ago
#790 assigned defect
mondorestore says a partition is occupied
| Reported by: | Bruno Cornec | Owned by: | Bruno Cornec |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3.1 |
| Component: | mondo | Version: | 3.2.1 |
| Severity: | major | Keywords: | |
| Cc: |
Description
When restoring, mondorestore can say that a partition is occupied and stop preparing the disk.
This can happen when the restore is done on an MBR disk whereas the original was GPT.
Change History (7)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Priority: | normal → high |
|---|---|
| Severity: | normal → critical |
| Status: | new → assigned |
comment:3 by , 10 years ago
This is a tough topic in fact.
The only clear case is when on the master the disk was GPT and had more than 5 primary partitions; It can only be restored on a GPT disk.
For the rest, the user may want to change to disk type from MBR to GPT or vice-versa.
So in addition to keeping all info, we should keep track of the one which can't be changed (such as the previous example) and permit change for the others.
It's as a consequence a big change :-(
I'll see to try to implement just the use case mentioned above for the next version.
comment:4 by , 10 years ago
| Summary: | mondorestore syas a partition is occupied → mondorestore says a partition is occupied |
|---|
comment:5 by , 10 years ago
| Priority: | high → normal |
|---|---|
| Severity: | critical → major |
A workaround is to force the format of the target disk to be GPT with parted to avoid restoration issue if original was GPT as well:
parted -s /dev/sda mklabel gpt
comment:6 by , 10 years ago
| Milestone: | 3.2.2 → 3.2.3 |
|---|
comment:7 by , 9 years ago
| Milestone: | 3.3.0 → 3.3.1 |
|---|

mondoarchive should keep track of disk partitions format and mondorestore should use that info to force the restoration of disks, where it makes sense.