Appendice A. Conversione di un file system da GFS a GFS2

Usare il comando gfs2_convert per convertire un file system GFS in un file system GFS2.
  1. Smontate il file system GFS da tutti i nodi presenti nel cluster.
  2. Eseguite il comando gfs_fsck sul file system GFS, in modo da assicurarvi che il file system non sia corrotto.
  3. Rimontate ed eseguite un backup del vostro file system esistente.
  4. Smontate il file system ed eseguite gfs2_convert gfsfilesystem. Il sistema mostrerà le domande di conferma insieme ai messaggi d'avviso prima delle conversione di gfsfilesystem in GFS2.
Il seguente esempio converte un file system GFS sul dispositivo a blocchi /dev/testvg/testlv in un file system GFS2.
[root@dash-01 ~]# gfs2_convert /dev/testvg/testlv
gfs2_convert version 2 (built Sep 25 2007 12:41:29)
Copyright (C) Red Hat, Inc.  2004-2006  All rights reserved.

This program will convert a gfs1 filesystem to a gfs2 filesystem.
WARNING: This can't be undone.  It is strongly advised that you:

   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 ~]#