Changes

From SME Server
Jump to navigationJump to search
Line 405: Line 405:  
  mdadm -AR /dev/md8 /dev/sdb2
 
  mdadm -AR /dev/md8 /dev/sdb2
   −
If you have multiple arrays you will need to assemble and run:
+
If you are running other then raid1, you may need to include additional members from other drives:
    
  mdadm -AR /dev/md8 /dev/sdb2 /dev/sdd2 /dev/sde3
 
  mdadm -AR /dev/md8 /dev/sdb2 /dev/sdd2 /dev/sde3
Line 411: Line 411:  
Now see if the array is assembled:
 
Now see if the array is assembled:
   −
  user@user-desktop: ~$ lvs
+
cat /proc/mdstat
   LV  VG  Attr  LSize   Origin Snap%  Move Log Copy%
+
 
  root main -wi-ao   1.53G
+
See if it detects the physical volumes:
  swap main -wi-a- 320.00M
+
 
  user@user-desktop: ~$
+
  user@user-desktop:~$ pvs
 +
   PV        VG  Fmt  Attr PSize PFree
 +
   /dev/md2   main lvm2 a-  1.88G 32.00M
 +
  user@user-desktop:~$
    
To activate all known volume groups in the system:
 
To activate all known volume groups in the system:
Line 423: Line 426:  
  user@user-desktop:~$ vgchange main -a y
 
  user@user-desktop:~$ vgchange main -a y
 
   2 logical volume(s) in volume group "main" now active
 
   2 logical volume(s) in volume group "main" now active
user@user-desktop:~$
+
user@user-desktop:~$
    
Now we should be able to mount the drive:
 
Now we should be able to mount the drive:
    
  user@user-desktop:~$ mount /dev/main/root /mnt/oldsmeserver/
 
  user@user-desktop:~$ mount /dev/main/root /mnt/oldsmeserver/
  user@user-desktop:~dev$
+
  user@user-desktop:~$
    
Looking good so let’s show where our files are:
 
Looking good so let’s show where our files are:
Line 440: Line 443:     
Now you have successfully assembled your array and able to recover your data.
 
Now you have successfully assembled your array and able to recover your data.
 +
 +
Notes:
 +
 +
*If the existing system has lvs already installed and has a volume group called "main" there may be issues.
 +
 +
*If you installed SME Server <7.0 your volume group will be different, to find out your volume group type:
 +
 +
user@user-desktop:~$ vgdisplay
 +
  --- Volume group ---
 +
  VG Name              main  The Volume group name.
 +
  System ID
 +
  Format                lvm2
 +
[..]
 +
user@user-desktop:~$
    
===Backups & Restores===
 
===Backups & Restores===

Navigation menu