LinHES Forums
http://forum.linhes.org/

Solved! R5D1 -> R5E5 automatic upgrade did not accomplish
http://forum.linhes.org/viewtopic.php?f=1&t=14850
Page 1 of 2

Author:  cahlfors [ Sun Apr 08, 2007 12:21 am ]
Post subject:  Solved! R5D1 -> R5E5 automatic upgrade did not accomplish

Following tjc:s upgrade guide I held my breath and took the plunge. Would I destroy my system? It turns out that the upgrade went according to plans up to the stage where the reboot, instead of dropping you to some setup-shell, simply started MythTV and all was normal.

Everything was there, but the system was actually left in the R5D1 version. :roll: Or so it seems. The menus are the same, the bugs likewise, a freshly added R5E5 frontend detects different backend version etc.

How could this be - what did I do wrong? :?:

/Chris

Author:  tjc [ Sun Apr 08, 2007 9:13 am ]
Post subject: 

Did you download the right image? What does the following command show?
Code:
cat /etc/KnoppMyth-version

I should be, "KnoppMyth R5E50" Try refetching directly from the following locations, and be sure to check that the md5sum matches!
ftp://ftp.knoppmyth.net/R5/R5E50/KnoppMythR5E50.iso
ftp://ftp.knoppmyth.net/R5/R5E50/KnoppMythR5E50.iso.md5sum

OBTW - on the off chance that you're doing something crazy, what does this show?
Code:
cat /myth/backup/backup.list
cat /myth/backup/restore.list

Author:  cahlfors [ Sun Apr 08, 2007 6:41 pm ]
Post subject: 

Well, the image is 5E50 (not 5E5 as I wrote in the first post). It installed nicely on a new frontend from the same disk.

cat /etc/KnoppMyth-version reports 5D1 after two attempted upgrades.

cat /myth/backup/backup.list
cat /myth/backup/restore.list

Both report nonexistent files.

I have never managed to run a backup without failing. However, it is the file listing that does not match. I am thinking it might be because of mounted external directories (under /mnt). The reported files indicate that. All else is in good order.

Thanks for your time!

/Chris

Author:  cahlfors [ Sat Apr 28, 2007 3:56 pm ]
Post subject: 

:(
I'm still stuck.
Since upgrading does not work for me, should I do a fresh install and try to restore afterwards?

/Chris

Author:  cecil [ Sun Apr 29, 2007 12:04 am ]
Post subject: 

There is no such thing as a fresh install and restore afterwards. A fresh install will wipe the drive clean. Was /myth on a LVM volume? Please post the contents of /etc/fstab.

Author:  cahlfors [ Mon Apr 30, 2007 3:58 pm ]
Post subject: 

Ah, no fresh install then. Nope - no LVM in this installation. I've tried to keep it as standard as I could figure to facilitate such things as upgrading following standard procedures. I've been advised to change mount points - hope they are good now.

Thanks :)
/Chris

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0

//SCOOBYDOO/data /mnt/SCOOBYDOO/data smbfs username=xxx,password=yyy 0 0
//ZOIDBERG/Film /mnt/ZOIDBERG/Film smbfs username=xxx,password=yyy 0 0
//SCOOBYDOO/sdc /mnt/SCOOBYDOO/sdc smbfs username=xxx,password=yyy 0 0

# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0

Author:  tjc [ Mon Apr 30, 2007 5:47 pm ]
Post subject: 

You can't auto upgrade with a nonstandard disk layout. It really expects to find the root (/) in partition 1 (for example - hda1, hdb1, sda1, ...) and the swap in partition 2 (hda2, hdb2, sdb2), and more specifically for older versions the first and second partitions of the primary master IDE device (/dev/hda1 and /devhda2).

Where it finds /myth is less of a problem because you have a window of opportunity to mount this during the upgrade.

It sounds like you need to follow the manual upgrade procedure described in the pamphlet. http://www.mysettopbox.tv/pamphlet.html

Author:  cahlfors [ Fri May 04, 2007 3:09 pm ]
Post subject: 

Thanks guys! I think you are pointing me in the right direction. Funny, I really thought I had a standard installation with boot, swap and root partitions in that order, but apparently I must have set it up that way not realizing I was deviating from Knoppmyth standard. :oops:

I am really looking forward to a maintenance window to retry the operation now! :D

/Chris

Author:  cahlfors [ Sat May 05, 2007 6:28 am ]
Post subject: 

:( Things aren't going my way.
Following the manual install procedure, I rewrite the partition table with cfdisk, load the configuration, configure the installation and start it. It then warns me that it will format (!) /dev/hda3. I specified that's where I want Knoppmyth to be installed, since that's where the root is. I don't dare to proceed, since I fear it will really format.

If I'm going to lose all my recordings anyway, I might as well do a clean standard install. What would be my best way forward from this very stuck position?

/Chris

Author:  tjc [ Sat May 05, 2007 9:56 am ]
Post subject: 

This is why you don't put everything in one partition.

Have you got another machine or disk with enough free space to hold the contents of the /myth directory?

Author:  cahlfors [ Sun May 06, 2007 7:35 am ]
Post subject: 

Yes :)

Author:  tjc [ Sun May 06, 2007 9:14 am ]
Post subject: 

OK, so do a fresh backup, shut down the FE and BE and copy all of /myth over to the other place. Make sure you do it in such a way as to preserve all the file ownerships and permissions. If you're copying to an MS-Windows machine you probably need to write a tar archive or the like to do this.

Once you've got that in a safe place (the copy may take hours depending on how much data you have), then you can repartition to have [hs]da1 as root (/) (5-6GB), [hs]da2 as swap (1x or 2x your RAM), and [hs]da3 /myth with the rest of the space you want to use.

There are several ways to get the saved contents of /myth back on you new /myth partition (rescue CD, temporary install, ...) so I'll leave that up to you. Just remember that you want to preserve ownerships and permissions.

Finally, do an auto upgrade to pick up the contents of of your backup.

Author:  cahlfors [ Sun May 06, 2007 12:16 pm ]
Post subject: 

Thanks a lot - that'll keep me busy for a while. :D
I'll try to do it right this time. :oops:

The plan is to use rsync /myth with proper options to a Mandriva box, fresh install/standard partitioning of R5E50, rsync /myth back and then upgrade to R5E50. 8)

Cheers,
/Chris

Author:  tjc [ Sun May 06, 2007 12:51 pm ]
Post subject: 

That should do it. There are other ways, but this is probably the fastest & simplest. It's essentially how I transfered everything from the old KM box to the new one (quite a while back now). The only extra step I took was a hostname fix up and you won't need to do that if you keep the same hostname. The rsync is the most time consuming part, and you can walk away and do something else while that's happening.

Author:  cahlfors [ Sun Jun 10, 2007 11:57 am ]
Post subject:  Next obstacle - unable to connect to MySql

Thanks for all the good advice!

Using Samba to my Mandriva box failed for reasons of file size limitations and ownerships, so I ended up using a usb disk.
With this setup, all went well to the upgrade phase, when the restore failed and the system was unable to connect to the database.

The restore failed for reasons of file lists not being quite equal (all else OK), an error message I got already when backing up. I figure that this is reasonable OK and may be because of my all-in-one-partition setup.

It appears, however, that the network parameters where garbled up and although I specified fixed IP, NO DHCP a hostname etc, it came up as "Knoppix" (not my hostname) in the DHCP server log with a dynamic IP - different from those in the setup dialogs.

Now, the backend is unable to connect to MySql and I think the address might have something to do with it. The logs indicate using the fixed IP address as I had specified it.

Trying to change the FE and BE address parameters to match DHCP doesn't help, trying ifconfig to change the interface to a fixed IP neither helps nor survives a restart.

I'm stuck again! :roll:

Oh, I went for R5F1 this time.

/Chris

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/