我正在服务器上测试驱动器热插拔,拔下其中一个驱动器,然后重新插入。但是,当重新插入时,驱动器号从 变为/dev/sdj
。/dev/sdl
现在 ceph 不会启动 osd 守护进程,我想知道是否有办法将 ceph osd 重定向到新的驱动器号,或者我是否需要擦除并重新添加驱动器?
我还可以看到 ceph 的卷似乎映射到了新路径/dev/sdl
$ ceph-volume lvm list
====== osd.36 ======
[block] /dev/ceph-862223e6-32e0-412b-8101-8b4af150db9b/osd-block-a8edc8fd-d63f-4ea5-b053-9e9c0b8aeaef
block device /dev/ceph-862223e6-32e0-412b-8101-8b4af150db9b/osd-block-a8edc8fd-d63f-4ea5-b053-9e9c0b8aeaef
block uuid pwfwY5-CpDm-Dj3X-U1ey-QCw0-2lk1-9CMtxE
cephx lockbox secret AQBkIKVken/LDBAAOdBm4/9Nbq8xX1cdlgYqvw==
cluster fsid ae1df8df-5f41-45c2-bed2-5b50929b4c7d
cluster name ceph
crush device class
encrypted 1
osd fsid a8edc8fd-d63f-4ea5-b053-9e9c0b8aeaef
osd id 36
osdspec affinity
type block
vdo 0
devices /dev/sdl
基本上只是想知道是否有一种简单的方法可以将其带回 ceph 集群而无需破坏和重新平衡?
-- 日志
2023-07-11T09:30:26.950+0930 7ffa52e053c0 -1 bluestore(/var/lib/ceph/osd/ceph-36/block) _read_bdev_label failed to read from /var/lib/ceph/osd/ceph-36/block: (5) Input/output error
2023-07-11T09:30:26.950+0930 7ffa52e053c0 -1 bluestore(/var/lib/ceph/osd/ceph-36/block) _read_bdev_label failed to read from /var/lib/ceph/osd/ceph-36/block: (5) Input/output error
2023-07-11T09:30:26.950+0930 7ffa52e053c0 1 bdev(0x560b8ff9a000 /var/lib/ceph/osd/ceph-36/block) open path /var/lib/ceph/osd/ceph-36/block
2023-07-11T09:30:26.950+0930 7ffa52e053c0 1 bdev(0x560b8ff9a000 /var/lib/ceph/osd/ceph-36/block) open size 500086865920 (0x746f800000, 466 GiB) block_size 4096 (4 KiB) non-rotational discard not supported
2023-07-11T09:30:26.950+0930 7ffa52e053c0 -1 bluestore(/var/lib/ceph/osd/ceph-36/block) _read_bdev_label failed to read from /var/lib/ceph/osd/ceph-36/block: (5) Input/output error
2023-07-11T09:30:26.950+0930 7ffa52e053c0 1 bdev(0x560b8ff9a000 /var/lib/ceph/osd/ceph-36/block) close
2023-07-11T09:30:27.258+0930 7ffa52e053c0 -1 osd.36 0 OSD:init: unable to mount object store
2023-07-11T09:30:27.258+0930 7ffa52e053c0 -1 ** ERROR: osd init failed: (5) Input/output error
干杯