Changes

From SME Server
Jump to navigationJump to search
235 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 :
 +
umount /dev/nasdrive/*
 +
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.
Line 176: Line 184:  
* [[Raid]]
 
* [[Raid]]
 
* https://forums.centos.org/viewtopic.php?t=65165
 
* https://forums.centos.org/viewtopic.php?t=65165
*
+
*http://ryandoyle.net/posts/expanding-a-lvm-partition-to-fill-remaining-drive-space/
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu