Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure composite device #275

Closed
spaced opened this issue Sep 16, 2019 · 2 comments
Closed

Configure composite device #275

spaced opened this issue Sep 16, 2019 · 2 comments

Comments

@spaced
Copy link

spaced commented Sep 16, 2019

With coreos it was possible to define a different disk/partition for the mutable part:
https://coreos.com/os/docs/latest/root-filesystem-placement.html

use-case: a bare metal installation

  • installation via pxe coreos.inst.install_dev=sda
  • have a immutable (small) disk on /dev/sda
  • mutable data /var should go to /dev/sdb

with fedora-coreos i can configure/mount /var with following ignition:

---
variant: fcos
version: 1.0.0

storage:
  disks:
    - device: /dev/sdb
      wipe_table: true
      partitions:
        - label: var
          type_guid: 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709
  filesystems:
    - path: "/var"
      device: "/dev/sdb1"
      format: "ext4"
      wipe_filesystem: true
      label: "var"
systemd:
  units:
    - name: var.mount
      enabled: true
      contents: |
        [Mount]
        What=/dev/disk/by-partlabel/var
        Where=/var
        Type=ext4
        Before=ostree-remount.service
        [Install]
        WantedBy=local-fs.target

it works but: Im not sure the ostree-remount stuff will skip or is not able to mount correctly /var i i will hit various side-effects later on.

@spaced
Copy link
Author

spaced commented Sep 17, 2019

may be duplicate of #94, but with another viewpoint

@ajeddeloh
Copy link
Contributor

What you're describing (separate /var) is already supported. You shouldn't need Before=ostree-remount.service, in fact if anything you want it after (but Before=local-fs.target) to shadow that unit's /var mount.

Moving root isn't supported yet, but we do hope to support it eventually (that's what #94 is talking about).

Does that clarify things?

@spaced spaced closed this as completed Sep 24, 2019
spaced pushed a commit to spaced/kubespray that referenced this issue Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants