From fd72c228577b07fc6d31b7852ce3be8ff0e692e9 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 12 Apr 2021 13:18:20 -0700 Subject: [PATCH] Freeze break request: move /pub/archive from fedora_ftp to fedora_ftp_archive volume Our fedora_ftp volume is on an SSD aggregate thats running out of space. So, lets move /pub/archive (17TB) off it on to it's own volume on a SAS aggregate. archive gets less traffic that other releases, so it shouldn't be a problem. This will mean however when we archive a release it will cause a bunch of deletes and re-downloads for mirrors because we can no longer hardlink content over and then delete it, but there is no help for that. I will also notify mirror-admins list about this pending action. There shouldn't be any short term issues. Once this PR is merged, we need to run playbooks, then go to a host with rw access to fedora_ftp and rm the archive tree on it. Signed-off-by: Kevin Fenzi --- playbooks/groups/download.yml | 1 + playbooks/groups/mirrormanager.yml | 1 + playbooks/groups/secondary.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/download.yml b/playbooks/groups/download.yml index 945f6dc9bc..a5238e8ec9 100644 --- a/playbooks/groups/download.yml +++ b/playbooks/groups/download.yml @@ -38,6 +38,7 @@ - download - rsyncd - { role: nfs/client, when: datacenter == "iad2" or datacenter == "rdu", mnt_dir: '/srv/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' } + - { role: nfs/client, when: datacenter == "iad2" or datacenter == "rdu", mnt_dir: '/srv/pub/archive', nfs_src_dir: 'fedora_ftp_archive' } - { role: nfs/client, when: datacenter == "iad2", mnt_dir: '/mnt/koji', nfs_src_dir: 'fedora_koji/koji/' } # needed for internal sync and odcs - { role: nfs/client, when: datacenter == "iad2", mnt_dir: '/srv/odcs', nfs_src_dir: 'fedora_odcs' } # needed for internal sync - sudo diff --git a/playbooks/groups/mirrormanager.yml b/playbooks/groups/mirrormanager.yml index 676a52aa83..dd215a98e4 100644 --- a/playbooks/groups/mirrormanager.yml +++ b/playbooks/groups/mirrormanager.yml @@ -20,6 +20,7 @@ - sudo - collectd/base - { role: nfs/client, when: inventory_hostname.startswith('mm-backend01'), mnt_dir: '/srv/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' } + - { role: nfs/client, when: inventory_hostname.startswith('mm-backend01'), mnt_dir: '/srv/pub/archive', nfs_src_dir: 'fedora_ftp_archive' } pre_tasks: - import_tasks: "{{ tasks_path }}/yumrepos.yml" diff --git a/playbooks/groups/secondary.yml b/playbooks/groups/secondary.yml index 3814fdb095..82505432c4 100644 --- a/playbooks/groups/secondary.yml +++ b/playbooks/groups/secondary.yml @@ -22,7 +22,7 @@ - sudo - { role: nfs/client, mnt_dir: '/srv/pub/archive', - nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub/archive' } + nfs_src_dir: 'fedora_ftp_archive' } - { role: nfs/client, mnt_dir: '/srv/pub/alt', nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,sec=sys,nfsvers=3",