Hi, dear!
What is the version of VCN510?
Note:
Please erase sensitive information such as the IP address in the image. Otherwise, the environment may be at risk.
Here's a warning. I hope it works for you.
Problem Description
When the VCN5X0 is running, there is a probability that the disk is offline and recording fails.
Root Cause
The VCN5X0 application checks whether a disk is online every minute using the following mechanism: Obtain the current disk SN and compare it with the initial disk SN recorded in the configuration file. If they are the same, the disk is online. Otherwise, the disk is offline. Due to a defect, the disk SN obtained by the VCN5X0 underlying driver occasionally contains extra space characters, which is different from that in the configuration file. As a result, the VCN5X0 application determines that the disk is offline or replaced.
Impact and Risk
After determining that the disk is offline or replaced, the VCN5X0 records the offline status of the disk in the /share/init.d/disktype configuration file and restarts. After the restart, the VCN5X0 regards that the disk is offline. As a result, the recording service is interrupted and cannot be automatically recovered.
Measure and Solution
Recovery measures
Obtain the new OMU library file, which will resolve the problem of obtaining incorrect disk SNs. The library file can be obtained from the package of the patch version V100R002C30SPC205. The path is as follows:
VCN5x0 Product Package.zip > vcn5x0.zip > vcn5x0_install > ivs_omu_arm.tar.gz > lib > libcommon.so
Upload the obtained file to the /tmp directory on the VCN server through XFTP.
Log in to the VCN5X0 as the admin user through SSH and run the su - root command to switch to the root user. The default passwords of the admin and root users are both Change_Me.
Replace the libcommon.so file in /home/ivs_omu/lib with that in /tmp.
mv /tmp/libcommon.so /home/ivs_omu/lib
Restore the disk type of the disktype file.
If the /share/init.d/tabledisk file exists, the disk is in non-RAID mode. Run the following command.
echo 0 > /share/init.d/disktype
If the /share/init.d/tabledisk file does not exist, the disk is in RAID mode. Run the following command.
echo 1 > /share/init.d/disktype
Restore the disk status.
/home/ivs_sudo/ivs_omu/bin/auto_fresh_raid1table.sh 1
Run the reboot command to restart the VCN5X0.
Solution
Upgrade the version to the latest version VCN510/VCN520/VCN540 V100R002C30SPC205. The version software package can be downloaded at:
https://support.huawei.com/enterprise/en/video-surveillance/vcn510-pid-21818012/software/23602290?idAbsPath=fixnode01|7881490|7919735|9864313|21782016|21818012