ATOL: Global File System Marek Grác xgrac@f i.muni.cz Red Hat Czech s.r.o. / Faculty of Informatics, Masaryk University Advanced Topics of Linux Administration □ ► 4 s ► <■=► < ■= ► ■O Q-C^ ■■LUJJ.MJ.IlUU4IEilLai^^lMI.I.UIJIIAlBIBB What is GFS? ► Symmetric, shared-disk filesystem for cluster ► Relies on cluster infrastructure ►• Inter-machine locking (DLM) - cman, ccs, openAIS ►• I/O fencing and recovery coordination ► CLVMD to distribute LVM medata updates to cluster nodes ► Metadata journaling, data journaling on per-file or per-directory basis s ■O Q-C* IJ.U]JI^MUJjmilllll»lJJUJJ.UIJIIJM What is GFS? ► Shared file system ► 64-bit clean', POSIX compliant, ACL ► Direct I/O capable, Online filesystem management ► SELinux policy ► Avoids central data structures Run on mixed environment x86, ia64, amd64 ► Limits: ►• 100+ GFS client nodes ► 16TB on 32bit, 8EB on 64bit (support on multiple 8TB) s ■O Q-C* IJ.U]JI^MUJjmilllll»lJJUJJ.UIJIIJM Shared (GFS) vs Distributed Filesystem (AFS) ► Whole file locking ► One common journal ► Save-on-close - writeQ only update the local cache copy on client ► UNIX mode bits are ignored for group and other (provided by ACL) S •f)<\(y IJ.U]JI^MUJjmilllll»lJJUJJ.UIJIIJM Create a GFS File system ► Lock manager (lock_nolock, lock_dlm) ► Lock file name (cluster_name:fs_name) ► Number of journals (one per cluster node is needed) ► gfs-tool, gfs.mount s ■O Q-C^ IJ.U]JI^MUJjmilllll»lJJUJJ.UIJIIJM Context Dependent Path Names ► Use of special directory link names (©hostname, Omach, Oos, Quid) ► Symlink dependent on caller's context ► Example: In -s /nfs/@hostname/sysinfo /nfs/sysinfo □ ► 4 s ► <■=► < ■= ► ■O q,C^ ■■LUJJ.MJ.IlUU4IEilLai^^lMI.I.UIJIIAlBIBB 11 ► Create a GFS filesystem ► Extend it and add one more journal ► Use a CDPN (9 •f) <\(y IJ.U]JI^MUJjmilllll»lJJUJJ.UIJIIJM ► Themes: ► GFS vs OCF Format: ►• Short presentation (15-20 minutes; 5-7 slides) ►• Paper containing comparision (1.000 words) s ■O Q-C* ■■LUJJ.MJ.IlUU4IEilLai^^lMI.I.UIJIIAlBIBB