log storage location

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3939
    leon
    Participant

    hi
    Raspberry Pi use external hard disk.
    How to save log to external hard disk?

    Thank

    #3940
    manjey73
    Participant

    Mount the disk to fstab and specify the path to save the databases to the appropriate folder.

    #3944
    Mikhail
    Moderator

    Hi,
    What logs do you need to save to the external disk?

    #3945
    leon
    Participant

    Hi Participant
    Thank!

    Hi Mikhail
    Hope that all logs can be stored on an external hard drive because the SD card is easier to fault.

    #3948
    manjey73
    Participant

    install_with_xsp.txt or 13 file install_with_apache.txt

    10. In case of using SD card, protect it by moving frequently used folders to RAM.
    Skip this step if you use a regular HDD.
    Add the lines below to /etc/fstab

    tmpfs /tmp tmpfs defaults,noatime,size=50m 0 0
    tmpfs /var/log tmpfs defaults,noatime,size=50m 0 0
    tmpfs /opt/scada/ScadaComm/Log tmpfs defaults,noatime,size=100m 0 0
    tmpfs /opt/scada/ScadaServer/Log tmpfs defaults,noatime,size=10m 0 0
    tmpfs /opt/scada/ScadaWeb/log tmpfs defaults,noatime,size=10m 0 0
    tmpfs /opt/scada/ArchiveDAT/Cur tmpfs defaults,noatime,size=10m 0 0

    #3949
    leon
    Participant

    Main save DI/O AI/O logs.

    • This reply was modified 5 years, 9 months ago by leon.
    • This reply was modified 5 years, 9 months ago by leon.
    #3953
    Mikhail
    Moderator

    You can set the path of data archives in the SCADA-Server settings:
    SCADA/ScadaServer/Config/ScadaServerSvcConfig.xml

    #3956
    leon
    Participant

    Hi Mikhail
    Is this correct?
    https://imgur.com/a/WqlC1cY

    Hi manjey73
    Thank!

    #3958
    Mikhail
    Moderator

    Hi,
    Probably. You should test.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.