finalize Nas data migration
This commit is contained in:
parent
f32c0d1e40
commit
f207be7d7d
@ -6,8 +6,8 @@ nas_bind_source:
|
|||||||
- /data/data1/nomad
|
- /data/data1/nomad
|
||||||
- /data/data1/music
|
- /data/data1/music
|
||||||
- /data/data1/download
|
- /data/data1/download
|
||||||
# - /data/data2/serie
|
- /data/data2/serie
|
||||||
# - /data/data3/film
|
- /data/data3/film
|
||||||
- /data/data1/photo
|
- /data/data1/photo
|
||||||
- /data/data1/homes
|
- /data/data1/homes
|
||||||
- /data/data1/ebook
|
- /data/data1/ebook
|
||||||
|
@ -8,8 +8,8 @@ nfs_exports:
|
|||||||
- "{{ nas_bind_target }}/nomad {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/nomad {{nfs_cluster_list}}"
|
||||||
- "{{ nas_bind_target }}/download {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/download {{nfs_cluster_list}}"
|
||||||
- "{{ nas_bind_target }}/music {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/music {{nfs_cluster_list}}"
|
||||||
# - "{{ nas_bind_target }}/film {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/film {{nfs_cluster_list}}"
|
||||||
# - "{{ nas_bind_target }}/serie {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/serie {{nfs_cluster_list}}"
|
||||||
- "{{ nas_bind_target }}/photo {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/photo {{nfs_cluster_list}}"
|
||||||
- "{{ nas_bind_target }}/homes {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/homes {{nfs_cluster_list}}"
|
||||||
- "{{ nas_bind_target }}/ebook {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/ebook {{nfs_cluster_list}}"
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
samba_passdb_backend: tdbsam
|
samba_passdb_backend: tdbsam
|
||||||
samba_shares_root: /exports
|
samba_shares_root: /exports
|
||||||
samba_shares:
|
samba_shares:
|
||||||
# - name: media
|
- name: film
|
||||||
# comment: "media"
|
comment: "film"
|
||||||
# write_list: "@NAS_media"
|
write_list: "@NAS_film"
|
||||||
# browseable: true
|
browseable: true
|
||||||
|
- name: serie
|
||||||
|
comment: "serie"
|
||||||
|
write_list: "@NAS_serie"
|
||||||
|
browseable: true
|
||||||
|
|
||||||
- name: ebook
|
- name: ebook
|
||||||
comment: "ebook"
|
comment: "ebook"
|
||||||
write_list: "@NAS_ebook"
|
write_list: "@NAS_ebook"
|
||||||
@ -17,6 +22,9 @@ samba_shares:
|
|||||||
comment: "photo"
|
comment: "photo"
|
||||||
write_list: "@NAS_photo"
|
write_list: "@NAS_photo"
|
||||||
browseable: true
|
browseable: true
|
||||||
|
- name: download
|
||||||
|
comment: "downlaod"
|
||||||
|
write_list: "@NAS_download"
|
||||||
|
browseable: true
|
||||||
samba_load_homes: True
|
samba_load_homes: True
|
||||||
samba_homes_include: samba_homes_include.conf
|
samba_homes_include: samba_homes_include.conf
|
||||||
|
@ -23,14 +23,23 @@ systemd_mounts:
|
|||||||
- " "
|
- " "
|
||||||
automount: "{{ env_automount }}"
|
automount: "{{ env_automount }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
diskstation_media:
|
diskstation_serie:
|
||||||
share: "{{ nas_ip }}:{{ env_media_nfs_path }}/media"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/serie"
|
||||||
mount: /mnt/diskstation/media
|
mount: /mnt/diskstation/serie
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: "{{ env_automount }}"
|
automount: "{{ env_automount }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
diskstation_film:
|
||||||
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/film"
|
||||||
|
mount: /mnt/diskstation/film
|
||||||
|
type: nfs
|
||||||
|
options:
|
||||||
|
- " "
|
||||||
|
automount: "{{ env_automount }}"
|
||||||
|
enabled: true
|
||||||
|
|
||||||
diskstation_ebook:
|
diskstation_ebook:
|
||||||
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/ebook"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/ebook"
|
||||||
mount: /mnt/diskstation/ebook
|
mount: /mnt/diskstation/ebook
|
||||||
@ -47,3 +56,11 @@ systemd_mounts:
|
|||||||
- " "
|
- " "
|
||||||
automount: "{{ env_automount }}"
|
automount: "{{ env_automount }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
diskstation_download:
|
||||||
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/download"
|
||||||
|
mount: /mnt/diskstation/download
|
||||||
|
type: nfs
|
||||||
|
options:
|
||||||
|
- " "
|
||||||
|
automount: "{{ env_automount }}"
|
||||||
|
enabled: true
|
||||||
|
@ -7,7 +7,7 @@ nomad_client_meta:
|
|||||||
- name: "env"
|
- name: "env"
|
||||||
value: "production"
|
value: "production"
|
||||||
vault_unseal_keys_dir_output: "~/vaultUnseal/production"
|
vault_unseal_keys_dir_output: "~/vaultUnseal/production"
|
||||||
env_default_nfs_path: "/volume2"
|
env_default_nfs_path: "/exports"
|
||||||
env_media_nfs_path: "/volume1"
|
env_media_nfs_path: "/volume1"
|
||||||
env_automount: true
|
env_automount: true
|
||||||
nas_ip: "192.168.1.10"
|
nas_ip: "192.168.1.43"
|
||||||
|
@ -16,11 +16,27 @@ Storage:
|
|||||||
- hot Data (nomad, document,fresh download file,music?) on SSD cold DATA on HDD (film, serie photo)
|
- hot Data (nomad, document,fresh download file,music?) on SSD cold DATA on HDD (film, serie photo)
|
||||||
- at least 2 HDD and 2 SSD
|
- at least 2 HDD and 2 SSD
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hardware:
|
Hardware:
|
||||||
|
|
||||||
- network 2.5 gpbs will be good for evolve
|
- network 2.5 gpbs will be good for evolve
|
||||||
- at least 4go ram
|
- at least 4go ram (expansive will be appreciable)
|
||||||
|
|
||||||
Software:
|
Software:
|
||||||
|
|
||||||
be able to install custom linux distrib
|
be able to install custom linux distrib
|
||||||
|
|
||||||
|
### Decision
|
||||||
|
|
||||||
|
- Due to form factor/consumption and SSD capability my choise is on ASUSTOR Nimbustor 2 Gen 2 AS5402, he corresponding to need and less expensive than a DIY NAS
|
||||||
|
- buy only a new ssd of 2to in more to store system and hot data
|
||||||
|
|
||||||
|
### Cosequence
|
||||||
|
|
||||||
|
need to migrate Data and keep same disk
|
||||||
|
|
||||||
|
- install system
|
||||||
|
- copy all data from 2to HDD to SSD then format 2to HDD
|
||||||
|
- copy download data to FROM 4 to HDD to SSD
|
||||||
|
- copy serie to 2to HDD and copy film on external harddrive
|
||||||
|
@ -34,7 +34,7 @@ job "batch-seedboxsync" {
|
|||||||
config {
|
config {
|
||||||
image = "ducampsv/rsync:latest"
|
image = "ducampsv/rsync:latest"
|
||||||
volumes = [
|
volumes = [
|
||||||
"/mnt/diskstation/media/download:/media",
|
"/mnt/diskstation/download:/media",
|
||||||
"local/id_rsa:/home/rsyncuser/.ssh/id_rsa"
|
"local/id_rsa:/home/rsyncuser/.ssh/id_rsa"
|
||||||
]
|
]
|
||||||
command = "rsync"
|
command = "rsync"
|
||||||
|
@ -22,7 +22,7 @@ job "borgmatic" {
|
|||||||
config {
|
config {
|
||||||
image = "ghcr.io/borgmatic-collective/borgmatic"
|
image = "ghcr.io/borgmatic-collective/borgmatic"
|
||||||
volumes = [
|
volumes = [
|
||||||
"/exports:/volume1",
|
"/exports:/exports",
|
||||||
"local/borgmatic.d:/etc/borgmatic.d",
|
"local/borgmatic.d:/etc/borgmatic.d",
|
||||||
"secret/id_rsa:/root/.ssh/id_rsa",
|
"secret/id_rsa:/root/.ssh/id_rsa",
|
||||||
"/exports/nomad/borgmatic:/root/.cache/borg",
|
"/exports/nomad/borgmatic:/root/.cache/borg",
|
||||||
@ -44,8 +44,8 @@ BORG_PASSPHRASE= {{.Data.data.passphrase}}
|
|||||||
}
|
}
|
||||||
template {
|
template {
|
||||||
data= <<EOH
|
data= <<EOH
|
||||||
0 2 * * * PATH=$PATH:/usr/local/bin /usr/local/bin/borgmatic --create --prune -v 1
|
0 2 * * * PATH=$PATH:/usr/local/bin /usr/local/bin/borgmatic create prune --verbosity 1
|
||||||
0 23 1 * * PATH=$PATH:/usr/local/bin /usr/local/bin/borgmatic -check
|
0 23 1 * * PATH=$PATH:/usr/local/bin /usr/local/bin/borgmatic check
|
||||||
EOH
|
EOH
|
||||||
destination = "local/borgmatic.d/crontab.txt"
|
destination = "local/borgmatic.d/crontab.txt"
|
||||||
}
|
}
|
||||||
@ -55,14 +55,11 @@ location:
|
|||||||
# List of source directories to backup (required). Globs and
|
# List of source directories to backup (required). Globs and
|
||||||
# tildes are expanded. Do not backslash spaces in path names.
|
# tildes are expanded. Do not backslash spaces in path names.
|
||||||
source_directories:
|
source_directories:
|
||||||
- /volume1/CardDav
|
- /exports/ebook
|
||||||
- /volume1/ebook
|
- /exports/homes
|
||||||
- /volume1/git
|
- /exports/music
|
||||||
- /volume1/homes
|
- /exports/nomad
|
||||||
- /volume1/hubert
|
- /exports/photo
|
||||||
- /volume1/music
|
|
||||||
- /volume1/nomad
|
|
||||||
- /volume1/photo
|
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
- u304977@u304977.your-storagebox.de:{{if eq "production" (env "meta.env") }}backup_hamelab{{else}}backup_homelab_dev{{end}}
|
- u304977@u304977.your-storagebox.de:{{if eq "production" (env "meta.env") }}backup_hamelab{{else}}backup_homelab_dev{{end}}
|
||||||
@ -212,6 +209,7 @@ consistency:
|
|||||||
}
|
}
|
||||||
resources {
|
resources {
|
||||||
memory = 300
|
memory = 300
|
||||||
|
memory_max = 1000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,8 +93,10 @@ job "jellyfin" {
|
|||||||
volumes = [
|
volumes = [
|
||||||
"/mnt/diskstation/nomad/jellyfin/config:/config",
|
"/mnt/diskstation/nomad/jellyfin/config:/config",
|
||||||
"/mnt/diskstation/nomad/jellyfin/cache:/cache",
|
"/mnt/diskstation/nomad/jellyfin/cache:/cache",
|
||||||
"/mnt/diskstation/media/:/media",
|
"/mnt/diskstation/film:/film",
|
||||||
"/mnt/diskstation/music/:/media2"
|
"/mnt/diskstation/serie:/serie",
|
||||||
|
"/mnt/diskstation/music:/music",
|
||||||
|
"/mnt/diskstation/download/:/download"
|
||||||
]
|
]
|
||||||
devices = [
|
devices = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user