Monday, September 25, 2023

How to remove the hard disk (pdisk) in aix?

How to remove the hard disk (pdisk) in aix?


The below steps are clearly explained how to remove the hard disk (pdisk) in aix.

Please follow the below steps to replace the hdisk (pdisk) with the following steps

$ oem_setup_env
smitty sasdam
=> Delete a SAS Disk Array
=> sissasO
=>hdisk4
Confirm that we want to delete the array, you should get a message stating something like
hdisk4 deleted
pdisk4 Defined
ESC÷O or F10 (this may change according to your keyboard) to exit smitty

# diag
=> enter
=> Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.)
= Hot Plug Task
=> SCSI and SCSI RAID Hot Plug Manager
> Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device
=> Select the slot of pdisk4
=> enter

You should have a message like “Running rmdev on pdisk4” followed by the following
The LED should be in the Remove state for the selected device.
YOU may now remove or replace the device.
Use ‘Enter’ to indicate you are finished.

Now it’s time to remove the failed disk and to insert the new disk, then return to the previous session and bit enter as per the reported message
You will be back to the previous menu, but this rune instead of pdisk4 you will have [populated]
ESC+3 or F3 (this may change according to your keyboard) to return to the previous menu

=> Configure Adde/Replaced Devices
You’ll get a ‘processing data” and then it will return to menu
ESC+O or 110 to exit diag

Now we have to recreate the array
# smitty sasdam
=> Create a SAS Disk Array
=> sissasO
=> 0
=> 256 Kb (recommended)
> pdisk4
Confirm that we want to create the new array
ESC+O or 110 (this way change according to your keyboard) to exit smitty.

see, the disk is successfully replaced, Now you can go ahead for your further steps based on your setup.