<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.koozali.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.koozali.org/"
          
          maintainer="staff@lists.contribs.org"
>

    <bug>
          <bug_id>6195</bug_id>
          
          <creation_ts>2010-09-09 16:53:21 +0200</creation_ts>
          <short_desc>Migrate with CopyFrom Disk - unable to change volume name</short_desc>
          <delta_ts>2013-11-23 15:38:39 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>SME Server Extras</classification>
          <product>SME Server Documentation</product>
          <component>Unknown</component>
          <version>8.0</version>
          <rep_platform>---</rep_platform>
          <op_sys>---</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Crisp">jcrisp</reporter>
          <assigned_to name="SME Server Docteam">docteam</assigned_to>
          <cc>devlist</cc>
    
    <cc>esmith</cc>
    
    <cc>filippo.carletti</cc>
    
    <cc>tfage</cc>
    
    <cc>zamboni</cc>
          
          
          <cf_package>---</cf_package>
          <votes>0</votes>

      

      

      

          <comment_sort_order>newest_to_oldest_desc_first</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57119</commentid>
    <comment_count>0</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2010-09-09 16:53:21 +0200</bug_when>
    <thetext>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&apos;t have a USB disk big enough to do the backup, plus I didn&apos;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&apos;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&apos;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 &apos;main&apos; to &apos;oldmain&apos; :

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&apos;ll report back.

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

B. Rgds
John</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75063</commentid>
    <comment_count>15</comment_count>
    <who name="chris burnat">devlist</who>
    <bug_when>2013-11-23 15:38:39 +0100</bug_when>
    <thetext>(In reply to Terry Fage from comment #14)
&gt; See comments 11, 12, 13

Closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75042</commentid>
    <comment_count>14</comment_count>
    <who name="Terry Fage">tfage</who>
    <bug_when>2013-11-23 12:53:40 +0100</bug_when>
    <thetext>See comments 11, 12, 13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70679</commentid>
    <comment_count>13</comment_count>
    <who name="Terry Fage">tfage</who>
    <bug_when>2013-06-02 14:29:49 +0200</bug_when>
    <thetext>This is complete, if agree can be CLOSED</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68187</commentid>
    <comment_count>12</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2013-02-26 13:23:36 +0100</bug_when>
    <thetext>Tis a thing of beauty.

Close as you see fit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68186</commentid>
    <comment_count>11</comment_count>
    <who name="Terry Fage">tfage</who>
    <bug_when>2013-02-26 13:12:34 +0100</bug_when>
    <thetext>As suggested http://wiki.contribs.org/UpgradeDisk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68158</commentid>
    <comment_count>10</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2013-02-26 07:48:54 +0100</bug_when>
    <thetext>(In reply to Terry Fage from comment #9)
&gt; Changes to relevant page
&gt; http://wiki.contribs.org/UpgradeDisk#Recovering_a_system_where_pre-
&gt; backup_could_not_be_run
&gt; 
&gt; 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&apos;t a clue what I was doing. Doesn&apos;t look like the rest and could be better formatted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68031</commentid>
    <comment_count>9</comment_count>
    <who name="Terry Fage">tfage</who>
    <bug_when>2013-02-22 10:50:02 +0100</bug_when>
    <thetext>Changes to relevant page http://wiki.contribs.org/UpgradeDisk#Recovering_a_system_where_pre-backup_could_not_be_run

Close if agree</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67984</commentid>
    <comment_count>8</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2013-02-21 19:20:31 +0100</bug_when>
    <thetext>(In reply to Terry Fage from comment #7)
&gt; Can somoene who understands this please see the discussion here:
&gt; http://wiki.contribs.org/Talk:UpgradeDisk
&gt; 
&gt; Is this relevant to this wiki page, where should it be inserted if it is.
&gt; 
&gt; 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 &apos;pre-backup&apos; to this section

Possible heading similar to :

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

Blah....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67906</commentid>
    <comment_count>7</comment_count>
    <who name="Terry Fage">tfage</who>
    <bug_when>2013-02-20 00:44:24 +0100</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67549</commentid>
    <comment_count>6</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2013-02-12 19:08:50 +0100</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60950</commentid>
    <comment_count>5</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2011-04-18 05:12:50 +0200</bug_when>
    <thetext>(In reply to comment #4)
&gt; 
&gt; 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 &amp; sdc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60916</commentid>
    <comment_count>4</comment_count>
    <who name="Stefano Zamboni">zamboni</who>
    <bug_when>2011-04-13 14:01:51 +0200</bug_when>
    <thetext>(In reply to comment #3)
&gt; 
&gt; Thanks for that Filipo. I&apos;ll add it to the wiki when I get a moment. Still begs
&gt; the question as to what is happening ?!

are you sure the hd is seen as hdc?

AFAIK it should be sdX

what&apos;s the output of:
fdisk -l</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60896</commentid>
    <comment_count>3</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2011-04-11 14:31:00 +0200</bug_when>
    <thetext>(In reply to comment #2)
 
&gt; As a workaround to use 8.x rescue mode, you could use:
&gt; 
&gt; mdadm -A -R -m 2 /dev/md2
&gt; 
&gt; omitting array member, telling mdadm to use minor 2 (that means component of
&gt; md2).
&gt; Another way is using the uuid (-u nnnn...), but it&apos;s tedious to write.

Thanks for that Filipo. I&apos;ll add it to the wiki when I get a moment. Still begs the question as to what is happening ?!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60887</commentid>
    <comment_count>2</comment_count>
    <who name="Filippo Carletti">filippo.carletti</who>
    <bug_when>2011-04-11 02:55:35 +0200</bug_when>
    <thetext>&gt; mdadm -AR /dev/md5 /dev/hdc2
&gt; 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&apos;s tedious to write.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60886</commentid>
    <comment_count>1</comment_count>
    <who name="John Crisp">jcrisp</who>
    <bug_when>2011-04-10 17:23:04 +0200</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>