Article original Publié le : 18 aout 2022 Mise à jour le : – |
Création de raid disk sur un PowerEdge R740xd
Se connecter en SSH sur l’iDrac
1 |
$ ssh user@ip_idrac |
1 2 3 |
Warning: Permanently added '10.xx.xx.xx' (ECDSA) to the list of known hosts. Password: racadm>> |
Verifier la présence de volume virtual
1 |
raidracadm>>storage get vdisks |
1 2 3 4 |
ERROR: STOR0104 : No virtual disks are displayed. Check if the server has power, physical disks are available, and virtual disks are created. racadm>> |
Vérifier le nombre de disques
1 |
racadm>>storage get pdisks |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.6:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.7:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.8:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.9:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.10:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.11:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.12:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.13:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.16:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.17:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.18:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.19:Enclosure.Internal.0-1:RAID.Integrated.1-1 |
Ajouter quelques arguments pour avoir plus de détail sur les disques
1 |
racadm raid get pdisks -o -p DeviceDescription,State,Size |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 0 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 1 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 2 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 3 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 4 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 5 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.6:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 6 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.7:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 7 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.8:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 8 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.9:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 9 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.10:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 10 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.11:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 11 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.12:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 12 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 558.375 GB Disk.Bay.13:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 13 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 558.375 GB Disk.Bay.16:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 16 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.17:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 17 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.18:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 18 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB Disk.Bay.19:Enclosure.Internal.0-1:RAID.Integrated.1-1 DeviceDescription = Disk 19 in Backplane 1 of Integrated RAID Controller 1 State = Ready Size = 7451.500 GB |
Checker les controlleurs
1 |
racadm>>storage get controllers |
1 2 3 4 |
RAID.Integrated.1-1 AHCI.Embedded.1-1 AHCI.Embedded.2-1 racadm>> |
Créer le raid 1 avec 2 disques (disks 12 et 13)
1 |
racadm>>storage createvd:RAID.Integrated.1-1 -rl r1 -wp wb -rp ra -name SYS -pdkey:Disk.Bay.12:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.13:Enclosure.Internal.0-1:RAID.Integrated.1-1 |
1 2 3 4 5 6 7 8 9 |
STOR094 : The storage configuration operation is successfully completed and the change is in pending state. To apply the configuration operation immediately, create a configuration job using the --realtime option. To apply the configuration after restarting the server, create a configuration job using the -r option. To create the necessary real-time and restart jobs, run the jobqueue command. For more information about jobqueue command, run the 'racadm help jobqueue' command. |
Créer le raid 6 avec les disques restants
1 |
racadm>>storage createvd:RAID.Integrated.1-1 -rl r6 -wp wb -rp ra -name DATA -pdkey:Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.6:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.7:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.8:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.9:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.10:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.11:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.16:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.17:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.18:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.19:Enclosure.Internal.0-1:RAID.Integrated.1-1 |
1 2 3 4 5 6 7 8 9 |
STOR094 : The storage configuration operation is successfully completed and the change is in pending state. To apply the configuration operation immediately, create a configuration job using the --realtime option. To apply the configuration after restarting the server, create a configuration job using the -r option. To create the necessary real-time and restart jobs, run the jobqueue command. For more information about jobqueue command, run the 'racadm help jobqueue' command. |
Appliquer les jobs
1 |
racadm>>jobqueue create RAID.Integrated.1-1 --realtime |
1 2 3 |
RAC1024: Successfully scheduled a job. Verify the job status using "racadm jobqueue view -i JID_xxxxx" command. Commit JID = JID_594743583350 |
Vérifier le journal en ligne
1 |
racadm>>jobqueue view -i JID_594743583350 |
1 2 3 4 5 6 |
---------------------------- JOB ------------------------- [Job ID=JID_594743583350] Job Name=Configure: RAID.Integrated.1-1 Status=Running Scheduled Start Time=[Now] Expiration Time=[Not Applicable] Actual Start Time=[Tue, 02 Aug 2022 16:05:59] Actual Completion Time=[Not Applicable] Message=[PR20: Job in progress.] Percent Complete=[50] ---------------------------------------------------------- racadm>> |
Source: