Rebalance root disk storage 16/3716/1
authordave kormann <davek@research.att.com>
Mon, 21 Sep 2020 18:46:23 +0000 (14:46 -0400)
committerdave kormann <davek@research.att.com>
Mon, 21 Sep 2020 18:50:59 +0000 (14:50 -0400)
Experience with real-world deployments has shown that the bulk of the
REC storage requirements are for logs.  This change reworks the LV
allocation on the root disk to reflect this:

- The LV for /home is removed; /home will be on the root filesystem
- The mariadb and swift LVs are significantly reduced in size, as
  neither is used by the RIC or the REC (beyond Keystone)
- the /var/log/audit LV is removed.  /var/log/audit will share space
  with the rest of /var/log
- /var/log is used as the "free hog" lv, taking up any space not used by
  other VGs.

signed-off-by: dave kormann  <davek@research.att.com>
Change-Id: I34502aa156e145c4b30a57f263c106aa89b39073

partfs_rootdisk/localstorage/caas/caas_master.yaml
partfs_rootdisk/localstorage/caas/ceph.yaml
partfs_rootdisk/localstorage/caas/common.yaml
partfs_rootdisk/localstorage/multinode_hybrid/ceph.yaml
partfs_rootdisk/localstorage/multinode_hybrid/cinder.yaml
partfs_rootdisk/localstorage/multinode_hybrid/common.yaml
partfs_rootdisk/localstorage/multinode_hybrid/multiple_hybrid.yaml

index 26c91ba..b695694 100644 (file)
@@ -19,10 +19,10 @@ logical_volumes:
     mount_point: "/var/lib/docker"
     mount_opts: noatime,nodiratime,logbufs=8,pquota
   - lvm_name: "swift"
-    lvm_size: "9%VG"
+    lvm_size: "2%VG"
     mount_point: "/srv/node/swift"
     mount_opts: noatime,nodiratime 
   - lvm_name: "mariadb"
-    lvm_size: "10%VG"
+    lvm_size: "2%VG"
     mount_point: "/var/lib/mysql"
-    mount_opts: noatime,nodiratime,nosuid,noexec
+    mount_opts: "noatime,nodiratime,nosuid,noexec,context=system_u:object_r:mysqld_db_t:s0"
index ec9f499..1a34662 100644 (file)
@@ -20,6 +20,6 @@ logical_volumes:
     mount_point: "/var/lib/ceph/mgr"
     mount_opts: noatime,nodev,nosuid,noexec
   - lvm_name: "cephmon"
-    lvm_size: "10%VG"
+    lvm_size: "5%VG"
     mount_point: "/var/lib/ceph/mon"
     mount_opts: noatime,nodev,nosuid,noexec
index e2be221..0474f76 100644 (file)
@@ -16,15 +16,7 @@ service_profiles:
   - caas_worker
   - storage
 logical_volumes:
-  - lvm_name: "audit"
-    lvm_size: "10%VG"
-    mount_point: "/var/log/audit"
-    mount_opts: noatime,nodev,nosuid,noexec
   - lvm_name: "log"
-    lvm_size: "30%VG"
+    lvm_size: "variable"
     mount_point: "/var/log"
     mount_opts: noatime,nodev,nosuid,noexec
-  - lvm_name: "home"
-    lvm_size: "variable"
-    mount_point: "/home"
-    mount_opts: noatime,nodev,nosuid
index 59fe9dd..96b03e8 100644 (file)
@@ -19,6 +19,6 @@ logical_volumes:
     mount_point: "/var/lib/ceph/mgr"
     mount_opts: noatime,nodev,nosuid,noexec
   - lvm_name: "cephmon"
-    lvm_size: "10%VG"
+    lvm_size: "5%VG"
     mount_point: "/var/lib/ceph/mon"
     mount_opts: noatime,nodev,nosuid,noexec
index 2eb8a61..bfc9876 100644 (file)
@@ -16,6 +16,6 @@ service_profiles:
   - cephcontroller
 logical_volumes:
   - lvm_name: "cinder"
-    lvm_size: "15%VG"
+    lvm_size: "5%VG"
     mount_point: "/var/lib/cinder"
     mount_opts: noatime,nodev,nosuid,noexec
index c43f231..496e455 100644 (file)
@@ -19,15 +19,7 @@ service_profiles:
   - cephcontroller
   - compute
 logical_volumes:
-  - lvm_name: "audit"
-    lvm_size: "10%VG"
-    mount_point: "/var/log/audit"
-    mount_opts: noatime,nodev,nosuid,noexec
   - lvm_name: "log"
-    lvm_size: "15%VG"
+    lvm_size: "variable"
     mount_point: "/var/log"
     mount_opts: noatime,nodev,nosuid,noexec
-  - lvm_name: "home"
-    lvm_size: "variable"
-    mount_point: "/home"
-    mount_opts: noatime,nodev,nosuid
index 26c91ba..220bb2b 100644 (file)
@@ -19,10 +19,10 @@ logical_volumes:
     mount_point: "/var/lib/docker"
     mount_opts: noatime,nodiratime,logbufs=8,pquota
   - lvm_name: "swift"
-    lvm_size: "9%VG"
+    lvm_size: "2%VG"
     mount_point: "/srv/node/swift"
     mount_opts: noatime,nodiratime 
   - lvm_name: "mariadb"
-    lvm_size: "10%VG"
+    lvm_size: "2%VG"
     mount_point: "/var/lib/mysql"
     mount_opts: noatime,nodiratime,nosuid,noexec