Change gfs2 locking table

If you created gfs2 file system and by mistake entered wrong data in below command

# mkfs.gfs2 -p lock_dlm -t clusterName:fileSystemName -j numberOfJournals /device

then you can use gfs2_edit to edit particular field.

Here is example for changing locking table

For example, if we create gfs2 for cluster name cluster1 and file system name cluster1FS

# mkfs.gfs2 -p lock_dlm -t cluster1:cluster1FS -j 3 /dev/lvmtest/test

and after realize that cluster1:cluster1FS is not what we want, but cluster:clusterFS, editing is simple and fast

# gfs2_tool sb /dev/lvmtest/test table cluster:clusterFS

For more information and options see GFS2 guide at Red Hat web pages

Advertisements

#gfs2