未解决

Dancingsnoopy

已更新

14 years ago

D

Dancingsnoopy

1 Rookie

•

14 帖子

0

5755

July 13th, 2012 04:00

CBFS

如何理解CBFS呢?

  • Celia_Lee

    1 Rookie

    •

    106 帖子

    2496

    0

    已发布 July 13th, 2012 11:00

    是CallBack File system吗? 我在网上找到了这个文档: http://www.eldos.com/cbfs/

    Callback File System™ - Create and manage virtual filesystems and disks from your Windows applications

  • zhouzengchao

    6 Operator

    •

    1403 帖子

    2496

    0

    已发布 July 13th, 2012 20:00

    楼主显然是内家,我谈下自己的理解,仅供参考:

    首先,最重要的一点是:计算机世界的任何一个问题都可以通过添加一个中间层来解决(这句话谁说的我忘了。。。)

    你能提到CBFS,那对Virtual Provisioning 的 Pool LUN必然很清楚(不清楚的朋友,可以参考https://community.emc.com/docs/DOC-16561)

    Pool LUN的设计理念是说:设计一种对象和机制,使得该对象不用关心存储空间是如何分配给它的,暂且称之为虚拟LUN。虚拟LUN中的数据能够位于系统中的任何一块磁盘上,它不用关心下层是如何工作的。为了实现这个设计,EMC的做法是:底层依然使用RAID GROUP绑定磁盘,在RG上创建FLU(FLARE LUN),然后将FLU分配给Pool LUN(虚拟LUN)。现在有一个问题是,Pool LUN如何得知自己的数据位于哪一些FLU上,这就存在一个映射关系。要解决这个问题,在它们之间必然要有一种机制去实现映射和管理。

    于是乎,EMC在这之间实现了CBFS,数据结构上我认为链表和二维表就可以做,具体咋整的不清楚,我听说用的Table。当然,我相信CBFS不仅是一张表。。。。

    简易层次结构猜测如下:

    Pool LUN (thin/thick)

    ----------------------------------

    CBFS (Common Block File System)

    ----------------------------------

    FLARE LUN

    --------------------------------

    Private RAID Group

    --------------------------------

    Disks

    --------------------------------

    RAID Controller

    我能想到的就这些,正确性不知。。。还请欣赏过CBFS秘籍的大侠出山。

  • Dancingsnoopy

    1 Rookie

    •

    14 帖子

    2496

    0

    已发布 July 14th, 2012 06:00

    好像有三种LUN:

    • FLARE LUN (normal LUN) -  A FLARE LUN (FLU) can be created using RAID groups and is built as a contiguous partition across all the drives of a single RAID group. Hence it is a 1:1 mapping from Logical Block Addressing (LBA), LBA0 to LBAend - one big extent.

    • Thin LUNs - Thin LUNs are provisioned out of Thin Pools (unlike RAID groups) using the Thin Provisioning enabler.  Thin Pools can contain hundreds of devices with the Common Block File System (CBFS), managing the underlying structural operations. Thin LUNs are allocated out of Thin Pools in 1 GB slices of 8 Kb file system extents by the Mapping Service. When that storage is used up, additional 1 GB slices of extents are allocated upon demand. Thin LUNs not only support over subscription, but also migration. Pre-allocated FLARE or metaLUNs are not stranded, but can be migrated into Thin Pools non-disruptively when required.

    • Thick LUNs - Thick LUNs are built on a Thin pool in 1 GB slices of 8 Kb file system extents, each slice has a 1:1 mapping of  the LBA in the chunk to the LBA in the LUN. All the storage is reserved up front, but allocated only upon demand in 1 GB slices distributed throughput the pool to maximize spindle usage. Multiple Thick LUNs can share a pool so their extents are jumbled together across the private RAID groups that comprise the pool.

    看起来FLU好像和CBFS没有关系,而且FLU应该在RAID group之上。而FAST VP以1GB为单位,因此FAST VP必然也依赖于CBFS。

    FAST Cache以64KB为单位,是否与CBFS无关呢?那么以64KB为单位,又是什么系统来描述这些信息呢?

  • Dancingsnoopy

    1 Rookie

    •

    14 帖子

    2496

    0

    已发布 July 14th, 2012 07:00

    我也只是在powerlink上看到上面那些信息。

    FAST以1GB为单位迁移数据,必然引起CBFS指针的变化。整个VP应该都是通过CBFS来描述的。

  • zhouzengchao

    6 Operator

    •

    1403 帖子

    2496

    0

    已发布 July 14th, 2012 07:00

    楼主手捧高深秘籍,但似乎没有精读,是否能发我瞄一瞄。。。。

    1. 之前的层次结构手快写错了,已经更正,多谢提醒。

    2. 我认为CBFS必然是我所提到的中间层,Mapping service 只是CBFS的一个模块而已。

    3. FAST 和 FAST CACHE 与CBFS没有直接联系,依赖CBFS的是VP。而FAST只是构建在VP之上的一层智能分层软件,它本身并不aware CBFS。

    4. FAST CACHE就更与CBFS无关了,因为即使你不使用Pool LUN,FAST CACHE也是work的。

    5. FAST CACHE是通过Memory Map (bitmap) 来track 64KB chunk的,这个是FAST CACHE本身的组件,和CBFS无关。

  • zhouzengchao

    6 Operator

    •

    1403 帖子

    2496

    0

    已发布 July 14th, 2012 07:00

    同意,FAST移动数据后,CBFS信息必然变化,但FAST在VP之上,他与CBFS肯定没有直接接口,数据移动后,CBFS更改信息,I/O针对Pool LUN(VP)发出,VP会查询CBFS以确定数据在哪,而不是FAST干这事儿。所以,FAST只关心如何确定热点数据和移动数据。

    我觉得CBFS是VP的一个子集,主要用以实现Mapping和信息管理,VP对象多半是以单独的模块实现的。

  • zhouzengchao

    6 Operator

    •

    1403 帖子

    2496

    0

    已发布 July 14th, 2012 21:00

    楼主如果觉得问题已经解答,帮忙把帖子标记为“正确回答”或“有用回答”,如果依然存在疑问,我们可以继续交流,多谢!

  • Dancingsnoopy

    1 Rookie

    •

    14 帖子

    2496

    0

    已发布 July 15th, 2012 17:00

    我认为CBFS和FLU没有关系,另外,还没有看到CBFS的真面目。

  • zhouzengchao

    6 Operator

    •

    1403 帖子

    2496

    0

    已发布 July 15th, 2012 18:00

    我也只是猜的,瞎聊呗。。。CBFS应该不会有公开文档,只有等看过相关文档的内部人员解答了(刚才用错号回你了)

  • Dancingsnoopy

    1 Rookie

    •

    14 帖子

    1260

    0

    已发布 July 19th, 2012 21:00

    对了,新的snapshot,reallocate on write是不是也是基于CBFS呢?