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

Wipe And Restore

Scheduled Pinned Locked Moved Solved
General
2
15
4.1k
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.
  • N
    Nika
    last edited by Nika Jan 13, 2016, 6:50 AM Jan 13, 2016, 12:50 PM

    HI!

    Can i automating FOG for Wipe and Restore a image file automatically.

    I mean… when i wipe hard drive Fog open automatically images restore.

    Sorry about my English. 🙂

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Jan 13, 2016, 3:11 PM

      When FOG restores an image, all previous partitions are deleted. Are you sure that wiping is necessary?

      What version of FOG are you using?

      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
      • N
        Nika
        last edited by Nika Jan 13, 2016, 9:27 AM Jan 13, 2016, 3:20 PM

        Version FOG 1.2.0

        it’s true all partitions are deleted but not data, with recovery software i can restore some files.

        So i need to WIPE and restore.

        1 Reply Last reply Reply Quote 0
        • W
          Wayne Workman
          last edited by Jan 13, 2016, 3:29 PM

          This can be automated on the backend with a crontab event without editing any of FOG’s files. I don’t have time at this very moment to mess with it, but it can be done.

          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/

          N 1 Reply Last reply Jan 13, 2016, 3:50 PM Reply Quote 0
          • N
            Nika @Wayne Workman
            last edited by Jan 13, 2016, 3:50 PM

            @Wayne-Workman who can i contact if you have not time ?

            W 1 Reply Last reply Jan 13, 2016, 3:50 PM Reply Quote 0
            • W
              Wayne Workman @Nika
              last edited by Jan 13, 2016, 3:50 PM

              @Nika I just don’t have time at the moment (I’m at work). I can look at it tonight.

              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/

              N 1 Reply Last reply Jan 13, 2016, 4:02 PM Reply Quote 0
              • N
                Nika @Wayne Workman
                last edited by Jan 13, 2016, 4:02 PM

                @Wayne-Workman OH Cool. thank you very much.

                1 Reply Last reply Reply Quote 0
                • W
                  Wayne Workman
                  last edited by Wayne Workman Jan 13, 2016, 11:02 PM Jan 14, 2016, 3:59 AM

                  I’m just going to use this thread to jot down some notes while I work on this. It should be very simple though.

                  This is what an instant deployment full-wipe task looks like in FOG 1.2.0

                  +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                  | taskID | taskName | taskCreateTime      | taskCheckIn         | taskHostID | taskStateID | taskCreateBy | taskForce | taskScheduledStartTime | taskTypeID | taskPCT    | taskBPM | taskTimeElapsed | taskTimeRemaining | taskDataCopied | taskPercentText | taskDataTotal | taskNFSGroupID | taskNFSMemberID | taskNFSFailures | taskLastMemberID | taskPassreset | taskShutdown |
                  +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                  |      2 |          | 2016-01-13 22:31:16 | 0000-00-00 00:00:00 |          1 |           1 | wayne        | 0         | 0000-00-00 00:00:00    |         20 | 0000000000 |         |                 |                   |                |                 |               |              0 |               0 |                 |                0 |               |              |
                  +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                  

                  This is what an instant deployment image task looks like in FOG 1.2.0

                  +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                  | taskID | taskName | taskCreateTime      | taskCheckIn         | taskHostID | taskStateID | taskCreateBy | taskForce | taskScheduledStartTime | taskTypeID | taskPCT    | taskBPM | taskTimeElapsed | taskTimeRemaining | taskDataCopied | taskPercentText | taskDataTotal | taskNFSGroupID | taskNFSMemberID | taskNFSFailures | taskLastMemberID | taskPassreset | taskShutdown |
                  +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                  |      3 |          | 2016-01-13 22:40:27 | 0000-00-00 00:00:00 |          1 |           1 | wayne        | 0         | 0000-00-00 00:00:00    |          1 | 0000000000 |         |                 |                   |                |                 |               |              1 |               1 |                 |                0 |               |              |
                  +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                  

                  So considering the above information, we need to check the tasks table for tasks that have taskTypeID 18, 19 or 20 where taskStateID is 1, 2 or 3.

                  When this is seen, the taskHostID needs noted. When the task disappears, a new imaging task needs created using the image assigned to the host.

                  I did do a full wipe just for testing - after the wiping is started, the taskStateID does not change. Perhaps @Tom-Elliott can see if that’s the case in the current FOG trunk, and if so, hopefully get that fixed before 1.3.0 release. I assume the taskStateID gets set to 4 when it gets done but I’m not sure, I didn’t wait for it to finish.

                  I’ll do more testing Friday night to see if an added task will work when there’s already a current task. If it works, awesome. If not, we will need to edit the wipe tasks I suppose, which means editing the 1.2.0 init.

                  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/

                  N 1 Reply Last reply Jan 14, 2016, 7:39 AM Reply Quote 0
                  • N
                    Nika @Wayne Workman
                    last edited by Jan 14, 2016, 7:39 AM

                    @Wayne-Workman thank you. i hope it will work.

                    1 Reply Last reply Reply Quote 0
                    • W
                      Wayne Workman
                      last edited by Jan 15, 2016, 4:29 AM

                      Bumping this thread… I’m planning on working on this tomorrow night.

                      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/

                      N 1 Reply Last reply Jan 19, 2016, 12:56 PM Reply Quote 1
                      • N
                        Nika @Wayne Workman
                        last edited by Jan 19, 2016, 12:56 PM

                        @Wayne-Workman so? is solution?

                        W 1 Reply Last reply Jan 19, 2016, 1:28 PM Reply Quote 0
                        • W
                          Wayne Workman @Nika
                          last edited by Jan 19, 2016, 1:28 PM

                          @Nika Not yet. I didn’t get around to trying. But it can be done.

                          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/

                          N 1 Reply Last reply Jan 19, 2016, 1:54 PM Reply Quote 0
                          • N
                            Nika @Wayne Workman
                            last edited by Jan 19, 2016, 1:54 PM

                            @Wayne-Workman can you show me how i can do it please ? i need this .

                            W 1 Reply Last reply Jan 19, 2016, 1:58 PM Reply Quote 0
                            • W
                              Wayne Workman @Nika
                              last edited by Wayne Workman Jan 19, 2016, 7:59 AM Jan 19, 2016, 1:58 PM

                              @Nika Just create a root crontab that checks the tasks table every minute. The crontab starts a script that checks the tasks table for tasks that have taskTypeID 18, 19 or 20 where taskStateID is 1, 2 or 3. If it sees that, it should insert an imaging task using the same detected taskHostID with the taskID properly incremented as well.

                              If that doesn’t work, then the init needs modified.

                              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/

                              N 1 Reply Last reply Jan 19, 2016, 2:04 PM Reply Quote 0
                              • N
                                Nika @Wayne Workman
                                last edited by Jan 19, 2016, 2:04 PM

                                @Wayne-Workman thaks.

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

                                141

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project