Bug 2080870

Summary: blivet.errors.PartitioningError: Failed to add the device:requested size exceeds maximum allowed
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: blivet-guiAssignee: Vojtech Trefny <vtrefny>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: anaconda-maint-list, jonathan, kellin, mkolman, vanmeeuwen+fedora, vponcova, vtrefny, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4ad731386a71afdb23c549357a8c8e695f0a151d65e683359e00ae8e4726a095;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dbus.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
why I unnable create 8Tb RAID0 from two nvme ?
none
why I unnable create 8Tb BTRFS volume from two nvme ?
none
screencast none

Description Mikhail 2022-05-02 08:31:19 UTC
Description of problem:
Try to create software RAID from blivet-gui

Version-Release number of selected component:
anaconda-core-37.6-1.fc37.x86_64

The following was filed automatically by anaconda:
anaconda 37.6 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.10/site-packages/blivetgui/osinstall.py", line 234, in _reraise_exception
    raise type(exception)(message + str(exception) + "\n" + traceback)
  File "/usr/lib/python3.10/site-packages/blivetgui/blivetgui.py", line 509, in add_device
    self._reraise_exception(result.exception, result.traceback, message,
blivet.errors.PartitioningError: Failed to add the device:requested size exceeds maximum allowed
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/blivetgui/blivet_utils.py", line 1323, in add_device
    blivet.partitioning.do_partitioning(self.storage)
  File "/usr/lib/python3.10/site-packages/blivet/partitioning.py", line 618, in do_partitioning
    allocate_partitions(storage, disks, partitions, free, boot_disk=boot_disk)
  File "/usr/lib/python3.10/site-packages/blivet/partitioning.py", line 1007, in allocate_partitions
    partition = add_partition(disklabel, free, part_type, aligned_size,
  File "/usr/lib/python3.10/site-packages/blivet/partitioning.py", line 463, in add_partition
    raise PartitioningError(_("requested size exceeds maximum allowed"))
blivet.errors.PartitioningError: requested size exceeds maximum allowed


Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-rawh-20220429-n-0 rd.live.image rd.live.check quiet
dnf.librepo.log: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         5.18.0-0.rc4.20220428git8f4dd16603ce834.36.fc37.x86_64
other involved packages: blivet-gui-runtime-2.3.0-5.fc37.noarch
product:        Fedora
release:        Fedora release 37 (Rawhide)
release_type:   pre-release
type:           anaconda
version:        rawhide

Comment 1 Mikhail 2022-05-02 08:31:23 UTC
Created attachment 1876434 [details]
File: anaconda-tb

Comment 2 Mikhail 2022-05-02 08:31:25 UTC
Created attachment 1876435 [details]
File: anaconda.log

Comment 3 Mikhail 2022-05-02 08:31:26 UTC
Created attachment 1876436 [details]
File: dbus.log

Comment 4 Mikhail 2022-05-02 08:31:27 UTC
Created attachment 1876437 [details]
File: environ

Comment 5 Mikhail 2022-05-02 08:31:31 UTC
Created attachment 1876438 [details]
File: journalctl

Comment 6 Mikhail 2022-05-02 08:31:32 UTC
Created attachment 1876439 [details]
File: lsblk_output

Comment 7 Mikhail 2022-05-02 08:31:33 UTC
Created attachment 1876440 [details]
File: nmcli_dev_list

Comment 8 Mikhail 2022-05-02 08:31:35 UTC
Created attachment 1876441 [details]
File: os_info

Comment 9 Mikhail 2022-05-02 08:31:36 UTC
Created attachment 1876442 [details]
File: program.log

Comment 10 Mikhail 2022-05-02 08:31:38 UTC
Created attachment 1876443 [details]
File: storage.log

Comment 11 Mikhail 2022-05-02 08:37:57 UTC
Created attachment 1876444 [details]
why I unnable create 8Tb RAID0 from two nvme ?

Comment 12 Mikhail 2022-05-02 08:43:08 UTC
Similar problem has been detected:

Try to create software RAID from blivet-gui

addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-rawh-20220429-n-0 rd.live.image rd.live.check quiet
dnf.librepo.log: 
hashmarkername: anaconda
kernel:         5.18.0-0.rc4.20220428git8f4dd16603ce834.36.fc37.x86_64
other involved packages: blivet-gui-runtime-2.3.0-5.fc37.noarch
package:        anaconda-core-37.6-1.fc37.x86_64
packaging.log:  
product:        Fedora
reason:         blivet.errors.PartitioningError: Failed to add the device:requested size exceeds maximum allowed
release:        Fedora release 37 (Rawhide)
release_type:   pre-release
version:        rawhide

Comment 13 Mikhail 2022-05-02 08:47:08 UTC
Similar problem has been detected:

Try to create btrfs volume from blivet-gui

addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-rawh-20220429-n-0 rd.live.image rd.live.check quiet
dnf.librepo.log: 
hashmarkername: anaconda
kernel:         5.18.0-0.rc4.20220428git8f4dd16603ce834.36.fc37.x86_64
other involved packages: blivet-gui-runtime-2.3.0-5.fc37.noarch
package:        anaconda-core-37.6-1.fc37.x86_64
packaging.log:  
product:        Fedora
reason:         blivet.errors.PartitioningError: Failed to add the device:requested size exceeds maximum allowed
release:        Fedora release 37 (Rawhide)
release_type:   pre-release
version:        rawhide

Comment 14 Mikhail 2022-05-02 08:48:00 UTC
Created attachment 1876445 [details]
why I unnable create 8Tb BTRFS volume from two nvme ?

Comment 15 Vojtech Trefny 2022-05-02 08:58:17 UTC
You have an MSDOS partition table on the disks which can address only up to 2 TiB of space, blivet-gui shouldn't allow you to create a new partition past the 2 TiB mark (a probably should also show a warning when you try to use MSDOS on disk bigger than 2 TiB). If you want to use the entire disk you need to use the GPT partition table.

Comment 16 Mikhail 2022-05-02 09:39:53 UTC
Created attachment 1876447 [details]
screencast

(In reply to Vojtech Trefny from comment #15)
> You have an MSDOS partition table on the disks which can address only up to
> 2 TiB of space, blivet-gui shouldn't allow you to create a new partition
> past the 2 TiB mark (a probably should also show a warning when you try to
> use MSDOS on disk bigger than 2 TiB). If you want to use the entire disk you
> need to use the GPT partition table.

At first I wanted to create a RAID using the BIOS (RAIDXpert2).
But booting into Linux, I realized that Linux does not see the volume created in this way.
A quick googling made it clear AMD RAID is not supported by the kernel. And it looks like it will never be supported out of the box. It was decided to create a software raid.
Therefore, I booted from a bootable flash drive and deleted the rubbish that RAIDXpert2 apparently created in blivet-gui. There were no warnings when I started creating new RAID volume using blivet-gui.
As it turned out later, if I deleting the rubbish partitions via gnome-disks, then blivet-gui starts working correctly.
You can see it all in my video.

Comment 17 Ben Cotton 2022-08-09 13:38:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.