附录 A. 将​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​从​​​​​​​ GFS 转​​​​​​​换​​​​​​​为​​​​​​​ GFS2


要​​​​​​​将​​​​​​​ GFS 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​转​​​​​​​换​​​​​​​为​​​​​​​ GFS2 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​请​​​​​​​使​​​​​​​用​​​​​​​ gfs2_convert 命​​​​​​​令​​​​​​​。​​​​​​​
  1. 将​​​​​​​ GFS 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​从​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​节​​​​​​​点​​​​​​​中​​​​​​​卸​​​​​​​载​​​​​​​。​​​​​​​
  2. 在​​​​​​​ GFS 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​中​​​​​​​执​​​​​​​行​​​​​​​ gfs_fsck 命​​​​​​​令​​​​​​​以​​​​​​​确​​​​​​​定​​​​​​​没​​​​​​​有​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​崩​​​​​​​溃​​​​​​​。​​​​​​​
  3. 重​​​​​​​新​​​​​​​挂​​​​​​​载​​​​​​​并​​​​​​​备​​​​​​​份​​​​​​​现​​​​​​​有​​​​​​​ GFS 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​
  4. 卸​​​​​​​载​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​并​​​​​​​执​​​​​​​行​​​​​​​ gfs2_convertgfsfilesystem。​​​​​​​该​​​​​​​系​​​​​​​统​​​​​​​会​​​​​​​显​​​​​​​示​​​​​​​警​​​​​​​告​​​​​​​信​​​​​​​息​​​​​​​并​​​​​​​在​​​​​​​将​​​​​​​ gfsfilesystem 转​​​​​​​换​​​​​​​为​​​​​​​ GFS2 之​​​​​​​前​​​​​​​进​​​​​​​行​​​​​​​确​​​​​​​认​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​是​​​​​​​在​​​​​​​块​​​​​​​设​​​​​​​备​​​​​​​ /dev/testvg/testlv 中​​​​​​​将​​​​​​​ GFS 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​转​​​​​​​换​​​​​​​为​​​​​​​ 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 ~]#
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.