Skip to content

Instantly share code, notes, and snippets.

@bh7cw
Last active August 21, 2020 17:31
Show Gist options
  • Save bh7cw/0bfc48fa9aa1c89f141d4207fe261902 to your computer and use it in GitHub Desktop.
Save bh7cw/0bfc48fa9aa1c89f141d4207fe261902 to your computer and use it in GitHub Desktop.
not usfel, wrong size
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 99-disk-partition
spec:
config:
ignition:
version: 3.1.0
storage:
disks:
- device: /dev/nvme0n1
wipeTable: false
partitions:
- size_mib: 10240
start_mib: 10240
label: var-log
filesystems:
- path: /var/log
device: /dev/disk/by-partlabel/var-log
format: xfs
systemd:
units:
- name: var-log.mount
enabled: true
contents: |
[Unit]
Before=local-fs.target
[Mount]
Where=/var/log
What=/dev/disk/by-partlabel/var-log
[Install]
WantedBy=local-fs.target
fips: false
kernelArguments: null
kernelType: ""
osImageURL: ""
@bh7cw
Copy link
Author

bh7cw commented Aug 8, 2020

failed, because /var/log contains log informations, which is needed during creating cluster.

@darkmuggle
Copy link

      units:
        - name: var-log.mount
          enabled: true
          contents: |
            [Unit]
            Before=local-fs.target
            RequiresMountFor=/var
            [Mount]
            Where=/var/log
            What=/dev/disk/by-partlabel/var-log
            [Install]
            WantedBy=local-fs.target
  fips: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment