A. Converting A File System From Gfs To Gfs2 - Red Hat ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2 Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2:
Table of Contents

Advertisement

Appendix A. Converting a File System
from GFS to GFS2
Use the gfs2_convert command. To convert a GFS file system to a GFS2 file system.
Warning
If the conversion from GFS to GFS2 is interrupted by a power failure or any other issue,
restart the conversion tool. Do not attempt to execute the fsck.gfs2 command on the
file system until the conversion is complete.
1. Make a backup of your existing GFS file system.
2. Unmount the GFS file system from all nodes in the cluster.
3. Execute the gfs_fsck command on the GFS file system to ensure there is no file system
corruption and that you are working on a clean file system.
4. Execute gfs2_convert gfsfilesystem. The system will display warnings and confirmation
questions before converting gfsfilesystem to GFS2.
The following example converts a GFS filesystem on block device /dev/testvg/testlv to a GFS2
filesystem.
[root@dash-01 ~]# gfs2_convert /dev/testvg/testlv
gfs2_convert version 2 (built Sep 25 2007 12:41:29)
Copyright (C) Red Hat, Inc.
This program will convert a gfs1 filesystem to a gfs2 filesystem.
WARNING: This can't be undone.
1. Back up your entire filesystem first.
2. Run gfs_fsck first to ensure filesystem integrity.
3. Make sure the filesystem is NOT mounted from any node.
4. Make sure you have the latest software versions.
Convert /dev/testvg/testlv from GFS1 to GFS2? (y/n)y
Converting resource groups.
Converting inodes.
6 inodes converted.
Fixing file and directory information.
1 directories, 2 dirents fixed.
Converting journals.
Converting journal space to rg space.
Building system structures.
Removing obsolete gfs1 structures.
Committing changes to disk.
/dev/gfs2testvg/gfs2testlv: filesystem converted successfully to gfs2.
[root@dash-01 ~]#
2004-2006
All rights reserved.
It is strongly advised that you:
35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Global file system 2

Table of Contents