• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Tom Elliott
    3. Posts
    • Profile
    • Following 27
    • Followers 80
    • Topics 116
    • Posts 18,783
    • Best 2,568
    • Controversial 0
    • Groups 0

    Posts made by Tom Elliott

    • RE: Latest FOG 0.33b

      I’m currently rewriting the fog script. I’ve broken it into three smaller, and I think, more manageable scripts.

      fog.checkin (performs the checkin and variable assignments.
      fog.download (performs the download tasks)
      fog.upload (performs the upload tasks)
      fog (just deals with passing the tasking. appropriately.)

      I’m still testing but things seem to be a little bit better from my perspective. Still have to test dd, mpa, mps upload and all downloads, but just giving a heads up as to what I’m doing lately.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      That’s the mysql installation, not FOG. It asks three times.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      r1140 released.

      Should fix run.php and capone.php only in the proper order now.

      Hopefully this helps you out jbsclm. Please test it, there’s a lot of differences.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      jbsclm,

      It appears that the FOG_NFS_DATADIR is removed from the database in this current version. My guess is it’s expected to get the information of this from the storage node class file. More dynamic I suppose but easy to miss. I’m sorry I missed it while coding, I didn’t know it wasn’t in the database anymore.

      I’ve just modified the capone.php service file to use the Capone class and obtain the information relevant to how this worked.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: A handful of feature requests

      The “Image Size” I’ve been providing is directly how large partclone is reporting the Device Size is. So you would need a drive with at least that size + a little more. There’s no way, for now, to pull all the image size (rec.img.000) size AND (sys.img.000) size, or d1p#.img sizes. It’s not 100% accurate, but should give a fairly good indication of the size needs.

      BCD I’m aware of that, but it would mean, image, mount proper drive location, interject the bcd where necessary, and much verification. I’ll try to take time this weekend and test that it works, but it’s no guarantee.

      User Management is a goalgoal. I plan to introduce some types of RBAC for users and, maybe later on, groupings of rbacs similar to AD, but less complex.

      I don’t have a goals/progress. I’m just a guy who started trying to get the community back up and excited. I’ve been working fairly hard, but I don’t know what all the expectations are. I know the main feature to add before a “stable” release is Windows 8 support. That’s where I’m stuck and I’m sure others are as well.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: A handful of feature requests

      Junkhacker,

      Image Management already contains the image size, though it works by getting it from the image upload process. Right now it constantly update, but I’ll be adding in checking to verify which is larger, update if the current element is larger than the one in the database.

      Generalized BCD is the holy grail, though I’d imagine it would still cause issues as the system, as a whole, doesn’t know that it’s been generalized. Has this been tested? Other than that, the sysprep process is not currently needed on MPS and MPA formats, as far as I can tell. This, I imagine, is the normal method of imaging anyway. Sysprepping Windows 7 before ntfsresize is still needed, as far as I can tell, but I’ll take a look at your zip file. How do I add this to the scripts?

      User/User Group Management
      I’ve already been working the base practices of this. Ultimately, if I understand the process people are looking for, the options available need to vary depending on the “level” set to that particular user. Right now, User Groups aren’t available and it would require more tables in the database to manage between. It’s not perfect, but I’m working on it slowly.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      Can be 15 characters long. It auto truncates to 15. It also checks that the hostname doesn’t already exist why?

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Dell Optiplex 755

      It sounds to me like your “third” system has a problem with the motherboard. Maybe the drive isn’t recognized by BIOS? I don’t think fog is “nuking” drives and I’m willing to bet if you put the drives you swapped out into a system you where able to image things would work fine.

      posted in Hardware Compatibility
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      @Fabritreno,

      My guess is the fstype isn’t working completely correct at this point.

      ext4 should be able to find bitmap, but it could also be that the partitions are in LVM format and the extra parts you’re getting errors on don’t contain the bitmap information because they’re, technically, not in containment of bitmap.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      Because DNS records needs to be attached somewhere. Your basic network generally doesn’t store the DNS Hostnames. Windows DNS Servers tend to attach the netbios name and stores it within the dns server which is why it works in command prompt. So theoretically, this would work if your DNS Server IP is the same dns ip you use on your fog server AND the main DNS (/etc/resolv.conf) on your fog server uses this dns as well.

      The other caveat to that is the Windows systems need the firewall elements either off, or enabled for hostname translation.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Problem with separate NFS Server

      It has a sticky element on it for everyone.

      I don’t know what the umask is

      Can you perform:
      [code]chmod -R g-s /images[/code]

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Fog 0.33b Snappin deployment

      Go to the Host screen. Go to the Host Service Settings. Uncheck TaskReboot and update. You should be good after that.

      What revision 0.33b are you on?

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      can you give me exact output of blkid for ext4 stuff?

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      /tmp/status.fog is the location for the progress information on the client side. fog.statusreporter looks at the data in the file, sends it to the fogserver then clears it out for the next iteration.

      The osid, I think, is more for specialized cases. If its a pure linux system it needs to create the parts in the right places before upload can begin, hence the OSID in place for 50. Otherwise, it doesn’t appear to care.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      That’s a kink I’ve yet to figure out. It has to create the partitions before it tries to restore the partitions. I don’t know how this is completed as the scripts used for the deploy process are:
      [code] elif [ “$imgType” = “mps” ]; then
      # Restore multipartion for single drive
      echo -n " * Looking for Hard Disks…“;
      #disk=fogpartinfo --list-devices 2>/dev/null | cut -d' ' -f 1
      getHardDisk;
      echo “Done”;
      echo " * Using Hard Disk: $hd”;

                      if [ -n "$hd" ]
                      then 
                          # check image
                          if [ -d "$imagePath" ]
                          then 
                              tmpMBR="${imagePath}/d1.mbr";
                              if [ -f "$tmpMBR" ]
                              then 
                                  echo -n " * Restoring MBR...............................";
                                  dd if=$tmpMBR of=$hd &>/dev/null
                                  if [ "$osid" == "50" ]
                                  then 
                                      fdisk $hd  &>/dev/null << EOFLINUXFIX
      

      w
      EOFLINUXFIX
      fi
      echo “Done”;

                                  echo -n " * Checking hard disks.........................";
                                  runPartprobe;
                                  echo "Done";
                                  parts=`fogpartinfo --list-parts $hd 2>/dev/null`
      
                                  diskLength=`expr length $hd`;
                                  for part in $parts
                                  do   
                                      partNum=${part:$diskLength};
                                      echo " * Processing Partition: $part (${partNum})";
                                      sleep 1;
                                      imgpart="${imagePath}/d1p${partNum}.img";
                                      if [ "$osid" == "50" ]; then 
                                          echo " * Preparing linux filesystem...";
                                          parted -s $hd -a opt &>/dev/null << EOFPTD
      

      mkfs
      yes
      $partNum
      fat32
      q
      EOFPTD
      runPartprobe;
      sleep 10;
      fi
      if [ -f “$imgpart” ]; then
      if [ “$mc” = “yes” ]; then
      if [ “$partNum” == “2” ] && [ “$osid” == “6” ]; then
      udp-receiver --nokbd --portbase ${port} --mcast-rdv-address ${storageip} 2>/dev/null | partclone.restore -O $part -N -f 1 2>/tmp/status.fog
      elif [ “$partNum” == “3” ] && [ “$osid” == “6” ]; then
      udp-receiver --nokbd --portbase ${port} --mcast-rdv-address ${storageip} 2>/dev/null | partclone.restore -O $part -N -f 1 2>/tmp/status.fog
      else
      udp-receiver --nokbd --portbase ${port} --mcast-rdv-address ${storageip} 2>/dev/null | partclone.restore -O $part -N -f 1 2>/tmp/status.fog
      fi
      else
      export FOGSTATS=“1”;
      if [ “$partNum” == “2” ] && [ “$osid” == “6” ]; then
      pigz -d -c < $imgpart | partclone.restore -O $part -N -f 1 2>/tmp/status.fog
      elif [ “$partNum” == “3” ] && [ “$osid” == “6” ]; then
      pigz -d -c < $imgpart | partclone.restore -O $part -N -f 1 2>/tmp/status.fog
      else
      pigz -d -c < $imgpart | partclone.restore -O $part -N -f 1 2>/tmp/status.fog
      fi
      fi
      else
      echo " * Partition File missing: $imgpart";
      sleep 9;
      fi
      sleep 1;
      clearScreen;
      echo " * Image Restored";
      done
      if [ “$osid” == “50” ]
      then
      echo " * Restore Linux swap paritions:“;
      swaps=LANG=C fdisk -l | grep swap | cut -d' ' -f1 2>/dev/null;
      IFS=’
      ';
      for x in $swaps
      do
      echo " * Restoring partition: $x”;
      mkswap $x &>/dev/null
      done

                                  fi
                                  echo "";
      
                                  echo " * Task complete!";
                                  echo "";
      
                              else
                                  handleError "Image Store Corrupt: Unable to locate MBR.";
                              fi
                          else
                              handleError "Unable to locate image store.";
                          fi
                      else
                          handleError "Fatal Error: Disk device not found!";
                      fi[/code]
      

      You’ll notice it doesn’t create the partitions itself, it uses the MBR of the system to generate the partition table for this block.

      My guess is something is wrong with the DD command creating the backup MBR during the upload process.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Problem with separate NFS Server

      When you say you don’t have permissions. Do you mean it gives you permission denied when you try to run the command, or you can’t login as root?

      If you mean you’re logged in as a regular user on the FOG Server, try:
      [code]sudo touch /images/.mntcheck; sudo touch /images/dev/.mntcheck; sudo chmod -R 777 /images[/code]

      If it asks for a password, use the user password (the same one you login to the system with.)

      To my knowledge, fog is compatible, though it’s only been tested for sure on Fedora/Centos/Ubuntu.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      Is this is multi-boot system (Windows and Linux?)

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      What kind of multipart? Single or all?

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      I wouldn’t be able to have a method of deploying multiple files. Though I’d imagine (if we had a parsing method in windows) you could create a package (zip,msi,…) and use args to unzip/install/etc…

      I don’t know what I’d need, I don’t have anything with gpt. There’s already a couple people looking into it as they are actually in need of it, which is useful. I hope they don’t mind helping me out in this regard.

      posted in General
      Tom ElliottT
      Tom Elliott
    • RE: Latest FOG 0.33b

      r1137 released.

      Had to make tweak to blkid in fog script. Should work more fluidly with this method.

      From the commit comments: “Make (hopefully) final tweak in partclone stuffs on fog script. Not done updating fog script, just hopefully done with partclone tweaks.”

      I hope you know that just means I’m done, at least for now, with partclone methods. I will continue editing the fog script, and I hope to use partclone for dd (raw) imaging types in the future.

      posted in General
      Tom ElliottT
      Tom Elliott
    • 1
    • 2
    • 871
    • 872
    • 873
    • 874
    • 875
    • 939
    • 940
    • 873 / 940