How Can I Deal with Disks of Which IDs Are "--" If I Continue to Replace Disks After Replacing System Subracks?
This section describes how to deal with a disk of which ID is "--" in scenarios where a system subrack is replaced first (components in it are removed and inserted into a new system subrack that is used as a spare part) and then a disk is replaced due to concurrent failures of the disk and its system subrack in a disk domain. The faulty disk in slot DAE010.0 is used as an example here.
- Log in to the CLI of the storage system.
- Run the change user_mode current_mode user_mode=developer command to go to the developer view.
- Run the show disk general |filterColumn include columnList=ID,Health\sStatus,Running\sStatus,Type,Role,Disk\sDomain\sID,Model,Serial\sNumber,Manufacture\sCapacity command to record the serial number of "--".
developer:/>show disk general |filterColumn include columnList=ID,Health\sStatus,Running\sStatus,Type,Role,Disk\sDomain\sID,Model,Serial\sNumber,Manufacture\sCapacity ID Health Status Running Status Type Role Disk Domain ID Model Serial Number Manufacture Capacity --------- ------------- -------------- ---- ----------- -------------- ---------------- -------------------- -------------------- DAE010.1 Normal Online SSD Member Disk 0 HSSD-D5222AM59A0 2102350SSK10G6001111 960.000GB ...... DAE010.24 Normal Online SSD Member Disk 0 HSSD-D5222AM59A0 HS000000000000428843 960.000GB -- Fault Offline SSD Member Disk 0 HSSD-D5222AM59A0 2102351KCL9WJ8000051 960.000GB
- Replace the faulty disk.
- After the new disk is powered on, run the show disk general |filterColumn include columnList=ID,Health\sStatus,Running\sStatus,Type,Role,Disk\sDomain\sID,Model,Serial\sNumber,Manufacture\sCapacity command to record the serial number of the slot in which the disk is replaced.
developer:/>show disk general |filterColumn include columnList=ID,Health\sStatus,Running\sStatus,Type,Role,Disk\sDomain\sID,Model,Serial\sNumber,Manufacture\sCapacity ID Health Status Running Status Type Role Disk Domain ID Model Serial Number Manufacture Capacity --------- ------------- -------------- ---- ----------- -------------- ---------------- -------------------- -------------------- DAE010.0 Normal Online SSD Free Disk -- HSSD-D5222AM59A0 2102350SSK10G6001099 960.000GB DAE010.1 Normal Online SSD Member Disk 0 HSSD-D5222AM59A0 2102350SSK10G6001111 960.000GB ...... DAE010.24 Normal Online SSD Member Disk 0 HSSD-D5222AM59A0 HS000000000000428843 960.000GB -- Fault Offline SSD Member Disk 0 HSSD-D5222AM59A0 2102351KCL9WJ8000051 960.000GB
- Run the poweroff disk disk_id command to power off the new disk.
developer:/>poweroff disk disk_id=DAE010.0 DANGER: You are about to power off the disk. This operation causes the disk to be unreadable and unwritable for services. If the disk domain where the disk resides is in the reconstruction or degradation state, this operation may cause reconstruction failure, service interruption, and data loss. Suggestion: Before performing this operation, check the disk properties and status of the disk domain that houses the disk to avoid reconstruction failure, service interruption and data loss. Back up data before powering off. Have you read danger alert message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
- Run the change disk sn command to modify the serial number of the disk. In the command output, src_sn indicates the serial number recorded in 3, and tgt_sn indicates the serial number recorded in 5.
developer:/>change disk sn src_sn=2102351KCL9WJ8000051 tgt_sn=2102350SSK10G6001099 DANGER: You are about to set the SN of a logical disk.This operation may cause system abnormalities. Suggestion: Note the following before and after the command execution: 1. Ensure that the command is to be executed by the R&D personnel. 2. The command will set the SN of a logical disk. The system may report the disk is in. 3. After executing this command, check whether the service system is running correctly. Have you read danger alert message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
- Run the poweron disk command to power on the new disk.
developer:/>poweron disk disk_id=DAE010.0 Command executed successfully
- Run the show disk general |filterColumn include columnList=ID,Health\sStatus,Running\sStatus,Type,Role,Disk\sDomain\sID,Model,Serial\sNumber,Manufacture\sCapacity command to check whether "--" is cleared and whether the status of the disk (corresponding to the slot) is Normal, Online, and Member Disk.
developer:/>show disk general |filterColumn include columnList=ID,Health\sStatus,Running\sStatus,Type,Role,Disk\sDomain\sID,Model,Serial\sNumber,Manufacture\sCapacity ID Health Status Running Status Type Role Disk Domain ID Model Serial Number Manufacture Capacity --------- ------------- -------------- ---- ----------- -------------- ---------------- -------------------- -------------------- DAE010.0 Normal Online SSD Member Disk 0 HSSD-D6223AL960N 2102350SSK10G6001099 960.000GB DAE010.1 Normal Online SSD Member Disk 0 HSSD-D5222AM59A0 2102350SSK10G6001111 960.000GB ...... DAE010.24 Normal Online SSD Member Disk 0 HSSD-D5222AM59A0 HS000000000000428843 960.000GB
- (Optional) If the result in 9 is abnormal, run the restore disk general disk_id command to restore member disks that are isolated by the system.
developer:/>restore disk general disk_id=DAE010.0 WARNING: You are about to restore an isolated member disk. This operation connects an identified risky disk (such as a failed or faulty disk) to the system, which may cause data loss. Suggestion: Before performing this operation, ensure that the isolated member disk needs to be recovered. Have you read warning message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
- (Optional) Run the show disk general |filterColumn include columnList=ID,Health\sStatus,Running\sStatus,Type,Role,Disk\sDomain\sID,Model,Serial\sNumber,Manufacture\sCapacity command to check whether the status of the disk (corresponding to the slot) is Normal, Online, and Member Disk. If no, contact Huawei technical support.