Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-137262

[RHEL10.2 role ] "volume 'sdd1' cannot be resized from 2.02 GiB to 2 GiB: new size will not yield an aligned partition

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • rhel-system-roles
    • None
    • None
    • None
    • rhel-system-roles
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

       

       

      TASK [rhel-system-roles.storage : Manage the pools and volumes to match the specified state] **********************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:85
      fatal: [localhost]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "volume 'sdd1' cannot be resized from 2.02 GiB to 2 GiB: new size will not yield an aligned partition", "packages": [], "pools": [], "volumes": []}TASK [rhel-system-roles.storage : Failed message] *****************************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:126
      fatal: [localhost]: FAILED! => {"changed": false, "msg": {"actions": [], "changed": false, "crypts": [], "failed": true, "invocation": {"module_args": {"disklabel_type": "msdos", "diskvolume_mkfs_option_map": {}, "packages_only": false, "pool_defaults": {"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "grow_to_fill": false, "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "shared": false, "state": "present", "type": "lvm", "volumes": []}, "pools": [{"disks": ["sdd"], "encryption": false, "encryption_cipher": null, "encryption_clevis_pin": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "encryption_tang_thumbprint": null, "encryption_tang_url": null, "grow_to_fill": false, "name": "sdd", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "shared": false, "state": "present", "type": "partition", "volumes": [{"cache_devices": [], "cache_mode": null, "cache_size": 0, "cached": false, "compression": null, "deduplication": null, "disks": ["sdd"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_group": null, "mount_mode": null, "mount_options": "defaults", "mount_passno": 0, "mount_point": null, "mount_user": null, "name": "1", "part_type": null, "raid_chunk_size": null, "raid_device_count": null, "raid_disks": [], "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "raid_stripe_size": null, "size": "2g", "state": "present", "thin": false, "thin_pool_name": null, "thin_pool_size": null, "type": "partition", "vdo_pool_size": null}, {"cache_devices": [], "cache_mode": null, "cache_size": null, "cached": null, "compression": null, "deduplication": null, "encryption": null, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": null, "fs_label": null, "fs_type": null, "mount_group": null, "mount_mode": null, "mount_options": null, "mount_point": null, "mount_user": null, "name": "2", "part_type": "extended", "raid_disks": [], "raid_level": null, "raid_stripe_size": null, "size": "3g", "state": "present", "thin": false, "thin_pool_name": null, "thin_pool_size": null, "type": "partition", "vdo_pool_size": null}, {"cache_devices": [], "cache_mode": null, "cache_size": null, "cached": null, "compression": null, "deduplication": null, "encryption": null, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": null, "fs_label": null, "fs_type": "ext4", "mount_group": null, "mount_mode": null, "mount_options": null, "mount_point": null, "mount_user": null, "name": "5", "part_type": "logical", "raid_disks": [], "raid_level": null, "raid_stripe_size": null, "size": "1g", "state": "present", "thin": false, "thin_pool_name": null, "thin_pool_size": null, "type": "partition", "vdo_pool_size": null}]}], "safe_mode": false, "use_partitions": null, "uses_kmod_kvdo": true, "volume_defaults": {"cache_devices": [], "cache_mode": null, "cache_size": 0, "cached": false, "compression": null, "deduplication": null, "disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "raid_stripe_size": null, "size": 0, "state": "present", "thin": null, "thin_pool_name": null, "thin_pool_size": null, "type": "lvm", "vdo_pool_size": null}, "volumes": []}}, "leaves": [], "mounts": [], "msg": "volume 'sdd1' cannot be resized from 2.02 GiB to 2 GiB: new size will not yield an aligned partition", "packages": [], "pools": [], "volumes": []}}
       

      [root@storageqe-24 roles]# ansible-playbook -vv -i /home/host tests_create_multiple_partitions_dos_scsi_generated.yml^C
      [root@storageqe-24 roles]# cat /home/host 
      localhost  ansible_connection=local
      [root@storageqe-24 roles]

       

       

      5.14.0-651.el9.x86_64

      rhel-system-roles-1.114.0-0.1.el9.noarch

       

       

       

      [root@storageqe-24 roles]# lsblk
      NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
      sda                           8:0    0   5.5T  0 disk 
      └─sda2                        8:2    0     2G  0 part /mnt/test2
      sdb                           8:16   0   5.5T  0 disk 
      ├─sdb1                        8:17   0     1M  0 part 
      ├─sdb2                        8:18   0     1G  0 part /boot
      └─sdb3                        8:19   0   5.5T  0 part 
        ├─rhel_storageqe--24-root 253:0    0    70G  0 lvm  /
        ├─rhel_storageqe--24-swap 253:1    0  31.4G  0 lvm  [SWAP]
        └─rhel_storageqe--24-home 253:2    0   5.4T  0 lvm  /home
      sdc                           8:32   0   5.5T  0 disk 
      └─sdc2                        8:34   0 527.9M  0 part [SWAP]
      sdd                           8:48   0   5.5T  0 disk 
      ├─sdd1                        8:49   0     2G  0 part 
      ├─sdd2                        8:50   0     1K  0 part 
      └─sdd5                        8:53   0     1G  0 part 
      sde                           8:64   0   5.5T  0 disk 
      sdf                           8:80   0   5.5T  0 disk 
      sdg                           8:96   0   5.5T  0 disk 
      sdh                           8:112  0   5.5T  0 disk 
      sdi                           8:128  0   5.5T  0 disk 
      sdj                           8:144  0   5.5T  0 disk 
      sdk                           8:160  0   5.5T  0 disk 
      sdl                           8:176  0   5.5T  0 disk 
      [root@storageqe-24 roles]

       

       

              rmeggins@redhat.com Richard Megginson
              guazhang@redhat.com Guangwu Zhang
              Richard Megginson Richard Megginson
              Guangwu Zhang Guangwu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: