ceph / ceph-nvmeof

Service to provide Ceph storage over NVMe-oF/TCP protocol
GNU Lesser General Public License v3.0
82 stars 44 forks source link

New VMFS6 Datastore creation fails from the CLI on ESXi Server #348

Open krishnaramaswamy opened 9 months ago

krishnaramaswamy commented 9 months ago

The below command is not working for the new vmfs6 datastore creation. Before creating the new vmfs6. It should display the partition type ( eg. gpt )

partedUtil getptbl /vmfs/devices/disks/eui.01ffb9eaa33a47bbb1ad288e59a8a956 Partiotion Type: unknown 13054 255 63 209715200

Option 1: vmkfstools -C vmfs6 -S NewDS1 /vmfs/devices/disks/eui.01ffb9eaa33a47bbb1ad288e59a8a956

Error Log: Creating vmfs6 file system on "eui.01ffb9eaa33a47bbb1ad288e59a8a956" with blockSize 1048576, unmapGranularity 1048576, unmapPriority default and volume label "NewDS1". Failed to create VMFS on device eui.01ffb9eaa33a47bbb1ad288e59a8a956

Option 2: esxcli storage filesystem add -s VMFS6 -l NewDatastore -p unknown -P 13054 -u UUID -t /vmfs/devices/disks/eui.01ffb9eaa33a47bbb1ad288e59a8a956

Error Log:

Error: Unknown command or namespace storage filesystem add

pcuzner commented 9 months ago

Is there anything in the vmkernel.log?

krishnaramaswamy commented 9 months ago

[root@cephqe-virt11:/var/log] vmkfstools -C vmfs6 -b 1M -S NewVMFS-DS2 /vmfs/devices/disks/eui.01ffb9eaa33a47bbb1ad288e59a8a956 create fs deviceName:'/vmfs/devices/disks/eui.01ffb9eaa33a47bbb1ad288e59a8a956', fsShortName:'vmfs6', fsName:'NewVMFS-DS2' deviceFullPath:/dev/disks/eui.01ffb9eaa33a47bbb1ad288e59a8a956 deviceFile:eui.01ffb9eaa33a47bbb1ad288e59a8a956 Unknown partition type on device 'eui.01ffb9eaa33a47bbb1ad288e59a8a956' Checking if remote hosts are using this device as a valid file system. This may take a few seconds... Creating vmfs6 file system on "eui.01ffb9eaa33a47bbb1ad288e59a8a956" with blockSize 1048576, unmapGranularity 1048576, unmapPriority default and volume label "NewVMFS-DS2". Failed to create VMFS on device eui.01ffb9eaa33a47bbb1ad288e59a8a956 /vmfs/devices/disks/eui.01ffb9eaa33a47bbb1ad288e59a8a956: Permission denied. (Have you set the partition type to 0xfb?) Error: Permission denied

krishnaramaswamy commented 9 months ago

even though iam running from the root.

krishnaramaswamy commented 9 months ago

could you please provide the steps to create new VMFS6 datastore on esxi 7.0 u3 server.

krishnaramaswamy commented 9 months ago

esxcli commands or vmkfstools ... anything is fine

pcuzner commented 8 months ago

@krishnaramaswamy sorry, only just noticed this after the Christmas break :( Is this resolved now?