• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. samdoan
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 14
    • Best 0
    • Controversial 0
    • Groups 0

    samdoan

    @samdoan

    0
    Reputation
    6
    Profile views
    14
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    samdoan Unfollow Follow

    Latest posts made by samdoan

    • RE: Multi drive image reversing disks.

      @sebastian-roth said in Multi drive image reversing disks.:

      After making this change partclone successfully runs and is correctly deploying disk1 to /dev/sda. However after deploying disk1, the process completes without deploying disk2 to /de/nvme0n1. Is there something else I need to edit in order to tell the fog server that there’s another disk? How does fog server know that there are X number of disks in the image?

      FOG enumerates drives/disks using the lsblk command when it boots up and should process both drives. Make sure Host Primary Disk is not set for this host.

      Renaming the disks does work. I know this because I captured a new, simple image and was able to reverse the order in which the disks are deployed.

      But when I try this on my real image, it’s deploying the same image to both physical disks which is weird. At the bottom you can see that /dev/sda and /dev/nvme0n1 have the same partition layout. This tells me that it’s deploying Disk1 to /dev/sda AND /dev/nvme0n1.

      Debug deployment - You can see it process /dev/sda1 and /dev/sda2 but not /dev/nvmen01 - 04
      d87f86df-0af9-4700-a5e5-3ffe74e0f731-image.png

      Here are the raw files in the capture:

      71518fc4-fb37-4422-92af-96aee01bbe7f-image.png

      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @sebastian-roth So I found in addition to renaming dXpY.*, you also need to edit the dX.size files as they also reference the disk number

      1:161061273600
      
      2:214748364800
      

      After making this change partclone successfully runs and is correctly deploying disk1 to /dev/sda. However after deploying disk1, the process completes without deploying disk2 to /de/nvme0n1. Is there something else I need to edit in order to tell the fog server that there’s another disk? How does fog server know that there are X number of disks in the image?

      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @sebastian-roth said in Multi drive image reversing disks.:

      @samdoan said in Multi drive image reversing disks.:

      Target partition size(17 MB) is smaller than source(214730 MB).

      I would imagine this error can only happen if partition layout files (dX.*) and image files (dXpY.img) are being mixed up somehow.

      About the error when setting “Host Primary Disk”: seems like there is an issue in the code when using Multiple Disk image type.

      I’ve gone back and double and triple checked my process for re-naming the image files. I am renaming them accurately and still receive the error Target partition size(17 MB) is smaller than source(214730 MB) in part clone when attempting to reverse the two disks by renaming.

      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @george1421 said in Multi drive image reversing disks.:

      @samdoan Will you post a screen shot of the settings you have for this target host?

      If they look right, then lets setup again a target deploy to this computer with the primary disk set. You will be dropped to a fos linux command prompt. I want you to key in these commands in order and take a clear to read screen shot of it.

      lsblk
      cat /proc/cmdline

      I think maybe something isn’t entered right or the hardware is reacting strange. If everything check out you can run imaging in single step mode by keying in fog and then pressing enter at each break point. In the imaging program. I have a feeling there is an error just prior to the screen shot you just provided that will give us a bit better understanding of what is going on with this hardware.

      Here is a screenshot of the host settings:
      d43fbc1c-6d08-487f-aa6a-9dd027cd3e7d-image.png

      Here is the other requested screenshot:
      593e18ce-8ca6-49c6-9966-0a552ddc6303-image.png

      [Thu Jun 10 root@fogclient ~]# lsblk
      NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
      sda       8:0    0 465.8G  0 disk
      nvme0n1 259:0    0 953.9G  0 disk
      [Thu Jun 10 root@fogclient ~]# cat /proc/cmdline
      bzImage loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://192.168.1.40/fog/ consoleblank=0 rootfstype=ext4 nvme_core.default_ps_max_latency_us=0 mac=84:a9:3e:6d:b0:49 ftp=192.168.1.40 storage=192.168.1.40:/images/ storageip=192.168.1.40 osid=9 irqpoll hostname=HPDEV chkdsk=0 img=WEBDEV-SYSPREP-EFI imgType=mpa imgPartitionType=all imgid=38 imgFormat=5 PIGZ_COMP=-6 fdrive=/dev/nvme0n1 hostearly=1 isdebug=yes type=down
      
      

      It appears that its failing on the step “Looking for Hard Disks”
      4ddedfda-023e-41fe-bcde-425da5459cb8-image.png

      * Using Image: WEBDEV-SYSPREP-EFI
       * Looking for Hard Disks............................Failed
       * Press [Enter] key to continue
      
      ##############################################################################
      #                                                                            #
      #                         An error has been detected!                        #
      #                                                                            #
      ##############################################################################
      Init Version: 20200906
      Could not find any disks (/bin/fog.download)
         Args Passed:
      
      Kernel variables and settings:
      bzImage loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://192.168.1.40/fog/ consoleblank=0 rootfstype=ext4 nvme_core.default_ps_max_latency_us=0 mac=84:a9:3e:6d:b0:49 ftp=192.168.1.40 storage=192.168.1.40:/images/ storageip=192.168.1.40 osid=9 irqpoll hostname=HPDEV chkdsk=0 img=WEBDEV-SYSPREP-EFI imgType=mpa imgPartitionType=all imgid=38 imgFormat=5 PIGZ_COMP=-6 fdrive=/dev/nvme0n1 hostearly=1 isdebug=yes type=down
       * Press [Enter] key to continue
      
      
      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @sebastian-roth No apology needed, I thought that was implied and that was exactly what I did. Every reference to d1 was renamed to d2 and I still encountered that error.

      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @george1421 I followed all of your steps and was able to define the “Host Primary Disk” to be the /dev/nvme0n1 disk, however it fails after deploying an image due to “Could not find any disks”

      e7310f60-edc6-46b7-8240-b29f799e3b7e-image.png

      The host that I am deploying to has two disks: /dev/sda and /dev/nvme0n1. I also tried setting “Host Primary Disk” to /dev/sda but I received the same error “Could not find any disks.” This seems odd because when I leave the primary disk field blank, the image deploys to /dev/sda as the primary disk by default.

      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @sebastian-roth said in Multi drive image reversing disks.:

      I am not sure I understand what you mean. If you capture the image from a machine that has NVMe and SATA drive it will capture the drives in the same order as it would deploy them - see my comment above on the order.

      If you want to mess with the order within the image you should be able to just rename all the files. d1.* -> d2.* and vice versa.

      The image was captured on a virtual machine which has the correct drive order. When deploying the image, the primary drive is defaulting to the SSD vs the NVME. It’s obvious now that this is the correct order based on how linux enumerates disks however, I do need these two disks switched around.

      When using your first suggestion by defining the “Host Primary Disk,” FOG throws the error:

      Could not find any disks (/bin/fog.download)
      

      This occurs whether I define the “Host Primary Disk” as /dev/nvme0n1 or /dev/sda which seems odd so perhaps I have the incorrect syntax?

      Lastly, I also did attempt renaming all of the files. I renamed all the d1 files to d2 and all the d2 files to d1. After this change, I receive an error when deploying that states:

      Target partition size(17 MB) is smaller than source(214730 MB). Use option -C to disable size checking(Dangerous).
      
      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @george1421 d3991881-4e4b-4fc0-9746-c2aeaba55f1e-image.png

      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @george1421 I followed your suggestion by finding the drive name for the nvme drive and setting that as the primary disk on the host. The drive name is /dev/nvme0n1.

      IMG_20210608_104248.jpg

      However with the Host Primary Disk set to /dev/nvme0n1 or /dev/sda, I receive an error stating “Could not find any disks”

      IMG_20210608_104558.jpg

      posted in Windows Problems
      S
      samdoan
    • RE: Multi drive image reversing disks.

      @george1421 Thanks for the suggestion. I’m going to give this a shot.

      posted in Windows Problems
      S
      samdoan