Einbau neue HDDs (#381)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#381
This commit is contained in:
parent
171361ecec
commit
4612074775
3 changed files with 32 additions and 153 deletions
|
@ -134,14 +134,6 @@
|
||||||
autosnap: 'yes'
|
autosnap: 'yes'
|
||||||
autoprune: 'yes'
|
autoprune: 'yes'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### mgrote.apt_manage_sources
|
|
||||||
manage_sources_apt_proxy: ""
|
|
||||||
# Ansible Variablen
|
|
||||||
### sudo
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
### mgrote.apcupsd
|
### mgrote.apcupsd
|
||||||
apcupsd_master_onbatterydelay: 10
|
apcupsd_master_onbatterydelay: 10
|
||||||
apcupsd_master_batterylevel_for_shutdown: 50
|
apcupsd_master_batterylevel_for_shutdown: 50
|
||||||
|
@ -153,3 +145,10 @@
|
||||||
apcupsd_nis_master_listen_ip: 0.0.0.0
|
apcupsd_nis_master_listen_ip: 0.0.0.0
|
||||||
apcupsd_nis_master_listen_port: 3551
|
apcupsd_nis_master_listen_port: 3551
|
||||||
apcupsd_ups_name: APC-BX950U-GR
|
apcupsd_ups_name: APC-BX950U-GR
|
||||||
|
|
||||||
|
### mgrote.apt_manage_sources
|
||||||
|
manage_sources_apt_proxy: ""
|
||||||
|
|
||||||
|
# Ansible Variablen
|
||||||
|
### sudo
|
||||||
|
sudo: false
|
||||||
|
|
|
@ -5,46 +5,24 @@
|
||||||
# HDD_DATA_RAIDZ
|
# HDD_DATA_RAIDZ
|
||||||
# zpool create -f -o ashift=12 hdd_data_raidz raidz /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi3 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi4 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi5
|
# zpool create -f -o ashift=12 hdd_data_raidz raidz /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi3 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi4 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi5
|
||||||
zfs_datasets: # DatenPools werden hier nicht verwaltet
|
zfs_datasets: # DatenPools werden hier nicht verwaltet
|
||||||
|
- dataset: rpool
|
||||||
|
state: present
|
||||||
|
compression: zstd
|
||||||
|
sync: disabled
|
||||||
|
xattr: sa
|
||||||
|
dnodesize: auto
|
||||||
|
atime: on
|
||||||
|
snapdir: hidden
|
||||||
- dataset: rpool/vm
|
- dataset: rpool/vm
|
||||||
state: present
|
state: present
|
||||||
compression: lz4
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: rpool/vm/dir
|
- dataset: rpool/vm/dir
|
||||||
state: present
|
state: present
|
||||||
compression: lz4
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: rpool/vm/zvol
|
- dataset: rpool/vm/zvol
|
||||||
state: present
|
state: present
|
||||||
compression: lz4
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: rpool/vm/qcow
|
- dataset: rpool/vm/qcow
|
||||||
state: present
|
state: present
|
||||||
compression: lz4
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/snapshot_test
|
- dataset: hdd_data_raidz/snapshot_test
|
||||||
state: present
|
state: present
|
||||||
compression: lz4
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
|
|
||||||
### mgrote.zfs_extra # Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*
|
### mgrote.zfs_extra # Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*
|
||||||
zfs_extra_arc_max_size: "2147483648" # 2GB in Bytes
|
zfs_extra_arc_max_size: "2147483648" # 2GB in Bytes
|
||||||
|
|
|
@ -6,46 +6,35 @@
|
||||||
# rpool
|
# rpool
|
||||||
# zpool create -f -o ashift=12 rpool mirror ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0R105094 /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0R105095 mirror /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0T380959 /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0T380961 # ungetestet, wurde nachträglich erweitert
|
# zpool create -f -o ashift=12 rpool mirror ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0R105094 /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0R105095 mirror /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0T380959 /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0T380961 # ungetestet, wurde nachträglich erweitert
|
||||||
# HDD_DATA_RAIDZ
|
# HDD_DATA_RAIDZ
|
||||||
# zpool create -f -o ashift=12 hdd_data_raidz raidz /dev/disk/by-id/ata-WDC_WD80EZAZ-11TDBA0_2SG991TJ /dev/disk/by-id/ata-WDC_WD80EZAZ-11TDBA0_2SGA23EJ /dev/disk/by-id/ata-ST8000DM004-2CX188_ZCT1AK0F
|
# zpool create -f -o ashift=12 hdd_data_raidz raidz /dev/disk/by-id/ata-WDC_WD80EZAZ-11TDBA0_2SG991TJ /dev/disk/by-id/ata-WDC_WD80EZAZ-11TDBA0_2SGA23EJ /dev/disk/by-id/ata-ST8000DM004-2CX188_ZCT1AK0F (alt)
|
||||||
|
# sudo zpool create -o ashift=12 -o feature@encryption=enabled -O encryption=on -O keylocation=prompt -O keyformat=passphrase hdd_data_raidz_neu mirror /dev/disk/by-id/ata-TOSHIBA_MG09ACA18TE_Z1B0A27KFJDH /dev/disk/by-id/ata-TOSHIBA_MG09ACA18TE_Z1B0A28LFJDH (neu)
|
||||||
|
|
||||||
|
|
||||||
### mgrote.zfs_extra
|
### mgrote.zfs_extra
|
||||||
# Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*
|
# Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*
|
||||||
zfs_datasets: # DatenPools werden hier nicht verwaltet
|
zfs_datasets: # DatenPools werden hier nicht verwaltet
|
||||||
|
# rpool
|
||||||
|
- dataset: rpool
|
||||||
|
state: present
|
||||||
|
compression: zstd
|
||||||
|
sync: disabled
|
||||||
|
xattr: sa
|
||||||
|
dnodesize: auto
|
||||||
|
atime: on
|
||||||
|
snapdir: hidden
|
||||||
- dataset: rpool/vm
|
- dataset: rpool/vm
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: rpool/vm/dir/fileserver2_test
|
- dataset: rpool/vm/dir/fileserver2_test
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: rpool/vm/dir
|
- dataset: rpool/vm/dir
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: rpool/vm/zvol
|
- dataset: rpool/vm/zvol
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: rpool/vm/qcow
|
- dataset: rpool/vm/qcow
|
||||||
state: present
|
state: present
|
||||||
|
# hdd_data_raidz
|
||||||
|
- dataset: hdd_data_raidz
|
||||||
|
state: present
|
||||||
compression: zstd
|
compression: zstd
|
||||||
sync: disabled
|
sync: disabled
|
||||||
xattr: sa
|
xattr: sa
|
||||||
|
@ -54,126 +43,39 @@
|
||||||
snapdir: hidden
|
snapdir: hidden
|
||||||
- dataset: hdd_data_raidz/papa_backup
|
- dataset: hdd_data_raidz/papa_backup
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/pve_backup
|
- dataset: hdd_data_raidz/pve_backup
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
recordsize: 1M
|
recordsize: 1M
|
||||||
- dataset: hdd_data_raidz/videos
|
- dataset: hdd_data_raidz/videos
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
recordsize: 1M
|
recordsize: 1M
|
||||||
- dataset: hdd_data_raidz/music
|
- dataset: hdd_data_raidz/music
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
recordsize: 1M
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/tmp
|
- dataset: hdd_data_raidz/tmp
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/archiv
|
- dataset: hdd_data_raidz/archiv
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/amd
|
- dataset: hdd_data_raidz/amd
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/bilder
|
- dataset: hdd_data_raidz/bilder
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
recordsize: 1M
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/hm
|
- dataset: hdd_data_raidz/hm
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/scans
|
- dataset: hdd_data_raidz/scans
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/restic
|
- dataset: hdd_data_raidz/restic
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/backup
|
- dataset: hdd_data_raidz/backup
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/buecher
|
- dataset: hdd_data_raidz/buecher
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/programme
|
- dataset: hdd_data_raidz/programme
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
- dataset: hdd_data_raidz/vm
|
- dataset: hdd_data_raidz/vm
|
||||||
state: present
|
state: present
|
||||||
compression: zstd
|
|
||||||
sync: disabled
|
|
||||||
xattr: sa
|
|
||||||
dnodesize: auto
|
|
||||||
atime: on
|
|
||||||
snapdir: hidden
|
|
||||||
zfs_extra_arc_max_size: "8589934592" # 8GB in Bytes
|
zfs_extra_arc_max_size: "8589934592" # 8GB in Bytes
|
||||||
zfs_extra_zfs_pools:
|
zfs_extra_zfs_pools:
|
||||||
- name: "rpool"
|
- name: "rpool"
|
||||||
|
|
Loading…
Reference in a new issue