PDA

View Full Version : Interesting Core Storage quirk.




ConCat
May 12, 2013, 11:37 PM
I'm not sure what to make of this, so I'll leave it to the community to decide. I was messing around with Core Storage earlier and stumbled upon something odd. First off, here's what my LVG looks like:

http://forums.macrumors.com/attachment.php?attachmentid=411985&stc=1&d=1368419054

As you can see, I used three PVs of varying sizes to create this LVG. The interesting thing about this is that when I created the LV, I used "100%". Common sense says that should make the LV somewhere in the realm of the 8.8GB size claimed by Core Storage. This didn't occur however, and I ended up with the 3.3GB LV that you see. Now, this could be a bug, and if that's what I suspected I wouldn't be posting, but now look at what I found when I did "mkfile 3g testFile" on the new LV (Don't pay attention to the disk identifier. It's completely glitched for some reason):

http://forums.macrumors.com/attachment.php?attachmentid=411986&stc=1&d=1368419445

It almost looks like I somehow managed to trigger some sort of redundancy without meaning to. On the other hand, the missing storage could be a bug having to do with more than two drives (which is unsupported by Apple), and the write to the second disk could just be logs being written... It would make sense that Apple would design CoreStorage to write logs to any of the disks not currently being actively written to by the user (for efficiency). Each disk does contain Core Storage headers, which may all be able to contain logs belonging to any of the disks... I'm not 100% sure what I'm seeing, so I'll let you guys think about it.