Changes

From SME Server
Jump to navigationJump to search
1 byte removed ,  21:09, 26 February 2013
m
Formatting onlky
Line 87: Line 87:     
http://bugs.contribs.org/show_bug.cgi?id=6195
 
http://bugs.contribs.org/show_bug.cgi?id=6195
      
With SME 8 being based on CentOS 5, assembling the RAID in rescue mode must be specified using the disk's UUID. If you have the SME 7 CD it will be easier to rename the Volume Group using it per the instructions below. Otherwise use the SME 8 procedure.
 
With SME 8 being based on CentOS 5, assembling the RAID in rescue mode must be specified using the disk's UUID. If you have the SME 7 CD it will be easier to rename the Volume Group using it per the instructions below. Otherwise use the SME 8 procedure.
Line 115: Line 114:  
  lvm vgrename orig_vg_name new_vg_name
 
  lvm vgrename orig_vg_name new_vg_name
 
  exit
 
  exit
      
Now remove the CD and reboot into SME 8 :
 
Now remove the CD and reboot into SME 8 :
Line 128: Line 126:     
You should now be able to view all your old data under /mnt/tmp
 
You should now be able to view all your old data under /mnt/tmp
      
  db configuration setprop backup Program CopyFromDisk status enabled
 
  db configuration setprop backup Program CopyFromDisk status enabled
Line 140: Line 137:  
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)
   −
===Reference information===
+
===Using a third drive===
Additional tips from http://forums.contribs.org/index.php?topic=39892.0
  −
which refers to http://forums.contribs.org/index.php?topic=37686.0
  −
 
  −
To understand more of the background of LVM and RAID data recovery, read this:
  −
 
  −
http://www.linuxjournal.com/article/8874
  −
 
  −
== 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 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 :
 
I did the following :
*Added the third drive (C) as a hot spare - see : http://wiki.contribs.org/Raid#Adding_another_Hard_Drive_Later
+
#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.
+
#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.
+
#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
+
#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.
+
#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).
+
#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.
+
#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)
+
#Finally once you are happy everything is working add back Disk (A)
   −
==Recovering a system where pre-backup could not be run==
+
===Recovering a system where pre-backup could not be run===
 
{{Warning box| Only use this procedure where pre-backup cannot be run eg in the event of a corrupt filesystem and/or unbootbale server}}
 
{{Warning box| Only use this procedure where pre-backup cannot be run eg in the event of a corrupt filesystem and/or unbootbale server}}
   Line 178: Line 167:  
Restart the mysqld service:
 
Restart the mysqld service:
 
   service mysqld start
 
   service mysqld start
 +
 +
===Reference information===
 +
Additional tips from http://forums.contribs.org/index.php?topic=39892.0
 +
which refers to http://forums.contribs.org/index.php?topic=37686.0
 +
 +
To understand more of the background of LVM and RAID data recovery, read this:
 +
 +
http://www.linuxjournal.com/article/8874
 
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
 
[[Category:Administration:Storage]]
 
[[Category:Administration:Storage]]

Navigation menu