Sky
Version vom 30. März 2019, 22:10 Uhr von Hamatoma (Diskussion | Beiträge)
- debian 9 (stretch)
- m2972.contaboserver.net
Installation
adduser wk adduser citmaster adduser sebastian adduser --uid=202 extbup adduser --uid=201 bupsrv hostname sky.infeos.de apt-get install sudo rsync htop gdisk mkdir /media /media/trg /media/src /media/sixpack
# lokal:mk ssh-copy-id -i ~/.ssh/id_rsa wk@sky # installieren /home/bin
RAID erzeugen
# md0 und md1 existieren schon mknod /dev/md2 b 9 2 chmod 0660 /dev/md2 # 2 Partitionen: 32G + Rest gdisk /dev/sdc # 2 Partitionen: 32G + Rest gdisk /dev/sdd mdadm --create /dev/md2 --assume-clean --level=1 --verbose --raid-devices=2 /dev/sdc2 /dev/sdd2 /usr/share/mdadm/mkconf >/etc/mdadm/mdadm.conf
LVM einrichten
apt-get install lvm2 python3 python pvcreate /dev/md2 vgcreate --physicalextentsize 32M sixpack /dev/md2 lvcreate --size=32M --name=bupdebian sixpack /usr/local/bin/restore/BupRestSky.sh python /usr/local/bin/restore/lvs2create.py python /usr/local/bin/restore/lvs2create.py | grep lvcreate python /usr/local/bin/restore/lvs2mkdir.py python /usr/local/bin/restore/lvs2mkdir.py | grep mkdir