• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Images on storage nodes deleted when hard drive on master fails

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    sync
    2
    3
    986
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aldorf
      last edited by

      Hi, today we encountered an unpleasant (but quite logical) behavior of image sync between the master and storage node. Our FOG master has two separate disks for system and /images. The disk containing the images had failed and as a result, the /images folder where it mounts appeared empty. The sync service then thought that all images on the master node had been deleted so it deleted them on the storage node as well.
      I’d like to suggest implementing a safety measure for the sync service preventing data loss - e.g. sync would not start if the /images/dev directory is not present in both master and storage nodes.

      1 Reply Last reply Reply Quote 1
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        Better yet,

        Do NOT sync anything any further if the /images/.mntcheck and /images/dev/.mntcheck files do not exist.

        @Developers

        Also, @aldorf , have you verified that the drive did indeed fail, or perhaps your /etc/fstab was modified and the drive simply did not mount?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • A
          aldorf
          last edited by

          @Wayne-Workman - FOG 1.2.0 running on Ubuntu 12.04 LTS. The drive did fail during normal operation - i.e. after running for several days, it got suddenly disconnected, I’m almost sure it’s a hardware issue (either the drive itself or the SATA controller). After reboot it mounts normally and the images resync on the other node.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          142

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project