« Netflix: Babylon 5: The Lost TalesI bought another air cleaner »

declaring 'orac' alive again.

06/21/10

  05:57:00 pm, by The Dreamer   , 1339 words  
Categories: Software, Computer, Storage, Ubuntu

declaring 'orac' alive again.

'orac' is back, long live 'orac'.

'orac' had gone away on Thursday, it actually started in Wednesday.... For some unknown reason, I decided to start the upgrade of 'orac' from 8.04LTS to 10.04LTS.

The upgrade seemed to go okay, but when I rebooted....it wouldn't boot. I scrambled around looking for a livecd to boot with....did have any 64bit ones handy and 10.04 was hit and miss on booting. But, I could see vg0 (root, home, swap) with all the livecds except 10.04.

Something about 10.04 didn't like how vg0 was set up. I looked at 'box', which had been running 10.04 for a while and was working. Noticed the main difference between the all the other md's and vg's...was that they weren't fdisk'd md's. When I had originally set up 'orac', I had used a recipe that I had found online on how to do it...since initial install of ubuntu onto Raid wasn't straight forward then. and after md1 was created, I had fdisk'd and then pvcreate/vgcreate, etc. on it.

When I added the other two raid sets....I just pvcreated the md and then used it...no fdisk of the md.

In retrospect I should probably have done a backup of the filesystems while I was running a livecd that could see it....and then perhaps remade the disk and restored into it. But, I didn't and while trying to 'fix' the problem...I corrupted things, and I wasn't able to recover (tried pvcreate -u + vgcfgrestore...but couldn't get the filesystems to come back.

After lots of other attempts and such, I reached the point where I decided things were lost and set on to figure out if I can get back.

backuppc localhost doesn't back up the entire localhost....but it had my home directory backed up (but not all of /home), and it was also backing up /etc. Realized the the one thing it wouldn't get is my crontab files. But I had a dd image of most of the disk (the front part munged)....so I string'd and recovered my crontab from it. And, then set out to install 10.04LTS new.

Since md1 was going to get redone, I decided to redo md0..../boot. Made it a bit bigger than before so that it won't get as crowded from accumulating every new kernel that is released until 12.04LTS comes out. Or some future release needed more than the old size to work. Had actually run into this problem years ago at my previous job....

But, the install kept failing....asking for the disk again....I burned several copies, download from other sources, but no go. So, I tried to 9.10 (thinking I would upgrade to 10.04 immediately), but it also didn't work. Eventually, I found a reference on google that said the 10.04 (and 9.10) installs were picky about what kind of optical drive was being used. It specifically mentioned a particular DVD burner, with 'orac' came with a DVD burner...though I have never used the drive since I did the original install. I tried a USB stick, but couldn't get the machine to use that, and the other external drive I could find was firewire (and there's no BIOS option to boot from firewire).

So, I took apart my machine and the firewire drive. And, put the DVD-ROM drive that was in the firewire enclosure into the machine. The DVD-ROM drive had original come from my circa 2003 Dell, known as 'tardis'.....when I had swapped in a DVD burner.

'box' is the Linux machine that I do cd burning on....and I hardly do DVDs anymore, though I did get a new DVD burner recently for the new 'gumby'.

Anyways....with the 'new' optical drive in 'orac'....I was able to get 10.04LTS to install, and then started the long process of getting my environment back. First problem was backuppc installed with a different uid/gid....so it wouldn't access the old /var/lib/backuppc storage. I opted to fix it the wrong way....that took forever....doing the chown of the files/directories. Should've just changed the uid/gid that backuppc had installed itself as. But, then I tried to do the restore....next problem was sudoers, had forgotten about that.

I then restored /etc to another place, and restored my home directory along side of the one the install had created. When done I swapped my home dir and rebooted. That was a mess. The desktop was all messed up...not just missing apps. Figured it was because the desktop didn't like the old settings....but couldn't find any details on how to upgrade desktop, if I hadn't done an upgrade. I thought other OSs handled this kind of thing. But, not here. So, I flipped back and slowly copied stuff over and restored settings etc. And, reinstalled various apps as I went.

Then I decided that I had made sufficient progress on getting 'orac' configured, that I didn't want to lose things. I had disabled backupc from doing automatic backups during the restore. So I turned it back on and back up the other systems around my home (after first doing a new backup of the new 'orac'). It didn't like .gvfs in my home directory....in old version it complained but continued, in this version it complained and the tar returned an error due to previous error...causing the rest of the backup to fail (the localhost backup does 4 'shares')....so I tweaked the config to get it to work.

The only thing I saw was that it tried to backup 'ulkc', my ubuntu notebook...but it wasn't on at the moment, so it failed. It wasn't going to automatically back up anything else yet, since its one of my blackout periods. So, I started kicking off manual backups of various things, and watched it work. First thing that didn't work was a backup of a windows share. Seems smbclient changed since 8.04LTS...and one of the options was used in backuppc 3.0 didn't work anymore. The new is 3.1, and the default options is minus that one switch....so I matched things up and it did its thing.

The only problem that still didn't work, which I think was the reason I decided to bite the bullet and upgrade to 10.04LTS (to get the newer backuppc) was incremental backup where a very large file has changed since the full. Usually the virtual harddrive of a VirtualBox. Sadly this wasn't fixed in 3.1. Guess I'll have to look at some other way to deal with it. Like exclude it from the regular policy and create a new one that only does that one file....or something. Or maybe ....

I continued to work on other things, as I worked through comparing the old /etc with the new 'orac' /etc. Though interrupted by trying to get file shares working (I had exported my Dropbox directory from another server for access from other computers on my home network....though LAN sync is available now, I haven't undone the stuff yet). And, getting snmpd working again....so I could see the impact to resources and network from all the backuppc jobs running in cacti.

One strange problem is that 'orac' can not access the NFS shares on 'lhaven' (RedHat 7.3), but 'box' can....the only difference I can think of is that 'box' was upgraded to 10.04LTS.... Though I guess it is time I worked on moving services off of 'lhaven' and figure out what I'm going to do to either replace or upgrade it.

The other issue was Handbrake. Originally, I had built it by hand...since there wasn't a package for 64-bit Linux. Though later, I got a newer version via PPA. But, the version that I got via PPA for Lucid didn't work. So, I eventually went and built my own again...from the subversion....my build works....

Hopefully, when 12.04LTS comes along....things'll just upgrade smoothly.

The other odd thing, is that 10.04LTS seems slower....particular in file I/O. The machine seems to really degrade in performance doing a large file copy (as was happening when I was copying directories from my old home dir to the new one.) All the CPUs are bored while this is happening (it's a 2.4GHz Core 2 Quad....with 8G of memory....) Hopefully something that'll resolve itself later?

No feedback yet

Now instead of subjecting some poor random forum to a long rambling thought, I will try to consolidate those things into this blog where they can be more easily ignored profess to be collected thoughts from my mind.

Latest Poopli Updaters -- http://lkc.me/poop

bloglovin

There are 20 years 3 months 27 days 13 hours 46 minutes and 57 seconds until the end of time.
And, it has been 4 years 9 months 15 minutes and 59 seconds since The Doctor saved us all from the end of the World!

Search

September 2017
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Google

Linkblog

  XML Feeds

Who's Online?

  • Guest Users: 4
This seal is issued to lawrencechen.net by StopTheHacker Inc.
free blog

hosted by
Green Web Hosting! This site hosted by DreamHost.

monitored by
Monitored by eXternalTest
SiteUptime Web Site Monitoring Service
website uptime