-
Notifications
You must be signed in to change notification settings - Fork 42
Quick starting with the operator #83
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
Comments
Hi @jgato We are planning to work on the documentation soon. In the meantime, you can use the following steps to create the persistent volumes.
|
many thanks I will try this afternoon. Meanwhile, I am wondering how should I point to the physical device in the host? |
Right now you don't have to do anything to point to specific disks on the host. The operator takes all the disks that don't have filesystem and partitions. For example, if you have /dev/sda and /dev/sdb in your host that don't have any filesystem or partitions on it, volume groups will use these disk. |
Ok I have created the LVMCluster but nothing seems to happens. The first strange thing I have noticed is, that it does not create any daemonset as you mentioned:
Maybe because of the device class? In this host I have some available disks:
|
Fixed @jgato 's issue in an interactive session - the problem was that he created the LVMCluster CR in the default namespace instead of the lvm-operator-system namespace (the sample yaml does not specify a namespace) |
Not it is working and it has recognized two disks under the VG:
But the nvme1n1 is not included in the group. And it is also an available group
Looking to the logs I can see the disk nvme1n1 under the same conditions of disk nvme0n1 which is included.
I used this disk for a test with a LocalStorage Operator. But now it seems that is free. Is there any way I can check why this disk is not added? |
what's the output of |
also, the output for |
yes, it still has a format:
I thought that something in the log of the controller would have pointed to that. |
I think the vgmanager controller might have pointed in out in the first reconcile. The output of the controller that you have pasted above, might be from a later reconcile when both |
Once that I made nvme1n1 to not have a fsystem, is the operator detecting the new available disks to include it in the VolumeGroup?, or do I have to create a new LVMCluster to detect it? |
Something extrange happend while making a test. I wanted to try adding new disks to the existing LVMCluster or to a new one. (sdc and sde are the new disks that now appear under the same group)
At the same time I have created a new LVMCluster, because I expected this new groups would create a new VG (vg2) with the new disks. But it is not happening in that way. Now there are two LVMClusters but none of them are using the new devices: The LVMCluster that I created first (before adding new disks)
And the new one:
The outcome of the second one seems a little confusing. Showing information about the VG1. How is the correct way of adding new disks? |
As of now, we only support a single LVMCluster which will use all disks on all nodes, which is why the newly added disks were added to the original volumegroup. Going forward, we will be adding features to all allow us to specify multiple volumegroups and the disks that need to be used for each. Please open issues describing features and use cases which you would like to see in the operator. We welcome feedback. |
To add more info: apiVersion: lvm.topolvm.io/v1alpha1
|
Ok, I understand that only one LVMCluser is allowed by the moment. But, this will LVMCluster got control on new disks appearing in the cluster? if you look to my previous post, the new added disks have been added to the VG (vg1), there are 5 disks. I guess, it is working at level of LVM or topolvm. But in the Openshift (SNO) Cluster, the LVMCluster wit the vg1 does not seems to be aware of the new disks, and it only lists 3 disks. Let me know if you prefer to discuss this in a new thread. |
Yes, please open a new issue /thread for this. |
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
I am starting to play with this operator with the idea to add a Dynamic Storage Provisioning to an SNO. I managed to build and deploy the operator (I have created and pushed my own operator image, because the default one points to a quay.io closed repo).
It seems the operator is working oka
also I created a first StorageClass according to the documentation from topolvm:
I have tried to create a PVC:
but it remains pending (for a pod, that is oka) for a PV:
The external provisioner should create the PV? Checking the operator logs seems not aware of these resources, so I can imagine I have to create resources of kind LogicalVolumes or LVMCluster.
But now I am not sure how to proceed. I guess I have to create a LogicalVolume pointing to one local volume in my node.
Please, some examples or quickstart would be really appreciated.
The text was updated successfully, but these errors were encountered: