Hello Sebastian!
Cloning works again, maybe some sun flares
Your kernel-params for sercon are working great!
Thanks a lot for your help!
Best regards,
R.
Hello Sebastian!
Cloning works again, maybe some sun flares
Your kernel-params for sercon are working great!
Thanks a lot for your help!
Best regards,
R.
Dear Sebastian!
Wow! Any kind of display at headless machines would be great!
It is an APU-Board.
https://www.pcengines.ch/apu3c4.htm
enabling the sserial console withj kernel params would be cool!
Your guess: single disk multi partitions is correct
Your suggestion lead to this: Everything went fine. In debug-mode the clone was successful.
After the successful cloning in debug-mode
I tried again with non-debug but did not change the moidified ramdisk back, cloning worked
After the successful cloning I re-did with the original ramdisk: cloning worked
I have no idea whats going on.
thx!
R
root@1stNAS:/images/dev/000db94a39a8# file d1p1.img.000
d1p1.img.000: gzip compressed data, last modified: Sun Nov 25 20:22:26 2018, from Unix
cat d1.partitions
label: dos
label-id: 0x42d3de51
device: /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= 449218560, type=83
/dev/sda2 : start= 449220608, size= 39176560, type=82
And here comes the log:
[Sun Nov 25 root@fogclient ~]# fog
* Running post init scripts.........................Done
* Press [Enter] key to continue
==================================
=== ==== ===== ====
=== ========= == === == ===
=== ======== ==== == ==== ===
=== ======== ==== == =========
=== ==== ==== == =========
=== ======== ==== == === ===
=== ======== ==== == ==== ===
=== ========= == === == ===
=== ========== ===== ====
==================================
===== Free Opensource Ghost ======
==================================
============ Credits =============
= https://fogproject.org/Credits =
==================================
== Released under GPL Version 3 ==
==================================
Version: 1.5.5
* Press [Enter] key to continue
* Verifying network interface configuration.........Done
* Press [Enter] key to continue
* Checking Operating System.........................Windows XP
* Checking CPU Cores................................4
* Send method.......................................NFS
* Attempting to check in............................Done
* Press [Enter] key to continue
* Mounting File System..............................Done
* Press [Enter] key to continue
* Checking Mounted File System......................Done
* Press [Enter] key to continue
* Checking img variable is set......................Done
* Press [Enter] key to continue
* Preparing to send image file to server
* Preparing backup location.........................Done
* Press [Enter] key to continue
* Setting permission on /images/000db94a39a8........Done
* Press [Enter] key to continue
* Removing any pre-existing files...................Done
* Press [Enter] key to continue
* Using Image: nsa193_ssd_msata
* Looking for Hard Disk.............................Done
* Press [Enter] key to continue
* Reading Partition Tables..........................Done
* Press [Enter] key to continue
* Using Hard Disk: /dev/sda
* Now FOG will attempt to capture the image using Partclone
* Press [Enter] key to continue
* Processing Hard Disk: /dev/sda
* Saving original disk/parts UUIDs
* Press [Enter] key to continue
* Saving Partition Tables (MBR).....................Done
* Press [Enter] key to continue
Done
* Press [Enter] key to continue
* Processing Partition: /dev/sda1 (1)
* Press [Enter] key to continue
* Using partclone.extfs
* Press [Enter] key to continue
Cloned successfully.
* Image Captured
* Press [Enter] key to continue
* Processing Partition: /dev/sda2 (2)
* Press [Enter] key to continue
* Saving swap partition UUID
* Saving UUID (bf7eaf1e-a5fc-4a3a-aa1d-3fc55096e747) for (/dev/sda2)
* Stopping FOG Status Reporter......................Done
* Press [Enter] key to continue
* Task Complete
* Updating Database.................................
Done
* Press [Enter] key to continue
[Sun Nov 25 root@fogclient ~]#
@Sebastian-Roth said in Cloning loops forever:
ssh -o âUserKnownHostsFile=/dev/nullâ -o âStrictHostKeyChecking=noâ root@
Hi There!
Uh! It took me a while to make a video.
Since i installed 1.5.5 the behaviour changed a bit: now the computer reboots everyx time it wants to get a new clone, but loops anyway.
Where can I put it? Its got 80MB. Maybe i can send it by âwetransfer.comâ?
Here is the description:
you can see 3 Windows:
upper left: serial console to the computer that shall be captured
upper rigth: âwatch -la /images/dev/00âŠâ
these are the events at specific timestamps:
0:29 computer boots (its headless, only serial console is available to watch it)
1:47: directories+files are created
1:50: clone starts
3:28 reboot
4:54 ftp test
Hi!
My clone (capture) loops forever.
I tried these 3 things - more than once
1st) i checked all passwords, I walked through https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP
2nd) i installed 1.5.5 over 1.5.0
3rd) i checked all passwords - incl. the linux-user âfogâ
What happens:
when clone is finished, it starts from beginning. Computer does NOT(!) reboot, it simply starts to clone again.
the /images/dev/00⊠looks like:
drwxrwxrwx 2 fog root 96 Nov 20 22:56 .
drwxrwxrwx 4 fog root 4096 Nov 20 22:04 âŠ
-rw-râr-- 1 root root 0 Nov 20 22:56 d1.has_grub
-rw-râr-- 1 root root 1048576 Nov 20 22:56 d1.mbr
-rw-râr-- 1 root root 20 Nov 20 22:56 d1p1.img.000
-rw-râr-- 1 root root 182 Nov 20 22:56 d1.partitions
Give attention to the d1p1.img.000 entry.
It starts with size 0, then goes to 20, and thats it. it never grows bigger.
i can change whatever permissions what ever i want, no change.
when ist starts over, the MAC-Dir is deleted and newly made with root:root and thats it.
Any help is welcome!
regards
@tom-elliott
I think i will change the FS of the disk, so it will become cloneable.
have a nice day and thanks a lot for your help!
can you mark the thread solved?
@tom-elliott
Hi!
i just saw, that FOG uses partclone 0.2.89 but 0.3.10 is actual.
BTRFS seems to be an issue with partclone.
Is there a way to upgrade partclone to 0.3.10 in a debian installation of fog ?
thx!
@tom-elliott
Okay, clonezille (live) crashed too.
it terminates without any error-message or exit-code.
the only solution I came up at the moment is:
running fog DEBUG and boot into a shell
then mount the fog nfs share
then dd both disks onto that share
so, at least i have a backup
if you have any better idea, you are welcome!
best regards,
Xibeaga
@tom-elliott
hey, no problem at all! :)))
Okay, ic. I suspected partclone too.
I never used clonezilla, I just know it exists. I use fog since 0.98 or soâŠ
Ok, I will try clonezilla on this.
Hm, maybe i should try fog with dd first?
Hi!
host MYCOOLHOST {
hardware ethernet 00:00:00:00:00:00;
fixed-address 1.2.3.4;
}
hth
xibeaga
Here you can see the mount and fdisk output:
root@uhura:~# mount | grep âsd[a|b]â
/dev/sdb1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda1 on /harddisk type btrfs (rw,relatime,ssd,space_cache,subvolid=5,subvol=/)
root@uhura:~# fdisk -l /dev/sdb /dev/sda
Medium /dev/sdb: 14,9 GiB, 16013942784 Bytes, 31277232 Sektoren
Einheiten: sectors von 1 * 512 = 512 Bytes
SektorengröĂe (logisch/physisch): 512 Bytes / 512 Bytes
I/O GröĂe (minimal/optimal): 512 Bytes / 512 Bytes
Typ der Medienbezeichnung: gpt
Medienkennung: FBF13E8A-6828-4DF5-93D2-F3781739F721
GerĂ€t Start Ende Sektoren GröĂe Typ
/dev/sdb1 2048 31277055 31275008 14,9G Linux filesystem
Medium /dev/sda: 894,3 GiB, 960197124096 Bytes, 1875385008 Sektoren
Einheiten: sectors von 1 * 512 = 512 Bytes
SektorengröĂe (logisch/physisch): 512 Bytes / 512 Bytes
I/O GröĂe (minimal/optimal): 512 Bytes / 512 Bytes
Typ der Medienbezeichnung: gpt
Medienkennung: 945D3E9A-EC7B-4ECA-80E2-CED391F83CB7
GerĂ€t Start Ende Sektoren GröĂe Typ
/dev/sda1 2048 1875384974 1875382927 894,3G Linux filesystem
Hi Tom!
Ah, sdA is data, i boot from sdB:
sdb = ext4 = boot disk
sda = btrfs = data
so, the problem persists. Any idea about it?
Maybe BTRFS is the problem?
thx!
Regards,
Xibeaga
Hi!
I get this error:
set block XXX out of boundary(XXXX)
The Image: MultiDisk/Mulktipartition
Disk1: ext4 (boot-disk)
Disk2: btrfs (data-disk)
partclone uncompressed
I do clone lot of disks, even headless embedded devices (works great!!) but this Lenovo Laptop makes problems
As you can see on the pic: error is even in debug-mode
Any help is welcome!
regards,
Xibeaga
Hey, konw I know lots more about fog than i used to know, and i use it since 0.30 or so
I Found it!
*** OUCH ***
The apache-log revealed it: HTTP 401 is the problem. 401 -> user authorization required!!!
/var/www was protected by .htaccess sigh
I am really sorry to have bothered you with this, on the other hand: I would have had no chance to figure it out without your hint to check the apache-log
THANKS A LOT !!!
Best regards!
Xibeaga
Okay, i did. no change to the behaviour.
I recognized that dir ipxe is not owned by âwww-dataâ but by âfogâ, the contents of ipxe are also owned by âfogâ
everything else is owned by âwww-dataâ it seems.
And YES this appears on all clients, also with different hardware
How i generated the logfile:
Okay, here is a screenshot, maybe this helps.
[url=â/_imported_xf_attachments/1/1524_fogerror.png?:â]fogerror.png[/url]
this: IP looks fine
#!ipxe
cpuid --ext 29 && set arch x86_64 || set arch i386
params
param mac0 ${net0/mac}
param arch ${arch}
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain [url]http://172.16.3.93/fog/service/ipxe/boot.php##params[/url]