Applies To: |
|
Summary: |
1. When Citect starts up and you have
redundant diskdrv devices, does Citect actually copy the diskdrv
device over from the active server or does it request all disk tag
values from the active IO Server and update it's own file?
2. If a diskdrv file gets corrupted and causes Citect to go offline with that device will Citect just copy over the good file from the redundant device? It appears that it will not and you have to manually delete the file and restart the IO Server. 3. If you delete the disk file I believe Citect will recreate the file. Does it copy over the backup file from the redundant device or does the IOServer create the file on its own with copying over the redundant file? The reason I ask this is because the customer is saying that if this scenario happens then the newly create file is different in structure than the standby file. They are using some binary comparison between the two files. Any reason why the files are structured different? Are tags organized within the disk file differently if they are created at runtime like this? 4. How is a diskdrv device determined to be online or not? Does Citect try to read all tags? |
Solution: |
1. Citect reads the entire disk PLC file
from the other server and then writes the values back to it's
file. When the active server is a primary server, it will
copy over to the standby server
2. Citect will not copy the redundant file over the top when it detects a corrupted file. It's designed this way because we may not be able to reliably detect a corrupted file. I expect it would not be a lot of trouble to make it copy the file from the other server if a corrupted file is detected. But the real problem is why the file is being corrupted in the first place. I expect we don't copy the file, because we should be just fixing the corrupted file bug first. It should look like the following when it reads a disk file Status is set to DRIVER_BAD_FILE_HEADER, DRIVER_BAD_READ, DRIVER_BAD_SEEK when the selected file fails validity test three times. The following scenarios are imagined under these circumstances Either
2) The file is genuinely corrupt. In this case the 2 retries wont do any good but they wont do much harm either.
3. The redundant file is read on startup. But I think it is also read sometimes while the system is running. Just because the files are binary different does not mean that the data is different. The same data can be stored in the file in different orders. The customer should check if the tag values are different. 4. If the file is not corrupted then it is online. Citect reads the entire file, so all the tags in the file are loaded. |
Keywords: |
Related Links
Attachments