Bug #5599
closedceph-disk: prepare should issue a partprobe on the journal device too
0%
Description
Currently, after preparing a disk, we issue a partprobe on the prepared device (ceph data).
When using a separate journal, we should also issue a partprobe on the journal device.
- ceph-disk-prepare /dev/sdc /dev/sdb
- ceph-disk-prepare /dev/sdd /dev/sdb
Will result in:
/dev/sdb :
/dev/sdb1 ceph journal, for /dev/sdc1
/dev/sdc :
/dev/sdc1 ceph data, active, cluster ceph, osd.0, journal /dev/sdb1
/dev/sdd :
/dev/sdd1 ceph data, prepared, cluster ceph, osd.1
After running partprobe /dev/sdb:
/dev/sdb :
/dev/sdb1 ceph journal, for /dev/sdc1
/dev/sdb2 ceph journal, for /dev/sdd1
/dev/sdc :
/dev/sdc1 ceph data, active, cluster ceph, osd.0, journal /dev/sdb1
/dev/sdd :
/dev/sdd1 ceph data, prepared, cluster ceph, osd.1, journal /dev/sdb2
The partprobe on the journal device should be called before the partprobe on the osd device.
Files
Updated by Mark Kirkwood over 10 years ago
Fyi a tentative patch has been suggested, using partx rather than partprobe (no idea which might be best mind you):
http://www.spinics.net/lists/ceph-users/msg03258.html
Myself and a colleague have tested the above patch, seems to fix the issue (Cuttlefish on Ubuntu 12.04 and 13.04).
Updated by Mark Kirkwood over 10 years ago
Actually this patch (attached) is probably more in keeping with the code style already used in ceph-disk, uses partprobe on the journal before the data device as suggested above.
Updated by Sage Weil over 10 years ago
- Status changed from New to Pending Backport
Updated by Sage Weil over 10 years ago
- Status changed from Pending Backport to Resolved
- Backport set to dumpling, cuttlefish