Opened 8 years ago

Last modified 7 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:


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 Bruno Cornec, 8 years ago

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

comment:2 by Bruno Cornec, 8 years ago

Priority: normalhigh
Severity: normalcritical
Status: newassigned

comment:3 by Bruno Cornec, 8 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 Bruno Cornec, 8 years ago

Summary: mondorestore syas a partition is occupiedmondorestore says a partition is occupied

comment:5 by Bruno Cornec, 8 years ago

Priority: highnormal
Severity: criticalmajor

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 Bruno Cornec, 8 years ago


comment:7 by Bruno Cornec, 7 years ago

Note: See TracTickets for help on using tickets.