Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter number_dedicated_hot_spare for raid 1 #129

Open
jjeganathan opened this issue Jun 25, 2020 · 1 comment
Open

Parameter number_dedicated_hot_spare for raid 1 #129

jjeganathan opened this issue Jun 25, 2020 · 1 comment
Labels
area/idrac idrac modules/roles type/feature-request New feature or request

Comments

@jjeganathan
Copy link

Hello,

I have 3 disks of 278.875GB on location 12/13/14 and all the others locations are used with other disks (1.1TB)
I'm trying to initialize a virtual disk with two of them and use the third one as a dedicated hot spare

volumes:
  - name: "System"
    drives:
      id: ["Disk.Bay.12:Enclosure.Internal.0-1:RAID.Integrated.1-1",
           "Disk.Bay.13:Enclosure.Internal.0-1:RAID.Integrated.1-1"]
      span_length: 2
      volume_type: "RAID 1"
      number_dedicated_hot_spare: 1
      capacity: "278.875"

The virtual disk is created but the hot spare is not configured to the virtual disk.
Can you please explain me how to configure the hot spare for this virtual disk ?

Thanks,
Jeya

@jagadeeshnv jagadeeshnv assigned felixs88 and unassigned felixs88 Jun 26, 2020
@jagadeeshnv jagadeeshnv added type/bug Something isn't working area/idrac idrac modules/roles labels Jul 28, 2020
@ThierryBesancon
Copy link

ThierryBesancon commented Aug 13, 2020

Hello

I don't have so many disks but here is my recipe for OMAM 2.0.14. This is a DELL server with 4 disks. I build a RAID1 virtual disk with disks 0 and 1. Then my present post will add disk 2 as a dedicated hotspare and disk3 as a global hotspare.

To build the virtual disk:

- dellemc_idrac_storage_volume:
    idrac_ip:			"{{ idrac.ipaddr }}"
    idrac_user:			"{{ idrac.factory_user }}"
    idrac_password:		"{{ idrac.factory_password }}"
    raid_reset_config:		"True"
    raid_init_operation:	"Fast"
    controller_id:		"RAID.Integrated.1-1"
    state:			"create"
    volumes:			"{{ idrac.volumes }}"
  register: command_raid_create

with volumes defined in the host_vars for this server:

...
    volumes:
      - name: "DEMO"
        span_length:  2
        volume_type: "RAID 1"
        drives:
          id:
            - "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1"
            - "Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1"
...

To add a disk as a dedicated hot spare disk, documentation in OMAM says to give a volume_id to dedicate the disk to:

- name: iDRAC add dedicated hostspare disk
  idrac_redfish_storage_controller:
    baseuri:                    "{{ idrac.ipaddr }}"
    username:                   "{{ idrac.factory_user }}"
    password:                   "{{ idrac.factory_password }}"
    command:                    "AssignSpare"
    target:                     "Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1"
    volume_id:                  "Disk.Virtual.0:RAID.Integrated.1-1"
  register: command_raid_hotspare

To add a disk as a global hot spare disk, documentation in OMAM says not to give a volume_id:

- name: iDRAC add global hostspare disk
  idrac_redfish_storage_controller:
    baseuri:                    "{{ idrac.ipaddr }}"
    username:                   "{{ idrac.factory_user }}"
    password:                   "{{ idrac.factory_password }}"
    command:                    "AssignSpare"
    target:                     "Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1"
  register: command_raid_hotspare

Works like a charm. My $0.02...

Thierry

@rajshekarp87 rajshekarp87 added type/feature-request New feature or request and removed type/bug Something isn't working labels Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idrac idrac modules/roles type/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants