Hello and happy new year,
I've get rid of an iSCSI DRBD9 configuration in order to put a CEPH in place.
I've removed old LUNs, provisioned fresh ones, installed Jewel following the new wiki and I'm now at the point I have to create OSD.
The problem is that pveceph createosd keeps failing with "unable to get device info for 'sdX'" ...
I've tried with basic dos format, gpt format thru ceph-disk zap, non formatted thru dd, but nothing worked !
Any idea on how to create OSD over iSCSI LUNs ?
Thanks in advance !
Olivier
I've get rid of an iSCSI DRBD9 configuration in order to put a CEPH in place.
I've removed old LUNs, provisioned fresh ones, installed Jewel following the new wiki and I'm now at the point I have to create OSD.
The problem is that pveceph createosd keeps failing with "unable to get device info for 'sdX'" ...
I've tried with basic dos format, gpt format thru ceph-disk zap, non formatted thru dd, but nothing worked !
root@pve1:/sys/block# ls -l sdb
lrwxrwxrwx 1 root root 0 Jan 9 09:00 sdb -> ../devices/platform/host6/session1/target6:0:0/6:0:0:0/block/sdb
root@pve1:/sys/block# ls -l /dev/sdb
brw-rw---- 1 root disk 8, 16 Jan 9 09:06 /dev/sdb
root@pve1:/sys/block# fdisk -l /dev/sdb
Disk /dev/sdb: 128 GiB, 137438953472 bytes, 268435456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: dos
Disk identifier: 0x8a2ba188
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 268435455 268433408 128G 83 Linux
root@pve1:/sys/block# pveceph createosd /dev/sdb
unable to get device info for 'sdb'
root@pve1:/sys/block# ceph-disk zap /dev/sdb
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.
root@pve1:/sys/block# fdisk -l /dev/sdb
Disk /dev/sdb: 128 GiB, 137438953472 bytes, 268435456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: gpt
Disk identifier: 331CB45D-8A88-43BB-97C2-45249C228408
root@pve1:/sys/block# pveceph createosd /dev/sdb
unable to get device info for 'sdb'
root@pve1:/sys/block# dd if=/dev/zero of=/dev/sdb bs=1024 count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.00132699 s, 772 kB/s
root@pve1:/sys/block# pveceph createosd /dev/sdb
unable to get device info for 'sdb'
lrwxrwxrwx 1 root root 0 Jan 9 09:00 sdb -> ../devices/platform/host6/session1/target6:0:0/6:0:0:0/block/sdb
root@pve1:/sys/block# ls -l /dev/sdb
brw-rw---- 1 root disk 8, 16 Jan 9 09:06 /dev/sdb
root@pve1:/sys/block# fdisk -l /dev/sdb
Disk /dev/sdb: 128 GiB, 137438953472 bytes, 268435456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: dos
Disk identifier: 0x8a2ba188
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 268435455 268433408 128G 83 Linux
root@pve1:/sys/block# pveceph createosd /dev/sdb
unable to get device info for 'sdb'
root@pve1:/sys/block# ceph-disk zap /dev/sdb
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.
root@pve1:/sys/block# fdisk -l /dev/sdb
Disk /dev/sdb: 128 GiB, 137438953472 bytes, 268435456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: gpt
Disk identifier: 331CB45D-8A88-43BB-97C2-45249C228408
root@pve1:/sys/block# pveceph createosd /dev/sdb
unable to get device info for 'sdb'
root@pve1:/sys/block# dd if=/dev/zero of=/dev/sdb bs=1024 count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.00132699 s, 772 kB/s
root@pve1:/sys/block# pveceph createosd /dev/sdb
unable to get device info for 'sdb'
Any idea on how to create OSD over iSCSI LUNs ?
Thanks in advance !
Olivier