<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Upload task from a failing disk]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I’m using FOG 1.2.0 on Centos 6 as advocated but, as secondary role, I use it as disaster recovery system.<br />
This is done by scheduling upload jobs on a bunch of PCs to be downloaded in minutes whenever a disk crashes.<br />
Unfortunately one of these PCs has seriously got a failing disk (bad blocks). It would the perfect case for a disaster recovery tool, but I discovered that the last uploaded image was corrupted, since the image file of the relevant partition was simply cut short as partclone exited when it found the bad blocks.<br />
Since I had a previous week’s valid image to deploy, I got the system back up&amp;running in minutes through a FOG download task, but this issue forced me to think about.<br />
Thus, first I made a script to batch check ALL .img files through partclone.chkimg to be sure to have at least one useable disk image. Next, I noticed that, following partclone project’s suggestions, I was able to manually have a working image of the failing disk’s partitions by using partclone’s -R (–rescue) option.<br />
Better safe than sorry: thus I managed to add this option to all partclone.&lt;fstype&gt; instances of fog.upload script considering that imaging a working disk wouldn’t be affected by -R option while on a dying one I would appreciate the difference.<br />
I tried to upload again the damaged disk (I hope it won’t ultimately fail before my tests are over!) but no avail since -R options seems have no effect in fog.upload.<br />
Where am I wrong? Are there other places where partclone options may be fed to the scripts? How can I force partclone to use -R option otherwise?</p>
<p dir="auto">Thanks for your help<br />
lsalv</p>
]]></description><link>http://forums.fogproject.org/topic/4480/upload-task-from-a-failing-disk</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 10:58:55 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/4480.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Feb 2015 00:15:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Upload task from a failing disk on Mon, 23 Feb 2015 14:54:23 GMT]]></title><description><![CDATA[<p dir="auto">Partclone has an logging option (–logfile) and you could write that log to the same place where your images are (NFS mounted to /images on the client)… Just an idea.</p>
]]></description><link>http://forums.fogproject.org/post/34960</link><guid isPermaLink="true">http://forums.fogproject.org/post/34960</guid><dc:creator><![CDATA[Sebastian Roth]]></dc:creator><pubDate>Mon, 23 Feb 2015 14:54:23 GMT</pubDate></item><item><title><![CDATA[Reply to Upload task from a failing disk on Sun, 22 Feb 2015 22:43:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
I made the changes and all works well.<br />
Now, all images are made regardless of disk status, thus I’m able to restore anyway, as I actually did on the failing drive.<br />
Next step would be have some more logging of the partclone process, just to be sure. I’ll look around for hints.<br />
Thanks for your help!!</p>
<p dir="auto">lsalv</p>
]]></description><link>http://forums.fogproject.org/post/34936</link><guid isPermaLink="true">http://forums.fogproject.org/post/34936</guid><dc:creator><![CDATA[lsalv]]></dc:creator><pubDate>Sun, 22 Feb 2015 22:43:22 GMT</pubDate></item><item><title><![CDATA[Reply to Upload task from a failing disk on Fri, 20 Feb 2015 00:29:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi Uncle Frank,</p>
<p dir="auto">Gosh, now I realize what you meant. So stupid not to get it immediately, but working in the middle of the night causes those headaches o_O . Now I’m more aware of the real FOG internals.<br />
I actually got the point to change params in fog.upload as you suggested, and it didn’t work because it was non incorporated in the running kernel init.<br />
Just made it and launched a job to check. I’ll keep you updated.</p>
<p dir="auto">Thanks a lot in the meantime<br />
lsalv</p>
]]></description><link>http://forums.fogproject.org/post/34853</link><guid isPermaLink="true">http://forums.fogproject.org/post/34853</guid><dc:creator><![CDATA[lsalv]]></dc:creator><pubDate>Fri, 20 Feb 2015 00:29:13 GMT</pubDate></item><item><title><![CDATA[Reply to Upload task from a failing disk on Thu, 19 Feb 2015 12:45:29 GMT]]></title><description><![CDATA[<p dir="auto">[quote=“lsalv, post: 42408, member: 27895”]Not clear for me: what file to edit, what to extract and loopmount? I suppose to fog.upload to be edited (I did)[/quote]<br />
Where and how did you edit fog.upload??? Are you aware of this: [url]<a href="http://www.fogproject.org/wiki/index.php/Modifying_the_Init_Image%5B/url%5D" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.fogproject.org/wiki/index.php/Modifying_the_Init_Image[/url]</a></p>
<p dir="auto">When you edit fog.upload please search for the string ‘mps’ and you should find this part of the script:<br />
[CODE]…<br />
elif [ “$imgType” == “mps” ]; then<br />
gptormbr=<code>gdisk -l $hd | grep 'GPT:' | awk '{$1=""; print $0}' | sed 's/^ //'</code>;<br />
…[/CODE]<br />
First partition tables and MBR are saved and then about 40 lines of code further from this point you can see partclone being called…</p>
]]></description><link>http://forums.fogproject.org/post/34822</link><guid isPermaLink="true">http://forums.fogproject.org/post/34822</guid><dc:creator><![CDATA[Sebastian Roth]]></dc:creator><pubDate>Thu, 19 Feb 2015 12:45:29 GMT</pubDate></item><item><title><![CDATA[Reply to Upload task from a failing disk on Wed, 18 Feb 2015 23:15:25 GMT]]></title><description><![CDATA[<p dir="auto">[quote=“Junkhacker, post: 42345, member: 21583”]i’m sure you already know this, but fog isn’t intended to be a disaster recovery tool or backup system. it’s intended to deploy known working images to good hardware. if you intend to use fog for recovery, it would be wise to set up a rotation schedule for image files.[/quote]</p>
<p dir="auto">Hi Junkhacker,</p>
<p dir="auto">Yes, I’m fully aware that I’m out of intended scope (as stated at the very beginning of my first post), but Fog is so elegant a solution that I was fascinated to find new usage, and so far I succeeded. Also I already realized a safety policy for imagefiles was needed, and I did the job with a small series of shell scripts and crontab.<br />
Thanks for help</p>
<p dir="auto">lsalv</p>
]]></description><link>http://forums.fogproject.org/post/34814</link><guid isPermaLink="true">http://forums.fogproject.org/post/34814</guid><dc:creator><![CDATA[lsalv]]></dc:creator><pubDate>Wed, 18 Feb 2015 23:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to Upload task from a failing disk on Wed, 18 Feb 2015 22:53:41 GMT]]></title><description><![CDATA[<p dir="auto">[quote=“Uncle Frank, post: 42332, member: 28116”]Please let us know about the OSID and image type you use and we should be able to point you the right way within fog.upload. As far as I know there aren’t any other places to set partclone options. Well, maybe in ‘usr/share/fog/lib/funcs.sh’.</p>
<p dir="auto">By the way. Did you extract &amp; loopmount before editing the file?? Just asking… :)[/quote]</p>
<p dir="auto">Hi Uncle Frank,</p>
<p dir="auto">Thanks for your help.<br />
OS is WXP and it’s a multiple partition, single disk, not resizable image type. It is cloned by partclone.ntfs whose sole instances are in fog.upload, where I added -R option before all the others.<br />
I’m puzzled because adding this options seems having no effect whatsoever, while a manual partclone.ntfs invocation whth the same parameters as in fog.upload does the job.<br />
Not clear for me: what file to edit, what to extract and loopmount? I suppose to fog.upload to be edited (I did), .img file is clearly wrong since:<br />
a) it is 1.8Gb while the partition is 230Gb whose some 80Gb are used<br />
b) last valid .img was 23Gb<br />
c) partclone.chkimg fails</p>
<p dir="auto">Still investigating</p>
<p dir="auto">Bye<br />
lsalv</p>
]]></description><link>http://forums.fogproject.org/post/34813</link><guid isPermaLink="true">http://forums.fogproject.org/post/34813</guid><dc:creator><![CDATA[lsalv]]></dc:creator><pubDate>Wed, 18 Feb 2015 22:53:41 GMT</pubDate></item><item><title><![CDATA[Reply to Upload task from a failing disk on Wed, 18 Feb 2015 14:29:02 GMT]]></title><description><![CDATA[<p dir="auto">i’m sure you already know this, but fog isn’t intended to be a disaster recovery tool or backup system. it’s intended to deploy known working images to good hardware. if you intend to use fog for recovery, it would be wise to set up a rotation schedule for image files.</p>
]]></description><link>http://forums.fogproject.org/post/34758</link><guid isPermaLink="true">http://forums.fogproject.org/post/34758</guid><dc:creator><![CDATA[Junkhacker]]></dc:creator><pubDate>Wed, 18 Feb 2015 14:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to Upload task from a failing disk on Wed, 18 Feb 2015 09:11:11 GMT]]></title><description><![CDATA[<p dir="auto">Please let us know about the OSID and image type you use and we should be able to point you the right way within fog.upload. As far as I know there aren’t any other places to set partclone options. Well, maybe in ‘usr/share/fog/lib/funcs.sh’.</p>
<p dir="auto">By the way. Did you extract &amp; loopmount before editing the file?? Just asking… <img src="http://forums.fogproject.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=jdbo13lm6ps" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>http://forums.fogproject.org/post/34747</link><guid isPermaLink="true">http://forums.fogproject.org/post/34747</guid><dc:creator><![CDATA[Sebastian Roth]]></dc:creator><pubDate>Wed, 18 Feb 2015 09:11:11 GMT</pubDate></item></channel></rss>