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.
- Smontate il file system GFS da tutti i nodi presenti nel cluster.
- Eseguite il comando
gfs_fsck
sul file system GFS, in modo da assicurarvi che il file system non sia corrotto. - Rimontate ed eseguite un backup del vostro file system esistente.
- Smontate il file system ed eseguite
gfs2_convert
. Il sistema mostrerà le domande di conferma insieme ai messaggi d'avviso prima delle conversione digfsfilesystem
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 ~]#