• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. fabritrento
    3. Posts
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 32
    • Posts 151
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21722, member: 7271”]Should be fixed here shortly, forgot to save the association.

      r1128 released.[/quote]

      the imaging of a pc with single disk multiple partition of:

      sda1 ntfs(winxp)
      sda2 ext4 (linux)
      sda3 swap (linux)

      should work with r1128? i can test it?

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21678, member: 7271”]What is blkid of the swap partition?[/quote]

      sample on my server: /dev/mapper/fog–vg-swap_1: UUID=“82810d84-f19c-40ee-a3e8-fa51d6f6e84f” TYPE=“swap”

      (only TYPE is to be used obviously)

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21675, member: 7271”]I see what you’re saying now and will work on correcting this today after some testing of course.[/quote]

      ok! thankyou very much! tell me if you want help/tests

      if you can check also if dd command, for dd cloning contains option bs=1M to speedup read/write operations

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21674, member: 7271”]Fabritreno, that’s the basis of the osid. Basically what you’re asking for is to remove that function out of fog which is unlikely to happen. If you’re trying to create image of dual boot system change the image type to raw and it will copy all partitions using dd.[/quote]

      in fog 0.32, uplading image in singledisk, multiplepartition mode with sda1 windowsxp sda2 linux sda3 linux-swap works.
      So we must patch fog 0.33b to do this and not lose features.

      using dd cloning is crazy, is much simply to patch the buggly fog script.

      we must simply do:

      fdisk -l /dev/sda
      blkid /dev/sda1
      blkid /dev/sda2
      blkid /dev/sda3
      blkid /dev/sda4

      then store into variables and apply when cloning different partition number…

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      i’m now testing the dd image upload

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      i think that the error is in this part of fog script.

      the function: determineOS $osid

      is used to say to partclone what kind of partition we must clone.

      this is not correct.

      in the script:
      if [ “$osid” == “50” ]; then
      fstype=“extfs”
      else
      fstype=“ntfs”

      causes all partition that is not ntfs in a pc with windows system fail to image.

      i have on disk:

      sda1 ntfs (clones correctly)
      sda2 ext4 ( is cloned as ntfs, is not correct)
      sda3 linux-swap ( is cloned as ntfs, is not correct)

      we must modify the script to check via fdisk -l what kind of partition is really present
      or more best:
      sudo blkid /dev/sda1
      /dev/sda1: UUID=“b842abee-3fbf-4347-a451-ec9e0b3b3aa8” TYPE=“ext2”

      We cannot know what kind of partition is present simply assuming by $osid, i can have a windowsxp in first partition as ntfs, ok, but in all others i can have a very differend kind of filesystem type!

      so Tom, if you need help to test/develope ask me!

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      I think Tom Elliott is busy today!
      Tom, i need you! if you come in italy i can offer to you a gallon of beer!
      And if fogproject needs hardware/support to work i can give help 😉

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      i’m trying to debug the problem that imaging of single disk, multiple partition don’t work.
      so i started a debug upload.

      the screen say to me to type fog to start image upload.

      here images uploaded to server:
      administrator@fog:/images/labciro$ ls -la
      totale 6890908
      drwxrwxrwx 2 root root 4096 gen 21 08:54 .
      drwxrwxrwx 4 root root 4096 gen 21 08:54 …
      -rwxrwxrwx 1 root root 512 gen 21 08:35 d1.mbr
      -rwxrwxrwx 1 root root 7056262600 gen 21 08:54 d1p1.img
      -rwxrwxrwx 1 root root 20 gen 21 08:54 d1p2.img
      -rwxrwxrwx 1 root root 20 gen 21 08:54 d1p3.img
      administrator@fog:/images/labciro$

      gunzipping d1p2.img and d1p3.img the result is empty file. so seems that the image upload is not started…

      partitions on pc are:
      sda1 30GB ntfs winxp
      sda2 15GB ext4 xubuntu
      sda3 1GB linux-swap

      so sda2 and sda3 is not imaged (only 20byte is copied).

      here the value of variables:
      ##########
      osid=1
      osname=Windows XP
      mbrfile=/usr/share/fog/mbr/xp.mbr
      type=up
      storage=192.168.0.3:/images/dev/
      img=labciro
      hd=/dev/sda
      part=/dev/sda1
      ##########

      i think that in these variables the info that also sda2 and sda3 is to be done is missing. do you confirm? how i can force to do image of: sda1,sda2,sda3 and not sda1 only??

      where i can find the fog script on the server? in what directory is stored? (to debug)

      i tryed to run fogpartinfo script and detects 3 partitions (right) so i must understand why only first 20byte is saved on server of 2nd and 3th partitions…

      now i’m running fog script by hand, after that i’ll check the log on the client:

      the problem with second and third partition is from :
      ntfsclone-ng.c: no ntfs partition, ntfs mount error 22

      i think that partclone is launched with bad options…

      i think that we must modify fogpartinfo script to detect list of partitions and also the partition type (fdisk -l output is enough) so we can start the differents partclone commands in right way.

      here contenents of client log:

      administrator@fog:~/test_fog$ more fdisk-after

      Disk /dev/sda: 160.0 GB, 160041885696 bytes
      255 heads, 63 sectors/track, 19457 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes

      Device Boot Start End Blocks Id System
      /dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
      /dev/sda2 3825 5648 14647296 83 Linux
      /dev/sda3 5648 5773 1000448 82 Linux swap
      administrator@fog:~/test_fog$
      administrator@fog:~/test_fog$ more fdisk-before

      Disk /dev/sda: 160.0 GB, 160041885696 bytes
      255 heads, 63 sectors/track, 19457 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes

      Device Boot Start End Blocks Id System
      /dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
      /dev/sda2 3825 5648 14647296 83 Linux
      /dev/sda3 5648 5773 1000448 82 Linux swap
      administrator@fog:~/test_fog$
      administrator@fog:~/test_fog$ more partclone.log
      Partclone v0.2.69 [url]http://partclone.org[/url]
      Starting to clone device (/dev/sda3) to image (/tmp/pigz1)
      Reading Super Block
      ntfsclone-ng.c: NOT NTFS partition, ntfs mount error 22
      administrator@fog:~/test_fog$

      we must do modify fog script to check the partition/fs type and adapt the partclone command in various situations.

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21627, member: 7271”]No, i mean from the image page.

      You can’t assign two OS’s to the image name. If you’re trying to image a dual boot, you need to setup RAW image type versus MPS/MPA/SDR[/quote]

      this is not correct, because with 0.32 version, i already done a dualboot (sda1 winxp sda2 linux) imaging upload and then deploy without problems setting OS to windowsXP

      i tryed single disk multiple partition image upload with dualboot win+linux, and works in 0.32. In 0.33b don’t work (to be fixed)
      i’m now trying multiple disk multiple partitions in 0.33b, then i post here the result.

      on 0.32 all working, except the grub 2.0 that was corrupted after imaging process (i don’t know how)… but is not a big problem, is sufficient to boot client in debug mode (via grub fog menu) and do:

      mount /dev/sda2 /mnt
      mount -o bind /dev /mnt/dev
      mount -o bind /proc /mnt/proc
      mount -o bind /sys /mnt/sys
      chroot /mnt
      update-grub
      grub-install /dev/sda

      i think that the best is to add this as post deploy script on clients with ext fs (generally means that linux is present on machines…)

      it can be simply checked doing a fdisk -l|grep ext then take the partition string sdX and substitute to mount and chroot and grub command.
      additionally we can check if /boot dir is present in the extfs (to be sure that is a os filesystem).

      I see that on 0.33 the /opt/fog/log dir is empty.

      and 2 process (fogscheduler and fogmulticast) is not running ad deamons, is this correct?

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21625, member: 7271”]What’s the OS type for the image being uploaded?[/quote]
      First partition win xp second partition linux

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      Is 25-30GB (about)

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      first bug.

      i created a image as multiple partitions, single disk.
      then upload the image.

      the disk has 3 partitions:
      sda1 ntfs
      sda2 ext4
      sda3 linux_swap

      but on the server only first image is upladed:

      administrator@fog:/images/labciro$ ls -la
      totale 6602576
      drwxrwxrwx 2 root root 4096 gen 20 14:21 .
      drwxrwxrwx 4 root root 4096 gen 20 14:21 …
      -rwxrwxrwx 1 root root 512 gen 20 12:50 d1.mbr
      -rwxrwxrwx 1 root root 6761011164 gen 20 14:20 d1p1.img
      -rwxrwxrwx 1 root root 20 gen 20 14:20 d1p2.img
      -rwxrwxrwx 1 root root 20 gen 20 14:21 d1p3.img
      administrator@fog:/images/labciro$
      the second and third is only 20 byte sized.

      how i can debug more this problem?

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21611, member: 7271”]It’s actually taken by the command:
      [code]ifconfig | grep “inet addr:” | head -n 1 | cut -d’:’ -f2 | cut -d’ ’ -f1[/code]

      I have a feeling, something like:
      [code]ifconfig | grep “inet addr:” | head -n 1 | awk -F’:’ ‘{print $2}’|awk ‘{print $1}’[/code]

      Would work better as it ensure’s the whitespace is removed, where cut only removes a single space (based on the -d’ ').[/quote]

      i have no “addr:” ifconfig output :

      this works:
      ifconfig | grep “inet” | head -n 1 | awk -F’:’ ‘{print $2}’|awk ‘{print $1}’

      and also this:
      ifconfig | grep “inet” | head -n 1 | cut -d’:’ -f2 | cut -d’ ’ -f1

      posted in General
      F
      fabritrento
    • RE: Including patch for udpcast install error in 0.32 release

      s
      [quote=“Tom Elliott, post: 21615, member: 7271”]That may still be a need, but if you can document the process slightly, I might be able to automate this within the FOG Scripts so we don’t have to do as much.[/quote]
      see some message up…

      posted in FOG Problems
      F
      fabritrento
    • RE: Including patch for udpcast install error in 0.32 release

      first impression is that fog0.33b is very good! i see also that partclone is used instead parimage! very good work!

      if i find bugs or suggestions i post here!

      tomorrow i test multicast deploy and grub installation on blank disks

      (on 0.32 i must chroot via debug mode of fog setting at boot, and do a update-grub ; grub-install /dev/sda )

      posted in FOG Problems
      F
      fabritrento
    • Slow network/disk performance when virtualized on a win2008 server with virtualbox

      i virtualized on virtualbox installed on a win2008srv fog 0.33b.

      i used lvm and dynamic virtual disk allocation.

      The transfer rate uploading a image starts at 700MB/min but after some minutes lowers to 150MB/s.

      someone know howto make this virtual system run faster?

      posted in FOG Problems
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21604, member: 7271”]fabritreno,

      What OS did you install this on? I’ve never seen any issues with this particular issue, as it already checks if the entry is null, but the [] part is filled out, use the [] part.

      Then it tests if either the suggested IP or the entered IP is valid. If it’s not valid (extra spaces included) then it fails with that message. My guess is something is a little different on your server.[/quote]

      is a ubuntu server edition 12.04 LTS virtualized on a win2008srv with virtualbox installed

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      [quote=“Tom Elliott, post: 21602, member: 7271”]So I’ll check the loop for the ip. Then you just want me to add the info of what the options do?[/quote]

      for some reasons, instead of “xxx.xxx.xxx.xx” “inet xxx.xxx.xxx.xxx” are assumed as default. I think that is taked from /etc/network/interfaces config file.

      my file:
      #----------------------

      The loopback network interface

      auto lo
      iface lo inet loopback

      The primary network interface

      auto eth0
      iface eth0 inet static
      address 192.168.0.3
      netmask 255.255.255.0
      gateway 192.168.0.1
      dns-nameservers 192.168.0.2
      #----------------------

      posted in General
      F
      fabritrento
    • RE: Latest FOG 0.33b

      small esthetic bug in 0.33b:

      when you do ./installfog.sh

      …
      What is the IP address to be used by this FOG Server? [inet:192.168.0.3] [enter]
      Invalid IP address!

      What is the IP address to be used by this FOG Server? [inet:192.168.0.3]192.168.0.3
      …

      …
      On a Windows DHCP server you must set:
      option 066 & 067
      we can specify also that in 066 user must set the ip of fog, and in 067 “pxelinux.0”
      …

      i edit this message today to post all bugs that i found…

      posted in General
      F
      fabritrento
    • RE: Including patch for udpcast install error in 0.32 release

      [quote=“Jaymes Driver, post: 21356, member: 3582”]to “Upgrade” your fog installation, download the tar.gz, unzip and run installfog.sh once again.[/quote]

      the multicast deploying on multiple machines works in this version?

      i have also the problem with fog 0.32 that if grub near 2.x version is installed on source imaging machine, on cloned machine dont work and i must:

      -boot with a live
      -mount /dev/sdaX /mnt
      -mount -o bind /dev/ /mnt/dev ; mount -o bind /sys/ /mnt/sys ; mount -o bind /proc/ /mnt/proc
      -chroot /mnt
      -update-grub ; grub-install /dev/sda

      in fact… i see that only 512 byte of mbr is copied when clones the machine. i think that is a size too small and don’t contain the “link” to start grub…

      posted in FOG Problems
      F
      fabritrento
    • 1 / 1