Merge branch 'master' into fetlab
This commit is contained in:
@@ -6,6 +6,39 @@
|
||||
|**H2**|01 /dev/sdb `6TB` <br> `WD-WX21D36PPLPH`|05 |09 |13 |
|
||||
|**H3**|02 /dev/sdc `6TB` <br> `WD-WX21D36PP0K1`|06 |10 |14 |
|
||||
|**H4**|03 /dev/sdd `6TB` <br> `WD-WXB1HB4MJCMM`|07 |11 |15 |
|
||||
## Debian setup install steps
|
||||
```
|
||||
Boot Image Debian Netinstall on USB stick, Advanced Options->Expert Install
|
||||
Language: English, Location: other->Europe->Austria
|
||||
Locale: en_US.UTF-8, Additional Locale: de_AT.UTF-8, System Locale: en_US.UTF-8
|
||||
Keyboard: German
|
||||
Detect and mount CD-ROM, Load installer components: no extra
|
||||
auf KISTL statische IP 192.168.86.7/24 für ariane.fet.htu.tuwien.ac.at einrichten
|
||||
Detect network hardware, Configure Network: enp8s0: Hostname: ariane, IP 192.168.86.7/24 domain fet.htu.tuwien.ac.at
|
||||
Setup Users and Passwords: shadow, user petra
|
||||
Configure the clock: NTP Server: tutimea.tuwien.ac.at
|
||||
Detect disks, partition disks: manual
|
||||
RAID1 md0 with both SSDs https://blog.sleeplessbeastie.eu/2013/10/04/how-to-configure-software-raid1-during-installation-process/
|
||||
/dev/nvmeXn1p1 32GB primary Volume für / in btrfs 32GB
|
||||
/dev/nvmeXn1p5 1.5 GB logical Volume
|
||||
/dev/nvmeXn1p6 1.5 GB logical Volume
|
||||
/dev/nvmeXn1p7 1.5 GB logical Volume
|
||||
/dev/nvmeXn1p8 1.5 GB logical Volume
|
||||
/dev/nvmeXn1p9 90 GB logical Volume
|
||||
ZFS RAIDZ-2 on is already on 4 x 6TB disks = 12TB 0 spares
|
||||
partition1 ariane-root btrfs noatime, discard
|
||||
Generic Kernel
|
||||
Mirror: gd.tuwien.ac.at, allow backported
|
||||
install with ssh server and standard sys utilities
|
||||
Install Grub on /dev/nvme0n1 (to removable media path)
|
||||
Install Grub on /dev/nvme1n1
|
||||
reboot, log in as root
|
||||
edit /etc/ssh/sshd_config set PermitRootlogin to yes
|
||||
service sshd reload
|
||||
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub
|
||||
ssh-copy-id root@ariane from client
|
||||
edit /etc/ssh/sshd_config set PermitRootlogin to Prohibit-Password
|
||||
```
|
||||
## Install ZFS
|
||||
```shell
|
||||
apt-get install zfsutils-linux
|
||||
@@ -67,10 +100,14 @@ mv /var/log/* /ssd/var/log/
|
||||
zfs set mountpoint=/var/log ssd/var/log
|
||||
mv /var/lib/lxc/* /ssd/var/lxc/
|
||||
zfs set mountpoint=/var/lib/lxc ssd/var/lxc
|
||||
zfs create -o com.sun:auto-snapshot=false zv1/sojus
|
||||
zfs create -o com.sun:auto-snapshot=false zv1/daten/Scans
|
||||
```
|
||||
### Set dataset quota
|
||||
```shell
|
||||
zfs set quota=1T zv1/homes zv1/daten zv1/fotos
|
||||
zfs set quota=3T zv1/sojus
|
||||
zfs set quota=5G zv1/daten/Scans
|
||||
```
|
||||
### If intend using ACL someday
|
||||
```shell
|
||||
@@ -129,3 +166,9 @@ mdadm --misc --detail /dev/md0
|
||||
echo check > /sys/block/md0/md/sync_action
|
||||
watch -n 0.1 cat /proc/mdstat
|
||||
```
|
||||
## Shutdown System
|
||||
```shell
|
||||
# stop all LXC containers
|
||||
zfs_mount.sh unmount
|
||||
halt -p
|
||||
```
|
||||
|
||||
15
doc/configs/ariane_mbr_nvme0n1.txt
Normal file
15
doc/configs/ariane_mbr_nvme0n1.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
Disk /dev/nvme0n1: 119.2 GiB, 128035676160 bytes, 250069680 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: dos
|
||||
Disk identifier: 0x21183a98
|
||||
|
||||
Device Boot Start End Sectors Size Id Type
|
||||
/dev/nvme0n1p1 2048 62500863 62498816 29.8G fd Linux raid autodetect
|
||||
/dev/nvme0n1p2 62502910 250068991 187566082 89.4G 5 Extended
|
||||
/dev/nvme0n1p5 62504960 65435647 2930688 1.4G 83 Linux
|
||||
/dev/nvme0n1p6 65437696 68368383 2930688 1.4G 83 Linux
|
||||
/dev/nvme0n1p7 68370432 71301119 2930688 1.4G 83 Linux
|
||||
/dev/nvme0n1p8 71303168 74233855 2930688 1.4G 83 Linux
|
||||
/dev/nvme0n1p9 74235904 250068991 175833088 83.9G 83 Linux
|
||||
16
doc/configs/ariane_mbr_nvme1n1.txt
Normal file
16
doc/configs/ariane_mbr_nvme1n1.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
Disk /dev/nvme1n1: 119.2 GiB, 128035676160 bytes, 250069680 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: dos
|
||||
Disk identifier: 0x35c808a6
|
||||
|
||||
Device Boot Start End Sectors Size Id Type
|
||||
/dev/nvme1n1p1 2048 62500863 62498816 29.8G fd Linux raid autodetect
|
||||
/dev/nvme1n1p2 62502910 250068991 187566082 89.4G 5 Extended
|
||||
/dev/nvme1n1p5 62504960 65435647 2930688 1.4G 83 Linux
|
||||
/dev/nvme1n1p6 65437696 68368383 2930688 1.4G 83 Linux
|
||||
/dev/nvme1n1p7 68370432 71301119 2930688 1.4G 83 Linux
|
||||
/dev/nvme1n1p8 71303168 74233855 2930688 1.4G 83 Linux
|
||||
/dev/nvme1n1p9 74235904 250068991 175833088 83.9G 83 Linux
|
||||
|
||||
9
doc/configs/ariane_mbr_zv1.txt
Normal file
9
doc/configs/ariane_mbr_zv1.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Disk /dev/sdc: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 4096 bytes
|
||||
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: D2B76C08-E0D8-42AC-A0D5-F3A14EA584DF
|
||||
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sdc1 2048 11721045134 11721043087 5.5T Solaris /usr & Apple ZFS
|
||||
1394
doc/configs/kistl-pfSense-backup.xml
Normal file
1394
doc/configs/kistl-pfSense-backup.xml
Normal file
File diff suppressed because it is too large
Load Diff
1268
doc/configs/miruk-pfSense-backup.xml
Normal file
1268
doc/configs/miruk-pfSense-backup.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
doc/configs/wlan-OpenWrt-backup.tar.gz
Normal file
BIN
doc/configs/wlan-OpenWrt-backup.tar.gz
Normal file
Binary file not shown.
3
doc/kistl.md
Normal file
3
doc/kistl.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# kistl
|
||||
## Current config
|
||||
See [config file](configs/kistl-pfSense-backup.xml)
|
||||
11
doc/lxc.md
Normal file
11
doc/lxc.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# LXC container
|
||||
## edit config
|
||||
```shell
|
||||
vi /var/lib/lxc/lxc-container-01/config
|
||||
```
|
||||
## manage container
|
||||
```shell
|
||||
lxc-start -n lxc-container-01
|
||||
lxc-attach -n lxc-container-01
|
||||
lxc-stop -n lxc-container-01
|
||||
```
|
||||
3
doc/miruk.md
Normal file
3
doc/miruk.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# miruk
|
||||
## Current config
|
||||
See [config file](configs/miruk-pfSense-backup.xml)
|
||||
15
doc/sojus.md
Normal file
15
doc/sojus.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# sojus
|
||||
## create big backup locally
|
||||
```shell
|
||||
cryptsetup luksOpen /dev/disk/by-id/ata-<ID>-part1 ata-<ID>-part1
|
||||
zpool import
|
||||
zpool import lab
|
||||
zfs create -o com.sun:auto-snapshot=false lab/backup
|
||||
borg init -e none /lab/backup/ariane.fet.htu.tuwien.ac.at
|
||||
./borg create --show-rc --verbose --stats backup@sojus:system::ariane-{now} /zv1/daten /zv1/fotos /zv1/homes
|
||||
zpool export lab
|
||||
cryptsetup luksClose ata-<ID>-part1
|
||||
sync
|
||||
hdparm -y /dev/disk/by-id/ata-
|
||||
hdparm -C /dev/disk/by-id/ata-
|
||||
```
|
||||
3
doc/wlan.md
Normal file
3
doc/wlan.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# wlan
|
||||
## Current config
|
||||
See [config file](configs/wlan-OpenWrt-backup.tar.gz)
|
||||
Reference in New Issue
Block a user