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

Deploy a multi partition image with multicast

Scheduled Pinned Locked Moved Solved
Tutorials
3
4
1.6k
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.
  • M
    marcolefo
    last edited by Oct 11, 2016, 8:55 AM

    Re : Multicast randomly hangs##### Server

    • FOG Version: 1.2
    • OS: Debian Jessie
    Description

    Re : Multicast randomly hangs

    Hi,

    Thanks to Felipe Solari
    https://forums.fogproject.org/topic/2810/multicast-randomly-hangs/19

    We managed to deploy a multi partition image with multicast.
    We just add a sleep 5 to the fog.download at the line 440.

    • unzip init.xz (the same goes for init32.xz) with xz -d init.xz
    • mount the init file in a loop device with: mount -o loop init sometempdir/
    • go to sometempdir/bin with cd
    • edit fog.download
    • save your file, and back to the init file dir.
    • zip it with xz -C crc32 init
     elif [ "$imgType" == "mps" ]; then
                            dots "Checking Hard Disks";
                            runPartprobe $hd &> /dev/null;
                            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)";
                                    imgpart="$imagePath/d1p${partNum}.img*";
                                    sleep 2;
                                    if [ ! -f $imgpart ]; then
                                        echo " * Partition File Missing: $imgpart";
                                        # Add a sleep here
                                        sleep 5;
                                    else
                                        writeImage "$imgpart" $part;
                                    fi
                                    resetFlag $part;
                            done
    

    Hope this help.
    Thanks for Fog 🙂 It’s a great soft.

    FOG : 1.5.10.1655
    OS : Debian GNU/Linux 12

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Oct 11, 2016, 9:28 AM

      @marcolefo I am not sure if I get what you are up to with this. You posted a supposed fix for FOG version 1.2.0 which is years old in the bug reports section of this forum. Please don’t get me wrong, I don’t want to offend you for posting this. I just don’t understand it - partly because there are two sleeps in the code you posted, one sleep 2 which might solve the issue your talk about and another sleep 5 which is in the “wrong” if-branch and won’t help in getting multicast right from my point of view.

      Would you mind correcting the code and/or your comment so that other people still using FOG 1.2.0 can profit from this?

      Moving this to Tutorials section of the forum…

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • M
        marcolefo
        last edited by Oct 11, 2016, 9:52 AM

        No problem. Excuse me for the wrong forum ;).

        Adding the sleep 5 solved our problem. The sleep 2 was already here unless I am mistaken.

        FOG : 1.5.10.1655
        OS : Debian GNU/Linux 12

        T 1 Reply Last reply Oct 11, 2016, 10:35 AM Reply Quote 0
        • T
          Tom Elliott @marcolefo
          last edited by Oct 11, 2016, 10:35 AM

          @marcolefo The sleep 5 you’ve added will only happen if the $imgpart is not found. This seems rather pointless if you ask me. (Again following along @Sebastian-Roth I’m not intending to offend, but why does having sleep 5 in a spot where no code is run to begin with “help” a user with multi partition imaging via multicast?

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

          164

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project