---
name: "gfs2_convert"
section: "8"
platform: "linux"
package: "gfs2-utils"
version: "3.5.0-2"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/gfs2_convert"
---

# gfs2\_convert(8)

Convert a GFS1 filesystem to GFS2

## NAME

gfs2\_convert - Convert a GFS1 filesystem to GFS2

## SYNOPSIS

**gfs2\_convert** \[*OPTION*\]... *DEVICE*

## DESCRIPTION

gfs2\_convert is used to convert a filesystem from GFS1 to GFS2. It is required that the GFS1 filesystem be checked and fixed for errors using  **fsck.gfs2** and that the filesystem be backed up before attempting to convert it. The convert process is irreversible and any error encountered during the conversion can result in the abrupt termination of the program and consequently an unusable filesystem. See **NOTES** section below for more information.

## OPTIONS

- **-h**

  Help.

  This prints out the proper command line usage syntax.

- **-q**

  Quiet.  Print less information while running.

- **-n**

  No to all questions.

- **-V**

  Print program Version information only.

  Print out the current version name.

- **-v**

  Verbose operation.

  Print more information while running.

- **-y**

  Yes to all questions.

  By specifying this option, gfs2\_convert will not prompt before making changes.

## EXAMPLE

- gfs2\_convert /dev/vg0/lvol0

  This will convert the Global File System on the block device "/dev/vg0/lvol0" to gfs2 format.

## NOTES

If gfs2\_convert is interrupted for some reason other than a conversion  failure, DO NOT run **fsck.gfs2** on this partially converted filesystem. When this occurs, reissue the gfs2\_convert command on the partially converted filesystem to complete the conversion process.

The GFS2 filesystem does not support Context-Dependent Path Names (CDPNs).  gfs2\_convert identifies such CDPNs and replaces them with empty directories  with the same name. The administrator can use bind mounts on these  directories to get the same effect as CDPNs.

When converting full or nearly full filesystems, it is possible that there won't be enough space available to fit all the GFS2 filesystem data  structures. In such cases, the size of all the journals is reduced uniformly such that everything fits in the available space.
