TThis topic describes how to restore the system partition to restore non-faulty data partitions and non-faulty disk data when the system RAID 0 group of the VCN is faulty or both system RAID 1 groups of two disks are faulty.
Prerequisites
The system RAID 0 group of the VCN is faulty or both system RAID 1 groups of two disks are faulty. To check whether the system RAID 0 group of the VCN is faulty or both system RAID 1 groups of two disks are faulty, perform the following operations:
- Log in to the OMU portal of the VCN server as the admin user.
- Choose Local Configuration > Local Disk.
- View information under RAID Groups.
- If the RAID group list is empty, the system RAID 0 group of the VCN is faulty or both system RAID 1 groups of two disks are faulty.
- If the RAID group list is not empty, the non-system RAID 0 group or system RAID 1 group is faulty.
Procedure
- Restore the system partition.
- Log in to the VCN server as the admin user and run the su - root command to switch to the root user.
- Run the /share/init.d/updatetime rebuildsysraid
type command.http://localhost:7890/pages/CEH0706J/03/CEH0706J/03/resources/public_sys-resources/icon-note.gif NOTE:
In the preceding command, type indicates the RAID group mode of the VCN. If the VCN disks work in non-RAID mode, set type to 0. If the VCN disks work in RAID 1 or RAID 5 mode, set type to 1.
- Run the reboot command to restart the server.
- After the server is restarted, if new disks are added, run the /share/init.d/updatetime rebuilddisk command. Otherwise, skip this step.
- Run the following commands to change
the owner and permission on some files and back up disk information:
nvr_code=`cat /home/ivs_omu/config/net.xml | grep NetElementID | uniq | awk -F'#' '{print $2}' | awk -F'<' '{print $1}'`
echo -n $nvr_code > /opt/.disk_mode
chown ivsoper:ivs /share/init.d/disktype /share/init.d/raid1table /share/init.d/tabledisk /opt/.disk_mode >/dev/null 2>&1
chmod 755 /share/init.d/disktype /share/init.d/raid1table /share/init.d/tabledisk /opt/.disk_mode >/dev/null 2>&1
/home/ivstool/bin/backupDiskInfo.sh
- Run the reboot command to restart the server.
- Check whether the system partition is
restored.
- Log in to the OMU portal of the VCN server as the admin user.
- Choose Local Configuration > Local Disk.
- View information under RAID Groups.
- If the RAID group list is empty, the system partition cannot be restored. In this case, please contact Huawei technical support engineers.
- If the RAID group list is not empty, the system partition is restored. You can proceed to the next steps.
- Restore data through data safe.
- Log in to the VCN server as the admin user and run the su - root command to switch to the root user.
- Run the cd /home/ivstool/bin Command.
- Run the ./restore.sh script.
The following information is displayed:
please confirm to continue or not.(yes or no)?
- Enter yes.
The system displays the following message asking you whether to continue to restore data slowly:
Please confirm whether to choose slow recovery? It may take a long time.(yes or no)?
- Enter yes.
The system starts to restore data. After the system displays a message indicating that data is restored, the system restarts.
If there is no input within one hour, the system exits the script execution.