Changes

From SME Server
Jump to navigationJump to search
30 bytes added ,  00:00, 27 December 2019
Line 153: Line 153:  
==== create a raid lvm aside ====
 
==== create a raid lvm aside ====
 
I had a couple of drive in an external eSATA dock. So first I removed one, put the new storage drive and create a degraded RAID1+ LVM  
 
I had a couple of drive in an external eSATA dock. So first I removed one, put the new storage drive and create a degraded RAID1+ LVM  
gdisk /dev/sde #then format as fd00 linux raid the whole drive
+
  mdadm --create /dev/md4 --level=raid1 --raid-devices=1 /dev/sde --force  
  mdadm --create /dev/md4 --level=raid1 --raid-devices=1 /dev/sde1 --force  
   
  pvcreate /dev/md4  
 
  pvcreate /dev/md4  
 
  vgcreate nasdrive /dev/md4  
 
  vgcreate nasdrive /dev/md4  
Line 167: Line 166:  
then copy files from needed drives
 
then copy files from needed drives
   −
then umount the drives and put the second new drive in the dock, and :
+
then umount the drives :
  gdisk /dev/sdf #then format as fd00 linux raid the whole drive
+
  umount /dev/nasdrive/*
  mdadm --grow /dev/md4 --add   /dev/sdf1 --raid-devices=2
+
unmount /dev/oldrives
 +
vgchange -a n nasdrive
 +
mdadm --stop /dev/md4
 +
change disk in the dock
 +
mdadm --assemble --scan
 +
vgchange -a y nasdrive
 +
  mdadm --grow /dev/md4 --add /dev/sdc --raid-devices=2
 +
mdadm --add  /dev/md4 --add /dev/sdc
    
then final step fill fstab to have it mounted on boot.
 
then final step fill fstab to have it mounted on boot.
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,240

edits

Navigation menu