Ticket #790 (assigned defect)

Opened 12 months ago

Last modified 3 weeks ago

mondorestore says a partition is occupied

Reported by: bruno Owned by: bruno
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

comment:1 Changed 12 months ago by bruno

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 Changed 12 months ago by bruno

  • Priority changed from normal to high
  • Status changed from new to assigned
  • Severity changed from normal to critical

comment:3 Changed 12 months ago by bruno

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 Changed 11 months ago by bruno

  • Summary changed from mondorestore syas a partition is occupied to mondorestore says a partition is occupied

comment:5 Changed 11 months ago by bruno

  • Priority changed from high to normal
  • Severity changed from critical to 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 Changed 11 months ago by bruno

  • Milestone changed from 3.2.2 to 3.2.3

comment:7 Changed 3 weeks ago by bruno

  • Milestone changed from 3.3.0 to 3.3.1
Note: See TracTickets for help on using tickets.