Koozali.org: home of the SME Server

Migrate 7.5.1 to 8 using old internal drive for 'restore'

Offline ReetP

  • *
  • 3,323
  • +5/-0
Migrate 7.5.1 to 8 using old internal drive for 'restore'
« on: September 09, 2010, 04:21:06 AM »
In the process of testing an upgrade from 7.5.1 to 8

I wanted to upgrade the disks at the same time (USB is slow compared, and I don't have a USB disk big enough to do the backup) and remembered doing something similar before - see links below.

I did a new install of 8b6, signal-event pre-backup on the old disks, removed one and inserted it in the new box.

However, following this process doesn't seem to work as follows :

mdadm -AR /dev/md5 /dev/hdc2
mdadm: no devices found for /dev/md5

Anyone have any ideas ?

B. Rgds
John

http://forums.contribs.org/index.php?topic=39892.0
http://forums.contribs.org/index.php?topic=37686.0
http://wiki.contribs.org/UpgradeDisk
« Last Edit: September 09, 2010, 08:41:25 PM by ReetP »
...
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 ReetP

  • *
  • 3,323
  • +5/-0
Re: Migrate 7.3 to 8 using old internal drive for 'restore'
« Reply #1 on: September 09, 2010, 08:39:54 PM »
Hmmm.

Tried it again.

mdadm --examine --scan reveals :

ARRAY /dev/md1 level=raid1 num-devices=2 UUID=e612cfc4 etc
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=558aae94 etc

I guess this is the old array information read from the drive that is plugged in.

I only have one drive and a CDrom in the machine and have checked I am using the correct drive - /dev/hdc

I am using the V8b6 boot CD and rescue mode

Has something changed with mdadm or lvm ?

Wondering if I ought to try & rename the LVM with a SME 7 disk ???

Any help gratefully received. I'm not sure this qualifies as a bug - perhaps someone can advise whether it should go in the tracker ?
...
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 Stefano

  • *
  • 10,815
  • +1/-0
Re: Migrate 7.3 to 8 using old internal drive for 'restore'
« Reply #2 on: September 09, 2010, 08:42:29 PM »
IMHO, if you are going to upgrade your hw too (i.e. use a new server) you should take a look at Affa

my 2c

Offline Stefano

  • *
  • 10,815
  • +1/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #3 on: September 09, 2010, 08:43:25 PM »
Any help gratefully received. I'm not sure this qualifies as a bug - perhaps someone can advise whether it should go in the tracker ?

sure.. please report it in bugzilla and link here the reference, thank you

Offline ReetP

  • *
  • 3,323
  • +5/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #4 on: September 10, 2010, 12:59:24 AM »
Hi Stefano, thanks for the replies.

Bug filed : http://bugs.contribs.org/show_bug.cgi?id=6195

I didn't want to use another contrib if I could help it. Affa also requires a backup server, which I don't have.

For the sake of the thread, I booted with a 7.5.1 CD and one disk only. I then followed the Wiki to rename the volume.

I then rebooted with the new drives and the one old drive and followed the Wiki to mount the drive. It is currently copying over - my guess (TBC) that it is probably OK as I could see all the data.

My guess is that something has changed with mdadm between V7 & V8

Will post back when it has finished copying to confirm whether it has worked

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 ReetP

  • *
  • 3,323
  • +5/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #5 on: September 11, 2010, 07:38:31 PM »
All moved over finally. Biggest sticking point was some errors in some files - presumably from a early problem that I had never picked up. I had to fsck the old drive and remove the errors. Once that was done, it copied easily.
...
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 ReetP

  • *
  • 3,323
  • +5/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #6 on: September 11, 2010, 11:36:53 PM »
Notes have been added here :

http://wiki.contribs.org/UpgradeDisk
...
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 christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #7 on: September 13, 2010, 04:42:47 AM »
Notes have been added here :

http://wiki.contribs.org/UpgradeDisk
Thank you for documenting this. I think you just saved me and others a tonne of grief. This is my generally preferred method of upgrading my disks.
SME since 2003

Offline ReetP

  • *
  • 3,323
  • +5/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #8 on: September 13, 2010, 11:09:08 AM »
Thank you for documenting this. I think you just saved me and others a tonne of grief. This is my generally preferred method of upgrading my disks.

No worries. Me too. Just wish someone had been there before me !! Cost me quite a few hours :-)

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 SuperGrover

  • **
  • 56
  • +0/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #9 on: November 29, 2010, 08:19:37 PM »
Hi,

I will try to perform the same steps, but if it is not working, do I need to undo the signal-event pre-backup command, or will it be undone by booting from that disk?

Thanks,

SuperGrover

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #10 on: November 29, 2010, 10:23:15 PM »
SuperGrover

Quote
...do I need to undo the signal-event pre-backup command...

No.
It does not need to be undone. It just dumps the mysql database ready for backup (or restore in this case). It will be overwritten & deleted next time you peform a backup.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ReetP

  • *
  • 3,323
  • +5/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #11 on: November 29, 2010, 11:28:14 PM »
It does not need to be undone. It just dumps the mysql database ready for backup (or restore in this case). It will be overwritten & deleted next time you peform a backup.

Thanks Mary - you beat me too 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 cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #12 on: November 30, 2010, 10:23:57 AM »
It will be overwritten & deleted next time you peform a backup.
No, deleted and freshly dumped, to be precise. :-)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #13 on: November 30, 2010, 10:49:12 AM »
cactus

Quote
No, deleted and freshly dumped, to be precise. :-)

Which I think is equivalent to being overwritten, ........and then deleted at the end of the backup IIRC. :)
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline SuperGrover

  • **
  • 56
  • +0/-0
Re: Migrate 7.5.1 to 8 using old internal drive for 'restore'
« Reply #14 on: December 02, 2010, 01:50:00 PM »
Hi there (again),

yesterday I received my 2 new sata disks so I did the following.

On the existing 7.5.1 installation on a PATA drive, I attached one of the new SATA disks to sync it with the current installation.

After syncing, I took this disk and hooked it up to a different computer running a freshly installed SME 7.5.1

I used the upgradedisk commands and that all looked fine.

But, a lot of my information is lost. All /opt files (squeezeboxmusic, torrentflux etc.) are not copied, and also the contribs are not there.

Before I tried the Affa method, but the rpms_missing file was completely empty, so this also didn't help me a lot.

To be short, how can I easily change the current 1 disk PATA installation to a 1 disk SATA installation without all these problems. This shouldn't be this hard in my opinion, this way the software RAID of SME server over 1 PATA and 1 SATA disk is useless, because the machine won't boot from the 'backup' disk.

Hopefully somebody can help me to get it fixed, or point me to a topic which I can use.