{"id":32,"date":"2008-12-26T14:11:35","date_gmt":"2008-12-26T02:11:35","guid":{"rendered":"http:\/\/www.mdickinson.dnsalias.org\/php\/wordpress\/?p=32"},"modified":"2008-12-28T08:49:38","modified_gmt":"2008-12-27T20:49:38","slug":"upgrading-to-fc10-is-impossible","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=32","title":{"rendered":"Upgrading to FC10 is impossible !"},"content":{"rendered":"<p>Well, my prevoius post discussd difficulties until this point. But this is the end of the line. Rolling back to FC6.<br \/>\nWhats happened since the last post ?<\/p>\n<h2>Still playing with attempt 5.<\/h2>\n<p>Just glad I made a symbolic link for \/var\/cache\/yum to one of my other filesystems<\/p>\n<p>Removed all the packages that were failing dependencies, and once more &#8216;yum &#8211;obsoletes &#8211;disablerepo=*update* localupdate *&#8217;<br \/>\nOk I must not understand localupdate, it seemed to check the rpm files ?, but then downloaded and installed over 2Gb from the net.<\/p>\n<p>But still not there, the kernel is still fc6. Tried a &#8216;yum &#8211;disablereporepo=*update* upgrade kernel&#8217;, wouldn&#8217;t you know it, a missing dependency on &#8216;hal&#8217;. I think I need hal, not removing that yet.<br \/>\nSo in frustration another &#8216;yum &#8211;disablerepo=*update* &#8211;obsoletes localupdate *&#8217;, bloody hell, it found another 1.5Gb to download off the net; but no missing dependency this time so it probably won&#8217;t get the kernel ???.<\/p>\n<p>After an hout of download time<br \/>\nwarning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4ebfc273<\/p>\n<p>GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: &#8216;\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-fedora-i386&#8217;<br \/>\nYou have new mail in \/var\/spool\/mail\/root<br \/>\n[root@falcon grub]# ls -la \/etc\/pki\/rpm-gpg<br \/>\ntotal 80<br \/>\nWhy the bloody hell can&#8217;t it check that at the start before chewing up 1.5Gb of my monthly bandwidth.<br \/>\nCopied the *KEY* files from the FC10 kickstart directory I had&#8230; and rerun the command again.<br \/>\nWill it find the files in cache or will it download them all again, all the rpm files are in cache now.<br \/>\nNo, it wanted to download them all again, ctrl-C. Checked the man page again, -C flag seems to be want I want to use cache, try again. Hmm, imported a key this time, must be one of the ones I copied in as there were none in cache. Ok, it seems to be using the cached files.<\/p>\n<p>&#8230;<br \/>\n  installing package busybox-anaconda-1.10.3-3.fc10 needs 410MB on the \/usr filesystem<br \/>\n  installing package xorg-x11-fonts-ISO8859-1-100dpi-7.2-6.fc9 needs 410MB on the \/usr filesystem<br \/>\n  installing package ctags-5.7-3.fc10 needs 410MB on the \/usr filesystem<br \/>\n  installing package system-config-rootpassword-1.99.4-2.fc10 needs 410MB on the \/usr filesystem<br \/>\n  installing package wine-core-1.1.7-1.fc10 needs 424MB on the \/usr filesystem<br \/>\n  installing package jlex-javadoc-1.2.6-6.3.fc10 needs 422MB on the \/usr filesystem<br \/>\n  installing package xorg-x11-drv-apm-1.2.0-1.fc9 needs 422MB on the \/usr filesystem<br \/>\n  installing package xorg-x11-xkb-utils-7.2-7.fc10 needs 422MB on the \/usr filesystem<br \/>\n  installing package sound-theme-freedesktop-0.2-2.fc10 needs 423MB on the \/usr filesystem<br \/>\n  installing package xorg-x11-drv-neomagic-1.2.0-1.fc9 needs 423MB on the \/usr filesystem<br \/>\n&#8230;etc&#8230;<br \/>\nNo error message at the end of the install to say the install failed, but $? was 1&#8230; So I must assume it is saying there is no space ???.<br \/>\n[root@falcon usr]# df -k \/usr<br \/>\nFilesystem           1K-blocks      Used Available Use% Mounted on<br \/>\n\/dev\/hda6              4956284   4003744    696708  86% \/usr<\/p>\n<p>I guess I also assume the &#8211;obsoletes option is a waste of time as it&#8217;s obviously not taking into acount packages that would be removed.<br \/>\nrpm reports zero fc10 packages installed.<\/p>\n<p>Boot time again, time to run gpartd. \/home and \/usr partitions are side by side so I&#8217;ll move a couple of Gb from \/home to \/usr.<br \/>\nOk, thats done, lets see what happens this time then.<br \/>\n[root@falcon ~]# df -k \/usr<br \/>\nFilesystem           1K-blocks      Used Available Use% Mounted on<br \/>\n\/dev\/hda6              6912316   4004992   2693340  60% \/usr<\/p>\n<p>So here we try again. This time it only found 1.4G of files needed. Still using the same cached files (at least I assume 40% io-wait time indicates that).<br \/>\nBarf. Segmentation fault.<br \/>\nTry again&#8230; well yum using 0% cpu and no disk IO is a bad sign, left it 20mins, nothing changed. Reboot -Fr time.<br \/>\nServer back up, try again.<br \/>\nyum &#8211;obsoletes &#8211;disablerepo *update* upgrade -C<\/p>\n<p>What !!!!<\/p>\n<p>Running Transaction Test<br \/>\nUsage: new-kernel-pkg [-v] [&#8211;mkinitrd] [&#8211;rminitrd]<br \/>\n       [&#8211;initrdfile=] [&#8211;depmod] [&#8211;rmmoddep]<br \/>\n       [&#8211;kernel-args=] [&#8211;remove-args=]<br \/>\n       [&#8211;banner=] [&#8211;multiboot=multiboot]<br \/>\n       [&#8211;mbargs=mbargs] [&#8211;make-default]<\/p>\n<p>       (ex: new-kernel-pkg &#8211;mkinitrd &#8211;depmod &#8211;install 2.4.7-2)<br \/>\nerror: %unknownscript(kernel-2.6.27.5-117.fc10.i686) scriptlet failed, exit status 1<br \/>\nFinished Transaction Test<br \/>\nTransaction Test Succeeded<br \/>\nLots of crap in the log like<br \/>\n[(&#8216;installing package k3b-1.0.5-6.fc10 needs 5MB on the \/usr filesystem&#8217;, (9, &#8216;\/usr&#8217;, 4444160L)), (&#8216;installing package planner-0.14.3-6.fc10 needs 7MB on the \/usr filesystem&#8217;, (9, &#8216;\/usr&#8217;, 6684672L)), (&#8216;installing package redhat-lsb-3.2-2.fc10 needs 7MB on the \/usr filesystem&#8217;, (9, &#8216;\/usr&#8217;, 7270400L)), (&#8216;installing package devhelp-0.21-3.fc10 needs 8MB on the \/usr filesystem&#8217;, (9, &#8216;\/usr&#8217;, 8003584L)), (&#8216;installing package kdepim-4.1.2-5.fc10 needs 28MB on the \/usr filesystem&#8217;, (9, &#8216;\/usr&#8217;, 28553216L)), <\/p>\n<p>dah, dah, day. Transaction set succeeded my ass<br \/>\n[root@falcon ~]# rpm -qa | grep -i fc10<br \/>\nNothing, no matches. Looks like the installation script broke so badly an error message wasn&#8217;t even produced.<\/p>\n<p>Yum upgrade -C kernel &#8211;disablerepo=*update* again, fails on a hal dependency<br \/>\nyum upgrade -C hal &#8211;disablerepo=*update*, fails on a shadow-utils dependency<br \/>\nyum upgrade -C shadow-utils  &#8211;disablerepo=*update* fails on xenner not available in cache, man page says -C still lets it use the net to resolve dependencies, obviously manpage is wrong<br \/>\nIsn&#8217;t yum supposed to resolve dependencies ?.<br \/>\nyum upgrade shadow-utils  &#8211;disablerepo=*update* from the net repos instead of cache&#8230; another package conflict.<\/p>\n<p>About ready to just use rpm to add all the FC10 packages from the kickstart directory with dependency checking disabled, thats the last resort (well ok, last resort is booting off the mkCDrec backups and rolling back to a nice stable FC6 system).<br \/>\nBut I&#8217;m giving up on attempt 5 for now. Not really sure how to use yum (or rpm) to resolve all the dependency errors that would undoubtably occur from adding all the rpms with dependancy checking turned off, I probably would prefer to roll back to FC6.<\/p>\n<h2>Attempt 6 being tried.<\/h2>\n<p>Same error as a standalone CD install, but I&#8217;ve figured it out now, so the CD install media upgrade may have worked.<\/p>\n<p>Reconfigured my web server as a kickstart server for FC10 (and unplugged it from the internet as I needed to shutdown the firewalls around it do use it as a kickstart server), booted off the install CD with askmethod, typed in the URL. All looking good.<br \/>\nCrap, the same error as doing a standalone CD install, error making directory \/mnt\/sysimage\/var\/cache\/yum\/anaconda-InstallationRepo-200811191949.i386. Now if only I knew where \/mnt was.<br \/>\nBooted off CD again and selected boot from local hard drive &#8212; failed !. Removed CD and booted from hard drive, worked just fine.<br \/>\nWill create a \/sysimage\/var\/cache\/yum (already have a \/var\/cache\/yum&#8230; ahh, wait a minute my \/var\/cache\/yum is a symbolic link to a LVM drive with more space, wonder if that is the issue with the install media ?. Probably, bugger why does it need to use cache, my \/var is less than 1Gb in size. Moved link aside and created a directory yum, reboot again and see what happens. Be a pain if that is the issue with upgrading from the installmedia as I can&#8217;t use gpartd to increase the size of \/var, I have LVM partitions in disk slices around it, but FC10 be default in a fresh install by default slaps everything into an LVM filesystem (apart from \/boot) so it must know about LVM ?, it obviously doesn&#8217;t bother to detect anything but it&#8217;s expected defaults, if that.<br \/>\nHmm, that seems to have been it, got past that error, now it&#8217;s at the dependency check stage again. What a useless error message that one was then, \/mnt\/sysimage\/var\/cache\/yum is \/var\/cache\/yum on the local HD, if it didn&#8217;t have \/sysimage\/ in it I would have figured that out days ago.<br \/>\nMaybe I should have gone for a kickstart install in the first place, but I don&#8217;t have servers lying around to put it on. But at least it seems to be installing packages now.<\/p>\n<p>429 of 1257 packages completed, then the finishing upgrade progress bar appeared. Seems like while this has installed something it hasn&#8217;t done a full upgrade.<br \/>\nHmm, moved up to 431 and froze ?. No eventually &#8216;starting install process&#8217; again. It seems to be handling the lack of space available in \/var\/cache, I&#8217;m actually impressed.<br \/>\nOr maybe not, moved to &#8216;preparing transaction from installaion source&#8217; and has been sitting there for 20mins. I&#8217;m patient, I will give it another two hours. If it hasn&#8217;t moved after that it&#8217;s probably mkCDrec restore time.<\/p>\n<p>Bugger, it crapped out, dependency issues again, 90% of them on man pages for gods sake.<br \/>\nAnd on boot up, if had the FC10 kernal, but got selinux denies on the \/ directory. <\/p>\n<p>And it kept throwing up the full screen x-windows login, not that it worked, just kept dying and restarting.<br \/>\nBooted of the install CD and checked \/etc\/init.d, default runlevel is 3 so why the full screen login crap ?. Mounting the system in recovery mode, doing the chroot and df -k shows all my LVMs are there.<\/p>\n<p>Ok, about ready to recovery from the backup set now. cd&#8217;d to the FC10 package directory and doing a &#8216;rpm &#8211;nodeps -U *&#8217;. If it boots up after that I might think about trying to get everything into sync.<br \/>\nIf it doesn&#8217;t I have no choice but to roll back to FC6.<\/p>\n<p>Ok, it didn&#8217;t work. I have a fried server. selinux denies on \/, what sort of upgrade is that.<br \/>\nCrap.<\/p>\n<p>Well I must now burn all my mkCDrec CD iso images onto real CD&#8217;s and recover back to FC6.<\/p>\n<p>After burning 5 CDs, wait, why don&#8217;t I backup and see if a fresh install works first, after trying to remember where all my customised config files are.<br \/>\nBooted off the install CD again into recovery mode, enabling the network. eth0 came up but no network, manually trying to start the network and add routes showed missing modules in directory \/var\/lib\/modules\/&#8230;fc10.i586. Checked, there was a reason for that, the upgrade had created \/var\/lib\/modules\/&#8230;fc10.i686; so the upgrade decided to use i686 but put in an i586 kernel ???. Anyway, scp -rp the 686 to the 586 and the network came up, still lots of errors logged but it came up. Changed selinux config to permissive just in case, although I intend to stay in the recover shell until the backups are all done.<br \/>\nLots of scp -rp&#8217;s off the server onto my desktop which fortunately has (had :-).) lots of space.<br \/>\nThis is still ongoing, about 100Gb to copy, selectively copy, will take a while.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, my prevoius post discussd difficulties until this point. But this is the end of the line. Rolling back to FC6. Whats happened since the last post ? Still playing with attempt 5. Just glad I made a symbolic link &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=32\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-my-nux-thoughts-and-notes"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}