[rear-users] GPT and rear

Ralph Roth rroth at suse.com
Fri Jun 26 09:26:58 CEST 2015


We had the same issue with SLES 11 SP3 and rear 1.16 - root cause is a
hybrid MBR

|Partition Table: *gpt_sync_mbr*|

which was caused by autoyast (imho a bug).

Details can be found @ https://github.com/rear/rear/issues/544

Best regards,
 Ralph

On 06/26/15 09:11, Michael Brookhuis wrote:
> Hi,
>
> I think this has been discussed once before, but cannot find anything and cannot recall the outcome.
>
> Customers needs GPT and also uses ReaR. The partition are created as documented:
> (parted) print all
> Model: VMware, VMware Virtual S (scsi)
> Disk /dev/sda: 64.4GB
> Sector size (logical/physical): 512B/512B
> Partition Table: *gpt_sync_mbr*
> Disk Flags:
>
> Number  Start   End     Size    File system  Name     Flags
>  1      1049kB  2155MB  2154MB               primary  bios_grub
>  2      2155MB  45.1GB  43.0GB               primary  boot, legacy_boot
>
>
> Model: Linux device-mapper (linear) (dm)
> Disk /dev/mapper/vg00-lvswap: 4295MB
> Sector size (logical/physical): 512B/512B
> Partition Table: loop
> Disk Flags:
>
> Number  Start  End     Size    File system     Flags
>  1      0.00B  4295MB  4295MB  linux-swap(v1)
>
>
> Model: Linux device-mapper (linear) (dm)
> Disk /dev/mapper/vg00-lvroot: 37.6GB
> Sector size (logical/physical): 512B/512B
> Partition Table: loop
> Disk Flags:
>
> Number  Start  End     Size    File system  Flags
>  1      0.00B  37.6GB  37.6GB  btrfs
>
> But when doing a rear recover this will fail:
> 2015-06-25 16:02:48 Including layout/prepare/default/54_generate_device_code.sh
> 2015-06-25 16:02:48 ERROR: Partition number '' of partition  is not a valid number.
> === Stack trace ===
> Trace 0: /usr/sbin/rear:249 main
> Trace 1: /usr/share/rear/lib/recover-workflow.sh:29 WORKFLOW_recover
> Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
> Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
> Trace 4: /usr/share/rear/layout/prepare/default/54_generate_device_code.sh:52 source
> Trace 5: /usr/share/rear/lib/layout-functions.sh:34 create_device
> Trace 6: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:52 create_disk
> Trace 7: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:188 create_partitions
> Trace 8: /usr/share/rear/lib/layout-functions.sh:327 get_partition_number
> Trace 9: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError
> Message: Partition number '' of partition  is not a valid number.
> ===================
> /usr/share/rear/lib/layout-functions.sh: line 330: ((: <= 128 : syntax error: operand expected (error token is "<= 128 ")
> 2015-06-25 16:02:48 ERROR: Partition  is numbered ''. More than 128 partitions is not supported.
> === Stack trace ===
> Trace 0: /usr/sbin/rear:249 main
> Trace 1: /usr/share/rear/lib/recover-workflow.sh:29 WORKFLOW_recover
> Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
> Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
> Trace 4: /usr/share/rear/layout/prepare/default/54_generate_device_code.sh:52 source
> Trace 5: /usr/share/rear/lib/layout-functions.sh:34 create_device
> Trace 6: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:52 create_disk
> Trace 7: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:188 create_partitions
> Trace 8: /usr/share/rear/lib/layout-functions.sh:331 get_partition_number
> Trace 9: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError
> Message: Partition  is numbered ''. More than 128 partitions is not supported.
>
> Am I doing something wrong or is ReaR (116) not working with ptf. The OS is a fully patch SLES12.
>
> Thanks
> Michael


-- 
SUSE_Signatur-Embedded.html

Ralph Roth
Senior Solution Architect - SUSE Consulting Central
Location: Noerdlicher Zubringer 9-11, D-40470 Duesseldorf, Germany
E:  rroth at suse.com <mailto:rroth%40suse.com>

------------------------------------------------------------------------

Attachmate Group Germany GmbH, GF: Felix Imendörffer, Jane Smithard,
Dilip Upmanyu, Graham Norton, HRB 202401 (AG München)

------------------------------------------------------------------------


More information about the rear-users mailing list