Contenu connexe Similaire à GlusterFS モジュール超概論 (20) Plus de Keisuke Takahashi (7) GlusterFS モジュール超概論1. GlusterFS
2011 9 14
NTTPC
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 1
2. 1 GlusterFS 3
2 (1/2) 4
3 (2/2) 5
4 6
4.1 (xlator fops) . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.2 ( ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5 3.1.0 ( ) 9
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 2
3. 1 GlusterFS
GlusterFS
!!
FUSE NFS
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 3
4. 2 (1/2)
(
)
• afr( )
• client( )
• server( )
• posix( )
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 4
5. 3 (2/2)
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 5
6. 4
4.1 (xlator fops)
xlator fops
xlator fops
stat( )
symlink( )
rename( )
open( )
readv( )
writev( )
opendir( )
readdir( )
create( )
...
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 6
7. 4.2 ( )
xlator cbks
• release: ( )close
• releasedir: ( )closedir
init :
fini :
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 7
8. 4.3
volume options ( )
volume options
posix
struct volume_options options[] = {
{ .key = {"o-direct"},
.type = GF_OPTION_TYPE_BOOL },
{ .key = {"directory"},
.type = GF_OPTION_TYPE_PATH },
{ .key = {"hostname"},
.type = GF_OPTION_TYPE_ANY },
{ .key = {"export-statfs-size"},
.type = GF_OPTION_TYPE_BOOL },
...
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 8
9. 5 3.1.0 ( )
3.1.0 glusterd
glusterd !!
glusterd ...
glusterd (
)
glusterd-volgen.c glusterd volopt map[]
( )
Copyright (c) 2011 NTT PC Communications Incorporated, All Rights Reserved. 9