gfs2_convert 명령을 사용하여 GFS 파일시스템을 GFS2 파일 시스템으로 변경합니다.
클러스터에 있는 모든 노드에서 GFS 파일 시스템을 마운트 해제합니다.
GFS 파일 시스템에서 gfs_fsck 명령을 실행하여 손상된 파일 시스템이 없는 지를 확인합니다.
다시 마운트한 후 기존 GFS 파일 시스템을 백업합니다.
파일 시스템을 마운트 해제하고 gfs2_convert gfsfilesystem을 실행합니다. gfsfilesystem을 GFS2로 변경하기 전시스템에 경고 메세지가 나타나서 확인 질문을 하게 됩니다.
다음의 예에서는 블록 장치 /dev/testvg/testlv에 있는 GFS 파일 시스템을 GFS2 파일 시스템으로 변환하고 있습니다.
gfs2_convert /dev/testvg/testlv
[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 ~]#
Copy to ClipboardCopied!Toggle word wrapToggle overflow