How do mount a GFS filesystem without starting cluster in Red Hat

A GFS filesystem can be mounted on one machine without the need to start the cluster services. The trick is to use the "lock_nolock" locking protocol.

There are a number of ways to do this:

  1. Via gfs_tool

    1. Make sure that the GFS module is loaded: 

        modprobe gfs
        

    2. To prepare GFS for the actual mount command, execute: 

        gfs_tool margs lockproto=lock_nolock
        

    3. Mount the GFS filesystem, like so: 

        mount -t gfs /dev/VolGroup00/LogVol01 /mount/point
        

      The gfs_tool command has to be performed for each GFS filesystem to be mounted. For example: 
       
       

        gfs_tool margs lockproto=lock_nolock
        mount -t gfs /dev/VolGroup00/LogVol02 /mount/data
        gfs_tool margs lockproto=lock_nolock
        mount -t gfs /dev/VolGroup00/LogVol03 /mount/shared
        

  2. Directly mounting 
      Another way to achieve the same result is to pass the lockproto option during mounting. The example above can be accomplished with the following commands: 
     
     

     mount -t gfs /dev/VolGroup00/LogVol02 /mount/data -o lockproto=lock_nolock
     mount -t gfs /dev/VolGroup00/LogVol03 /mount/shared -o lockproto=lock_nolock
     

    Again, make sure that the gfs module is loaded before mounting. 
     

Note: This proves useful for situations where the cluster is down and data needs to be accessed from GFS or for back-up purposes. Another machine with an attached tape device can also mount the gfs and back it up.

Warning: Although the gfs mount will be accessible to other machines, do not mount with the lock_nolock option on multiple machines at the same time or the data will be corrupted.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/110321/viewspace-613486/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/110321/viewspace-613486/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值