Changes

Jump to navigation Jump to search
Line 1: Line 1:  
==Recovering SME Server with lvm drives==
 
==Recovering SME Server with lvm drives==
 +
    
==Method A==
 
==Method A==
 +
 +
{{note box| We go to work with [http://www.sysresccd.org/SystemRescueCd_Homepage SystemRescueCd] wich is a Linux system rescue disk available as a bootable CD-ROM or USB stick for administrating or repairing your system and data after a crash.[http://www.sysresccd.org/Download Download]. The goal is to get mounted your logical volumes on /mnt where you can save them on a usb disk.}}
 +
 +
start the system with your system rescue cd or you usb stick, choose your keyboard settings
 +
 +
then start the server X
 +
 +
startx
 +
 +
next start a terminal, after verify if your raid is initated.
 +
 +
cat  /proc/mdstat
 +
 +
if you are lucky the output will look like this
 +
 +
# cat /proc/mdstat
 +
Personalities : [raid1]
 +
md99 : active raid1 sdb1[1] sda1[0]
 +
      104320 blocks [2/2] [UU]
 +
     
 +
md100 : active raid1 sdb2[1] sda2[0]
 +
      262036096 blocks [2/2] [UU]
 +
     
 +
unused devices: <none>
 +
 +
so we need to launch the LVM
 +
 +
vgchange -ay
 +
 +
afterward if the LVM is launched without error messages, we can mount the LVM in /mnt
 +
 +
mkdir /mnt/recover
 +
mount /dev/main/root /mnt/recover
 +
 +
{{tip box|if you have a name of logical volume who is not '''/dev/main/root''', you can type this command for knowing all your logical volume, and adapt this to your configuration.}}
 +
 +
lvdisplay
 +
 +
Now you have successfully mounted your LVM and able to read your data on /mnt/recover, you can save them on a usb disk with the file browser for example.
 +
 +
==Method B==
 
Let’s try starting the raid and see what we get:
 
Let’s try starting the raid and see what we get:
  

Navigation menu