pre-Infernalis ceph-disk bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think I've found a bug in ceph-disk when running on Ubuntu 14.04
(and I believe 12.04 as well, but haven't confirmed) and using
--dmcrypt.

The problem is that when update_partition() is called, partprobe is
used to re-read the partition table (as opposed to partx on all other
distros) and it appears that it isn't smart/thorough enough to update
all of the device's metadata. Specifically, ID_PART_ENTRY_TYPE isn't
updated:

root@ceph-osd03:~# udevadm info --query=env --name=/dev/vdd1 | grep
ID_PART_ENTRY_TYPE
ID_PART_ENTRY_TYPE=89c57f98-2fe5-4dc0-89c1-5ec00ceff2be

running `partx -u` rather than `partprobe` does the appropriate thing:

root@ceph-osd03:~# partx -u /dev/vdd1
root@ceph-osd03:~# udevadm info --query=env --name=/dev/vdd1 | grep
ID_PART_ENTRY_TYPE
ID_PART_ENTRY_TYPE=4fbd7e29-9d25-41b8-afd0-5ec00ceff05d


I have an experimental patch here that Works For Me, but Sage wanted
me to ping the list for input:

https://github.com/fzylogic/ceph/commit/8c83f75392d68fbec7def8aa61f20b2c9c237571


I also want to test the new Infernalis code for this same bug (after a
cursory check, I strongly suspect it's there as well), but it'll take
a little bit to get another test cluster up to confirm.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux