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

base_os_logical_volumes need vgcreate #519

Open
e-carlin opened this issue Aug 1, 2024 · 1 comment
Open

base_os_logical_volumes need vgcreate #519

e-carlin opened this issue Aug 1, 2024 · 1 comment

Comments

@e-carlin
Copy link
Member

e-carlin commented Aug 1, 2024

I added a logical volume for docker

host:
  dev:
    v3.radia.run:
      base_os:
        volume_groups:
          docker:
            logical_volumes:
              docker:
                gigabytes: 99
                mount_d: /srv/docker

Upon rsc on v3 I see this error

+++ base_os_logical_volumes
+++ : this line is just in case base_os.logical_volume_cmds is empty
+++ base_os_logical_volume docker 99 docker /srv/docker 700
+++ local name=docker gigabytes=99 vg=docker mount_d=/srv/docker mode=700
+++ local dev=/dev/mapper/docker-docker
++++ lvs --units g --no-headings -o lv_size /dev/mapper/docker-docker
+++ local x=
+++ grep -s -q '^/dev/mapper/docker-docker ' /etc/fstab
+++ [[ '' =~ ([0-9]+)(\.[0-9]+)?g ]]
+++ lvcreate -y --wipesignatures y -L 99G -n docker docker
  Volume group "docker" not found
  Cannot process volume group docker
+ install_err_trap

This code is a bit out of my wheelhouse but looks like we need to vgcreate in base_os_logical_volumes

@robnagler
Copy link
Member

You can't just do a vgcreate. This requires configuration. There needs to be a decision about how big a vg is.

e-carlin added a commit to e-carlin/rsconf-data that referenced this issue Aug 1, 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