Hi everyone,
I've been exploring Proxmox for the first time over the last 2 weeks.
Overall looks a very promising but I have to be honest, I hate the storage management with a passion, what a mess.
I want to deploy a Linux Container on top of a iSCSI disk, never used Linux Containers so don't know if this doesn't make sense, however I just want to separate storage from the host completely so I can move things around more easily.
So here is the steps I've took:
I'm sorry for my rant, but from someone with a high level of expertise with Windows environments, this situation is just stupid on my eyes.
Could you please help me fix and remove this stupid CFS Lock which is incorrect please?
I've been exploring Proxmox for the first time over the last 2 weeks.
Overall looks a very promising but I have to be honest, I hate the storage management with a passion, what a mess.
I want to deploy a Linux Container on top of a iSCSI disk, never used Linux Containers so don't know if this doesn't make sense, however I just want to separate storage from the host completely so I can move things around more easily.
So here is the steps I've took:
- Select "Datacenter > Storage", do "Add > iSCSI" and created my new target.
- As I found out that is not possible to create containers on top of raw iSCSI targets, I went ahead and created a LVM on top of the iSCSI Disk created in the previous step.
For reference, the volume group I created was 'iSCSI-share-lvm". - Attempt to create the CT, failed.... because of space. I've set the block disk in FreeNAS to 10Gib and 10GB in the CT.
- Ok, go to FreeNAS and expand the disk to 10.2Gib to realize that Proxmox didn't assume the change.
- Delete LVM, try to recreate and here is when the fun starts.... error:
create storage failed: error with cfs lock 'file-storage_cfg': device '/dev/disk/by-id/scsi-36589cfc000000bc44da4a8ba419be12e' is already used by volume group 'iSCSl-share-lvm'
(500) - I've tried to find out how to delete this freaking volume group, can't find a way.
So I rebooted the host, same issue.
- Delete iSCSI target, re-add it with the same ID
- Try to create the LVM again, same error.
- I'm so upset with this stupid nonsense errors that I just simply don't care, so I went ahead and deleted:
Delete iSCSI target in the portal.
Run in shell: rm /dev/disk/by-id/scsi-36589cfc000000bc44da4a8ba419be12e
Run in shell: pvs (this returned me the mount of the volume group)
Run in shell: rm /dev/sdb (Volume group GONE! what a miracle)
I knew this could cause errors, but I just didn't care anymore. - Try to re-add/create everything again and the bloody lock is still there.... Error creating the LVM:
create storage failed: error with cfs lock 'file-storage_cfg': pvcreate 'Idev/disk/by-id/scsi-
36589cfc000000bc44da4a8ba419be12e' error: Device /dev/disk\by- dJscsi-
36589cfc000000bc44da4a8ba419be12e not found (or ignored by filtering).
I'm sorry for my rant, but from someone with a high level of expertise with Windows environments, this situation is just stupid on my eyes.
Could you please help me fix and remove this stupid CFS Lock which is incorrect please?