Koozali.org: home of the SME Server

Amend Wiki documentation

Offline ReetP

  • *
  • 3,731
  • +5/-0
Amend Wiki documentation
« on: January 29, 2008, 02:28:40 PM »
Whilst upgrading the disks in my 7.3 server, I discovered a bit of a problem which I resolved though a search in the forums (strange but true !)

Much time could have been saved had this been added to the Wiki page :http://wiki.contribs.org/UpgradeDisk

I don't have a Wiki login so could someone kindly amend this accordingly as I think it is extremely relevant ? It probably need a small amount of editing - I have added some bits in italics.

Many thanks to all the developers for all their hard work. You really are appreciated !

B. Rgds
John

The resolution to my problem was in this thread :

http://forums.contribs.org/index.php?topic=37686.0

Upgrading disks in a 7.x version

When you try to mount the disks to do a pre-restore, the original disk will not mount.

To mount the disk, you have to rename the volume group on the old drive (so that when you mount it it doesn't conflict with your existing volume group) and then mount it. Here's the procedure:


Boot from SME Server 7.1 install CD
press F5
type "sme rescue" at the command prompt and hit enter
Note: don't start the network and skip mounting the filesystem.
Code:

#mdadm -AR /dev/md5 /dev/hdx2
#lvm vgscan
#lvm vgs -v
#lvm vgchange -a n
#lvm vgrename orig_vg_name new_vg_name
#exit


Now remove the CD and reboot
Code:

#mdadm -AR /dev/md5 /dev/hdx2
#vgscan
#vgchange -a y new_vg_name
#mkdir /mnt/tmp
#mount /dev/new_vg_name/root /mnt/tmp


You should now be able to view all your old data under /mnt/tmp and if required you can use CopyFromDisk to restore the data as follows:
Code:

1. perform signal-event pre-backup on the old disk (probably too late now :-)
2. /sbin/e-smith/db configuration setprop backup Program CopyFromDisk status enabled
3. /sbin/e-smith/signal-event pre-restore
4. /sbin/e-smith/signal-event restore-tape /mnt/tmp
5. /sbin/e-smith/signal-event post-upgrade
6. /sbin/e-smith/signal-event reboot.


When finished simply reboot and you system will be back to normal.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Amend Wiki documentation
« Reply #1 on: January 29, 2008, 02:53:25 PM »
ReetP

Thanks, I added those steps
http://wiki.contribs.org/UpgradeDisk
...

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Amend Wiki documentation
« Reply #2 on: January 29, 2008, 03:14:41 PM »
My pleasure. Wish I could have done it myself, but probably better that a 'pro' does it !

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Amend Wiki documentation
« Reply #3 on: January 29, 2008, 04:02:24 PM »
ReetP

Quote
Wish I could have done it myself, but probably better that a 'pro' does it !

You can do it yourself, it's better that way too as it spreads the workload amongst all of us.

Read this
http://wiki.contribs.org/Help:Contents

Which says:
To help edit this wiki, first register on http://forums.contribs.org, then "request access" and contribute.

The "request access" link takes you too
http://bugs.contribs.org/enter_bug.cgi?product=contribs.org%20web%20site&component=MediaWiki&short_desc=Request%20for%20MediaWiki%20access&comment=I%20would%20like%20access%20to%20the%20wiki.%20My%20forum%20username%20is:%20

Click on that and a mostly prefilled form pops up, then fill in required details to request wiki access for your forum username
...

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Amend Wiki documentation
« Reply #4 on: January 31, 2008, 03:47:47 PM »
Done. Thanks Ray.

B. Rgds, John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation