Changes

From SME Server
Jump to navigationJump to search
1,549 bytes added ,  19:14, 1 October 2010
Line 153: Line 153:  
Now remove the CD and reboot into SME 8 :
 
Now remove the CD and reboot into SME 8 :
   −
  mdadm -AR /dev/md5 /dev/hdx2
+
  mdadm -AR /dev/md5 /dev/hdx2 (n.b. you may find that /dev/md5 already exists)
 
  vgscan
 
  vgscan
 
  vgchange -a y new_vg_name
 
  vgchange -a y new_vg_name
Line 166: Line 166:  
  db configuration setprop backup Program CopyFromDisk status enabled
 
  db configuration setprop backup Program CopyFromDisk status enabled
 
  signal-event pre-restore
 
  signal-event pre-restore
  signal-event restore-tape /mnt/old (note: this step may take a long time depending on how much data is being restored
+
  signal-event restore-tape /mnt/tmp (note: this step may take a long time depending on how much data is being restored
 
  signal-event post-upgrade
 
  signal-event post-upgrade
 
  signal-event reboot
 
  signal-event reboot
Line 173: Line 173:     
All the usual warnings apply. Remember that any old contribs & templates will have to be reinstalled (assuming that they will work with V8)
 
All the usual warnings apply. Remember that any old contribs & templates will have to be reinstalled (assuming that they will work with V8)
 +
 +
 +
== Using a third drive ==
 +
 +
I have just repeated the exercise and it seems to work OK. It was much easier having a third drive. Mark the drives so you know what each contains ! I will refer to them as A, B & C - substitute the relevant drive paths accordingly.
 +
 +
 +
 +
I did the following :
 +
 +
 +
Added the third drive (C) as a hot spare - see : http://wiki.contribs.org/Raid#Adding_another_Hard_Drive_Later
 +
 +
 +
Stop the machine, remove one drive (B) and restart - this makes the array 'fail' and the hot spare will be added to the array and mirrored. Run the pre-backup for (A) & (C). Stop the machine.
 +
 +
 +
Remove the SME7 drives (A) & (C). Install SM8 on the first pulled drive (B) and apply any updates.
 +
 +
 +
Stop the machine. Pull the original disk (A) and store it out of the way - you can always get yourself back with this drive. It is better to save (A) as (C) may not have a boot partition correctly installed - see the notes on adding a hot spare : http://forums.contribs.org/index.php/topic,38041.msg171631.html#msg171631
 +
 +
 +
Reboot with an SME7 CD (see above for details) and the 'new' drive (C) and rename the LVM on it as detailed above
 +
 +
 +
Stop the machine. Plug in the disk with SME8 (B) and the disk with SME7 (C). Boot from the SME8 disk (B). Mount the LVM on the SME7 disk (C) as above and restore from disk (C).
 +
 +
 +
Check that the data has copied over OK, format disk (C) to wipe the old system and then add it to the SME 8 Array.
 +
 +
 +
Finally once you are happy everything is working add back Disk (A)
 +
    
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
 
[[Category:Administration:Storage]]
 
[[Category:Administration:Storage]]

Navigation menu