Giter Club home page Giter Club logo

Comments (6)

zfrhv avatar zfrhv commented on July 3, 2024 1

of course
it will take us time to upgrade so i will close this case for now.
will reopen if will face any issues.
thank you ! 👍

from lvm-operator.

zfrhv avatar zfrhv commented on July 3, 2024 1

it worked!
thank you!

from lvm-operator.

suleymanakbas91 avatar suleymanakbas91 commented on July 3, 2024

Hi @zfrhv, this is already possible by specifying deviceSelector.paths option under deviceClasses like:

apiVersion: lvm.topolvm.io/v1alpha1
kind: LVMCluster
metadata:
  name: my-lvmcluster
spec:
  storage:
    deviceClasses:
    - name: vg1
      thinPoolConfig:
        name: thin-pool-1
        sizePercent: 90
        overprovisionRatio: 10
      deviceSelector:
        paths:
        - /dev/nvme1n1p1 
        - /dev/nvme1n1p2

This will create a StorageClass which will use the specified partitions to create a volume group.

You can also specify multiple device classes with paths pointing to different partitions like:

apiVersion: lvm.topolvm.io/v1alpha1
kind: LVMCluster
metadata:
  name: my-lvmcluster
spec:
  storage:
    deviceClasses:
    - name: vg1
      thinPoolConfig:
        name: thin-pool-1
        sizePercent: 90
        overprovisionRatio: 10
      deviceSelector:
        paths:
        - /dev/nvme1n1p1
      default: true
    - name: vg2
      thinPoolConfig:
        name: thin-pool-2
        sizePercent: 90
        overprovisionRatio: 10
      deviceSelector:
        paths:
        - /dev/nvme1n1p2

This will then create two different StorageClasses making use of the corresponding partitions specified under paths.

from lvm-operator.

zfrhv avatar zfrhv commented on July 3, 2024

thank you very much for the detailed explanation!
we will try it !

from lvm-operator.

zfrhv avatar zfrhv commented on July 3, 2024

hello,
i tried to configure:

deviceSelector:
  paths:
  - /dev/nvme0n1p5

but after applying the yaml it returns to:

deviceSelector: {}

seems like the operator overrides that field to empty object.

nothing in the logs, nothing happens
im using ODF LVM 4.10.7

should i open an issue or try to upgrade the operator?

from lvm-operator.

suleymanakbas91 avatar suleymanakbas91 commented on July 3, 2024

Hi @zfrhv, could you please try it with the 4.12 version of the operator? 4.10 and 4.11 were tech preview releases so they are not supported, and 4.12 is the GA release.

from lvm-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.