Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Applications > Global File System (GFS) > Issue <<  16 of 71 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 9322
Last update: 10-18-06
Issue:
How do I mount a GFS filesystem without starting the cluster in Red Hat Enterprise Linux 4?
Resolution:

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.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Applications > Global File System (GFS) > Issue <<   16  of  71  >>