Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

docker should look if zfs partition is mounted before starting #3056

Open
JOduMonT opened this issue May 12, 2021 · 0 comments
Open

docker should look if zfs partition is mounted before starting #3056

JOduMonT opened this issue May 12, 2021 · 0 comments

Comments

@JOduMonT
Copy link

JOduMonT commented May 12, 2021

  • version v1.5.8 from os image rancher/os:v1.5.8
  • my RancherOS run in a KVM; the KVM host is Ubuntu 20.04LTS (libvirtd (libvirt) 6.0.0)

To reproduce

  1. Install ROS 1.5.8
  2. Install ZFS and configure a pool on a second drive (/dev/sdb): https://rancher.com/docs/os/v1.x/en/storage/using-zfs/
sudo docker info|grep "Storage\|Dir"
 Storage Driver: zfs
 Docker Root Dir: /mnt/docker

notes

my zfs is persistently mounting automatically,
after several reboot and at login that result is always the same

sudo zfs list -o mounted
MOUNTED
    yes

but I have to systematically restart docker sudo system-docker restart docker otherwise

sudo docker info
Client:
 Debug Mode: false

Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info

Expected

  • docker service start after zfs is mounted

Actual

everything work well until I reboot
than when I reboot, I presume docker try to start before zfs
because after a reboot

the config

'hostname:': dev007
rancher:
  console: ubuntu
  disable:
  - autologin
  docker:
    graph: /mnt/docker
    storage_driver: zfs
    tls: true
  environment:
    EXTRA_CMDLINE: /init
  network:
    dns:
      nameservers:
      - 1.1.1.1
      - 8.8.8.8
    interfaces:
      eth0:
        address: 172.16.100.7/16
        dhcp: false
        gateway: 172.16.1.254
  services_include:
    kernel-headers-system-docker: true
    qemu-guest-agent: true
    volume-cifs: true
    zfs: true
  state:
    dev: LABEL=RANCHER_STATE
    wait: true
ssh_authorized_keys:
- ssh-***
- ssh-***
- ssh-***
- ssh-***
- ssh-***

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant