minor correction and first shot of disk configuration to base future works

This commit is contained in:
levasseur
2022-02-21 18:48:57 +01:00
parent b9fc8ed51c
commit e8c6f46572
7 changed files with 52 additions and 7 deletions

44
conf/disk_exemple.conf.sh Normal file
View File

@@ -0,0 +1,44 @@
# Disk conf exemple
export CONF_DISK="sdc sdd"
export DISK_PART_sdc="512M 1G 0"
export DISK_TYPE_sdc1="raid"
export DISK_TYPE_sdc2="ext4"
export DISK_MP_sdc2="/somewhere/here"
export DISK_TYPE_sdc3="raid"
export DISK_PART_sdd=$DISK_PART_sdc
export DISK_TYPE_sdd1=$DISK_TYPE_sdc1
export DISK_TYPE_sdd2=$DISK_TYPE_sdc2
export DISK_MD_sdd2="/somewhere/else"
export DISK_TYPE_sdd3=$DISK_TYPE_sdc3
# RAID exemple
export CONF_RAID="md0 md1"
export RAID_DISKS_md0="sdc0 sdd0"
export RAID_FORMAT_md0="ext4"
export RAID_MP_md0="/raid/is"
export RAID_DISKS_md1="sdc2 sdd2"
export RAID_FORMAT_md1="xfs"
export RAID_MP_md1="/raid/other"
# ZFS exemple
export ZPOOL_LIST="calcul local"
export ZPOOL_OPTIONS_calcul="mirror"
export ZPOOL_MP_calcul="/local"
export ZPOOL_DRV_calcul="sdc sdd"
export ZPOOL_FS_calcul="vm debian data"
export ZPOOL_MP_calcul_vm="/local/vm" # We could avoid that declaration
export ZPOOL_MP_calcul_debian="/usr/local"
export ZPOOL_MP_calcul_data="/data"
export ZPOOL_OPTIONS_local="raidz1"
export ZPOOL_MP_local="/share"
export ZPOOL_DRV_local="sdc sdd sde"
export ZPOOL_FS_local="video music books"
#export ZPOOL_MP_local_video="/share/video" # Uneeded as it's ZFS default behavour
#export ZPOOL_MP_local_music="/share/music"
#export ZPOOL_MP_local_books="/share/books"

View File

@@ -91,5 +91,5 @@ VM_NAME=vm-levasseur
# Liste des modules à executer (surchargeable en ligne de commande)
MODULE_LIST="conf_ntp upgrade_dist authnz conf_disks conf_locale conf_ssh \
conf_mail install_desktop install_pkg install_chromium \
conf_mail install_desktop install_pkg \
select_system_proxy install_profile"