Changes

From SME Server
Jump to navigationJump to search
1,009 bytes added ,  19:35, 22 February 2013
Add section as per discussion page and Bug 6195
Line 95: Line 95:     
# Make sure you have a very good backup
 
# Make sure you have a very good backup
# signal-event pre-backup on the old installation
+
# signal-event [[UpgradeDisk:Recovering a system where pre-backup could not be run| pre-backup]] on the old installation
 
# Boot with a SME7 CD or SME 8 CD and only one of your original disks (in the case of a RAID1 arrangement)
 
# Boot with a SME7 CD or SME 8 CD and only one of your original disks (in the case of a RAID1 arrangement)
 
# As per instructions in "Boot from SME Server 7.1 (or newer) install CD" above :
 
# As per instructions in "Boot from SME Server 7.1 (or newer) install CD" above :
Line 181: Line 181:  
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==
 +
{{Warning box| Only use this procedure where pre-backup cannot be run eg in the event of a corrupt filesystem and/or unbootbale server}}
 +
 +
This addresses the situation where the pre-backup was unable to be run eg a sudden power outage that has caused a corrupt filesystem and unbootable server, it concerns the recovery of your mysql db's . It should not be the general case for this procedure, only if you are in a recovery situation where pre-backup is not an option.
 +
 +
The mysql db's are kept in: /var/lib/mysql
 +
 +
Stop the mysql service:
 +
  service mysqld stop
 +
 +
Change directories to the old mysql:
 +
cd /mnt/old/var/lib/
 +
 +
Copy the mysql db's to the new install:
 +
cp -R ./mysql /var/lib/
 +
 +
Change directories to the new mysql:
 +
  cd /var/lib/
 +
 +
Change the ownership on the new install mysql directory:
 +
  chown -R mysql:mysql ./mysql
 +
 +
Restart the mysqld service:
 +
  service mysqld start
    
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
 
[[Category:Administration:Storage]]
 
[[Category:Administration:Storage]]

Navigation menu