Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: allsorts on April 17, 2008, 03:25:09 PM

Title: Upgrading discs in 7.3
Post by: allsorts on April 17, 2008, 03:25:09 PM
Took the plunge to upgrade the disc in my 7.3 box today from a single 10GB to two 160GB discs with software RAID1. The procedure as detailed on the http://wiki.contribs.org/Raid page seemed simple and straight forward. And indeed it was as far as the swapping of the hardware and re-syncing the array was concerned, the snags started to arise with the resizing.

The 3rd command lvresize -l +100%FREE main/root complained that  "Volume group main doesn't exist"... Oh dear, the following ext2online command didn't work  with /main/root either. I had a little panic and then searched the wiki and forums and found that /dev/vg_primary/lv_root  may well be a suitable replacement. Tried that and things where added and volumes expanded. There is now a major re-sync running with about 3hrs to go but the server is currently working.

I'll attempt to adjust the wiki page in a moment. I've placed this here for others to find when they hit the same trouble and start digging. Also in the hope that some one who knows about these things can confirm that the use of /dev/vg_primary/lv_root is correct.
Title: Re: Upgrading discs in 7.3
Post by: byte on April 17, 2008, 04:36:59 PM
I'll attempt to adjust the wiki page in a moment. I've placed this here for others to find when they hit the same trouble and start digging. Also in the hope that some one who knows about these things can confirm that the use of /dev/vg_primary/lv_root is correct.

The /dev/vg_primary/lv_root was correct in the earlier releases <7.0 - since we now use /dev/main/root so you may wish to add a note that if trying to upgrade <7.0 then you'll need to use /dev/vg_primary/lv_root
Title: Re: Upgrading discs in 7.3
Post by: allsorts on April 17, 2008, 05:33:56 PM
The /dev/vg_primary/lv_root was correct in the earlier releases <7.0 - since we now use /dev/main/root so you may wish to add a note that if trying to upgrade <7.0 then you'll need to use /dev/vg_primary/lv_root

Thanks for confirming the the /dev/vg_primary/lv_root is correct, I shall sleep a little easier.  :-)

Trouble is, in theory, I have a 7.3 box, that's what it identifies itself as... It has been upgraded rather than a fresh install of 7.3 though. I can't remember what the last fresh install was. Is this a bug or a feature? Wanders off to bugzilla...

http://bugs.contribs.org/show_bug.cgi?id=3883  Looks like someone else has been caught with a similar problem. The wiki docs not giving the full picture or a hint that things might be different on upgraded, rather than fresh installed, systems. I'll comment on that bug that the docs could do with a small note to that effect.

As to the wiki I can't login. I can't remember if I ever had a username for it, the one I'd expect to have I don't know the password for and there is no Forgotten Password link. If I choose another name I get an error back:

Unable to retrieve memberName
MySQL Error Number: 0
MySQL Error Message:

Rather than a create account page...  :sad:
Title: Re: Upgrading discs in 7.3
Post by: brianr on April 17, 2008, 06:02:26 PM
ok, I've updated the wiki as per your findings - can someone just check I got it right?
Title: Re: Upgrading discs in 7.3
Post by: allsorts on April 17, 2008, 07:36:16 PM
Many thanks for being so quick.

It's close. The /dev/vg_  etc also applies to the 4the command and to systems that have been upgraded, presumably from 7.1 beta or earlier looking at the comments in bug 3883.

>  In point 3 above, if trying to upgrade <7.0 then you'll need to use /dev/vg_primary/lv_root instead of main/root

Maybe something along the lines of :

"In the 3rd and 4th commands above if your system has been upgraded from 7.1 beta or earlier then use /dev/vg_primary/lv_root instead of main/root.

Also in the commands should that be main/root or /main/root in the lvresize command, like it is in the ext2online one?

If I had access to the wiki I'd also put all the command sections in the "code" display form. It Might ease the confusion between uppercase O and 0 <zero> and lowercase l and 1 <one>.

Cheers
Dave.
Title: Re: Upgrading discs in 7.3
Post by: brianr on April 17, 2008, 08:58:47 PM
ok, made those changes - how does it look now?

Quote
Also in the commands should that be main/root or /main/root in the lvresize command, like it is in the ext2online one?

No idea - perhaps someone else will come along and tell us..
Title: Re: Upgrading discs in 7.3
Post by: byte on April 17, 2008, 09:19:38 PM
Also in the commands should that be main/root or /main/root in the lvresize command, like it is in the ext2online one?

No that is the right way "main/root" as the lvresize already knows it's a logical volume.
Title: Re: Upgrading discs in 7.3
Post by: allsorts on April 17, 2008, 10:17:53 PM
Yeah that's better and if one engages brain it's obvious that the main/root is correct.   8-)
Title: Re: Upgrading discs in 7.3
Post by: slords on April 18, 2008, 05:38:26 AM
The /dev/vg_primary/lv_root was correct in the earlier releases <7.0 - since we now use /dev/main/root so you may wish to add a note that if trying to upgrade <7.0 then you'll need to use /dev/vg_primary/lv_root

We didn't use LVM in 6.x.  /dev/main/root was on the first official release of 7.0.  The only place that /dev/vg_primary/lv_root was used was in early alpha/beta releases.  If people have this then that means they installed a pre-release version of 7.0.