Wiki . Forums . Bugs . Translation . Privacy Policy | Search . Simple . Advanced | Reports . Help | Matrix . 10.x . 11.x . 12.x . 13.x . Future . Recent . Contribs

Bug 6195 - Migrate with CopyFrom Disk - unable to change volume name
Summary: Migrate with CopyFrom Disk - unable to change volume name
Status: CLOSED FIXED
Alias: None
Product: SME Server Documentation
Classification: SME Server Extras
Component: Unknown (show other bugs)
Version: 8.0
Hardware: --- ---
: P3 normal
Target Milestone: ---
Assignee: SME Server Docteam
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2010-09-09 16:53 CEST by John Crisp
Modified: 2013-11-23 15:38 CET (History)
5 users (show)

See Also:
Package: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Crisp 2010-09-09 16:53:21 CEST
Not really sure if this is a bug or not but it might be worth looking at for migration purposes.

The following thread refers :

http://forums.contribs.org/index.php/topic,46531.0.html

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, plus I didn't want to use a contrib if possible, and Affa as suggested is both a contrib and requires another machine to hold the backups which I don't have. I remembered doing something similar before - see links below :

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

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

Booted with the V8 CD in rescue mode.

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

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

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

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.

But why it fails I do not understand.

Decided to boot the old drive with a 7.5.1 CD. Ran the commands as per the Wiki and managed to change the LVM name from 'main' to 'oldmain' :

mdadm -AR /dev/md5 /dev/hdc2
lvm vgscan
lvm vgs -v
lvm vgchange -a n
lvm vgrename main oldmain

All seems to change OK.

Rebooted with the new drives plugged in with the old drive as well which is now actually /dev/hdd2 However, you can mount it as a raid device :

mkdir /mnt/old
mount /dev/oldmain/root /mnt/old

Followed the rest of the wiki - currently it is copying over - my guess is it will be OK but I'll report back.

Has something changed with mdadm or lvm between 7.5.1 & 8 ?

B. Rgds
John
Comment 15 chris burnat 2013-11-23 15:38:39 CET
(In reply to Terry Fage from comment #14)
> See comments 11, 12, 13

Closing.
Comment 14 Terry Fage 2013-11-23 12:53:40 CET
See comments 11, 12, 13
Comment 13 Terry Fage 2013-06-02 14:29:49 CEST
This is complete, if agree can be CLOSED
Comment 12 John Crisp 2013-02-26 13:23:36 CET
Tis a thing of beauty.

Close as you see fit.
Comment 11 Terry Fage 2013-02-26 13:12:34 CET
As suggested http://wiki.contribs.org/UpgradeDisk
Comment 10 John Crisp 2013-02-26 07:48:54 CET
(In reply to Terry Fage from comment #9)
> Changes to relevant page
> http://wiki.contribs.org/UpgradeDisk#Recovering_a_system_where_pre-
> backup_could_not_be_run
> 
> Close if agree

Only comment would be the headings for the last two sections should be the same as above them I think. 

Also the section I originally did on the 3rd drive is double spaced as I hadn't a clue what I was doing. Doesn't look like the rest and could be better formatted.
Comment 9 Terry Fage 2013-02-22 10:50:02 CET
Changes to relevant page http://wiki.contribs.org/UpgradeDisk#Recovering_a_system_where_pre-backup_could_not_be_run

Close if agree
Comment 8 John Crisp 2013-02-21 19:20:31 CET
(In reply to Terry Fage from comment #7)
> Can somoene who understands this please see the discussion here:
> http://wiki.contribs.org/Talk:UpgradeDisk
> 
> Is this relevant to this wiki page, where should it be inserted if it is.
> 
> Otherwise this actual doc bug is addressed in the updated contents.

Suggest you add this in a warning block at the end, and possibbly a note link from the words 'pre-backup' to this section

Possible heading similar to :

Recovering a system where you were unable to run pre-backup

Blah....
Comment 7 Terry Fage 2013-02-20 00:44:24 CET
Can somoene who understands this please see the discussion here: http://wiki.contribs.org/Talk:UpgradeDisk

Is this relevant to this wiki page, where should it be inserted if it is.

Otherwise this actual doc bug is addressed in the updated contents.
Comment 6 John Crisp 2013-02-12 19:08:50 CET
I beleive that this is a documentation but and is recorded in :

http://wiki.contribs.org/UpgradeDisk

I am happy if it is moved to docs, page checked and then closed.
Comment 5 John Crisp 2011-04-18 05:12:50 CEST
(In reply to comment #4)
> 
> AFAIK it should be sdX

Depends how the machine picks up the drive - in my case for the move from 8b6 to 8b6 the old drive was on an IDE cable and was hda. The new disks were on SATA as sda, sdb & sdc
Comment 4 Stefano Zamboni 2011-04-13 14:01:51 CEST
(In reply to comment #3)
> 
> Thanks for that Filipo. I'll add it to the wiki when I get a moment. Still begs
> the question as to what is happening ?!

are you sure the hd is seen as hdc?

AFAIK it should be sdX

what's the output of:
fdisk -l
Comment 3 John Crisp 2011-04-11 14:31:00 CEST
(In reply to comment #2)
 
> As a workaround to use 8.x rescue mode, you could use:
> 
> mdadm -A -R -m 2 /dev/md2
> 
> omitting array member, telling mdadm to use minor 2 (that means component of
> md2).
> Another way is using the uuid (-u nnnn...), but it's tedious to write.

Thanks for that Filipo. I'll add it to the wiki when I get a moment. Still begs the question as to what is happening ?!
Comment 2 Filippo Carletti 2011-04-11 02:55:35 CEST
> mdadm -AR /dev/md5 /dev/hdc2
> mdadm: no devices found for /dev/md5

As a workaround to use 8.x rescue mode, you could use:

mdadm -A -R -m 2 /dev/md2

omitting array member, telling mdadm to use minor 2 (that means component of md2).
Another way is using the uuid (-u nnnn...), but it's tedious to write.
Comment 1 John Crisp 2011-04-10 17:23:04 CEST
As a follow up to this, I just tried the same thing moving an installation from 8b6 to 8b6 as I was changing hardware.

I had exactly the same problem again with renaming the volumes and had to use a 7.x disk to do it.