Project

General

Profile

Actions

Bug #23645

closed

hot plug disk might not work ceph-volume

Added by Vasu Kulkarni about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

From the list:

Sata hdds, this happen on running server, without reboot.
Due to hardware problem, vibration, human factor, anything, sata host loose connection with drive and /dev/sda disappears. Than operator unplug/plug it and without lvm it can appear with same node /dev/sda and with different one, it does not matrer - osd will be started.
But in case of lvm /dev/dm-0 holds lvm objects and sda node, so disk got next letter (/dev/sdt for example), but lvm can't create lv with same uid, so lsblk does not see logical volume on this disk
Yes everything will be fixed after reboot, but I don't think it is a solution.

Workaround as done by user:
And I have to perform a list of manual actions to start osd:

- remove device mapper device:
sudo dmsetup remove /dev/dm-8

- disable new block device and rescan scsi to make lvm volume appear:
echo 1 | sudo tee /sys/block/sdb/device/delete
echo "- - -" | sudo tee /sys/class/scsi_host/host0/scan

- maybe umount osd direcroty (I'm not sure if it is required):
sudo umount /var/lib/ceph/osd/ceph-12

- list osd disks to get lv name (osd fsid):
sudo ceph-volume lvm list

- And finally start osd:
sudo ceph-volume lvm trigger 12-92b66a98-1c35-40a8-bf5b-ac123c366166


Files

23645.txt (50 KB) 23645.txt Aleksei Gutikov, 05/02/2018 09:19 AM
Actions

Also available in: Atom PDF