Changes

From SME Server
Jump to navigationJump to search
1,264 bytes added ,  00:00, 27 December 2019
Line 13: Line 13:  
break=no
 
break=no
 
</inputbox>
 
</inputbox>
 +
 
{| class="wikitable"
 
{| class="wikitable"
!
  −
!
  −
!
  −
!
   
|-
 
|-
 
|create a new page for a regular package :
 
|create a new page for a regular package :
Line 27: Line 24:  
break=no
 
break=no
 
</inputbox>
 
</inputbox>
|
  −
|
   
|-
 
|-
 
|create a new page for a smeserver-* package :
 
|create a new page for a smeserver-* package :
|smeserver-<inputbox>↵type=create↵preload=Contrib/Template-smeserver-↵buttonlabel=Create↵inline=true↵break=no↵</inputbox>
+
|smeserver-<inputbox>
|
+
type=create
|
+
preload=Contrib/Template-smeserver-
|-
+
buttonlabel=Create
|
+
inline=true
|
+
break=no
|
+
</inputbox>
|
   
|}
 
|}
   Line 156: Line 150:     
  /sbin/e-smith/signal-event reboot
 
  /sbin/e-smith/signal-event reboot
 +
 +
==== 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
 +
mdadm --create /dev/md4 --level=raid1 --raid-devices=1 /dev/sde --force
 +
pvcreate /dev/md4
 +
vgcreate nasdrive /dev/md4
 +
lvcreate -L 1.1T -n video nasdrive 
 +
lvcreate -L 500G -n music nasdrive 
 +
lvcreate -L 2T -n backup nasdrive
 +
lvreduce -L 400G /dev/nasdrive/music
 +
lvresize -l +100%FREE /dev/nasdrive/video
 +
mkfs.ext4 /dev/nasdrive/backup -L backuppc
 +
mkfs.ext4 /dev/nasdrive/music -L music 
 +
mkfs.ext4 /dev/nasdrive/video -L video
 +
then copy files from needed drives
 +
 +
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.
 +
 +
sources
 +
* https://linoxide.com/how-tos/how-extend-resize-lvm-partition-linux/#3_Resizing_filesystem
 +
* https://linoxide.com/linux-how-to/lvm-configuration-linux/
 +
* [[Raid]]
 +
* 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,240

edits

Navigation menu