[OracleOSS] [TitleIndex] [WordIndex]

OCFS2/DesignDocs/LocalMount

OCFS2 LOCAL MOUNT SUPPORT

Sunil Mushran, Nov 22 2006

GOALS

To allow users to mount ocfs2 volume(s) locally without requiring any cluster configuration though should also work if the cluster is setup and is online.

USER INTERACTION

This feature introduces the concept of mount-type with cluster and local as the two options. Users use tunefs.ocfs2 to toggle between the two. mkfs.ocfs2 allows users to specify the mount-type during make with cluster being the default.

# tunefs.ocfs2
usage: tunefs.ocfs2 [-J journal-options] [-L volume-label]
                [-M mount-type] [-N number-of-node-slots]
                [-qSUvV] device [blocks-count]

# mkfs.ocfs2
usage: mkfs.ocfs2 [-b block-size] [-C cluster-size] [-J journal-options]
                [-L volume-label] [-M mount-type] [-N number-of-node-slots]
                [-T filesystem-type] [-HFqvV] device [blocks-count]

IMPLEMENTATION

We add a incompat flag OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT in the super block to denote local mounts. The incompat flag automatically prevents older modules/tools from accessing the volume. As the newer modules/tools are aware of this feature, they handle it appropriately.

PATCHES - ORIGINAL

The patches are being made available for feedback on the implementation till now. These have not been tested fully.... survives kernel builds though.

OCFS2 Patch

Tools Patch

PATCHES - CURRENT

Quilt series patches for tool

Consolidated patch for module

TODO


2012-11-08 13:01