RHCS6: Show/Add GFS2/GFS journals

RHCS: Show/Add GFS2/GFS journals

# Tested on RHEL 6/gfs2 and RHEL 5/gfs

# GFS2 -------------------------------

# Showing journals of a gfs2 filesystem

gfs2_tool journals /<mountpoint>

   journal2 - 128MB
   journal3 - 128MB
   journal1 - 128MB
   journal0 - 128MB
   4 journal(s) found.


# Adding journals to a gfs2 filesystem

gfs2_jadd -j <journals_to_add> -J <journal_size_in_MB> /<mountpoint>



# GFS --------------------------------


# Showing journals of a gfs filesystem is a little bit more complex

# There's no "journals" option. We have to use "jindex" instead but output
# is a bit cryptic; it shows the number of 64K segments

gfs_tool jindex /<mountpoint> | egrep "Journal|segment"
   Journal 0:
     ji_nsegment = 2048
   Journal 1:
     ji_nsegment = 2048
   Journal 2:
     ji_nsegment = 2048
   Journal 3:
     ji_nsegment = 2048

# In this case we have 2048 seg * 64K/seg = 128M


# Adding journals to a gfs filesystem

gfs_jadd -j <journals_to_add> -J <journal_size_in_MB> /<mountpoint>
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Zabijanie wszystkich procesów użytkownika
Viewed 3234 times since Thu, May 24, 2018
O’Reilly’s CD bookshelf
Viewed 14396 times since Wed, Jun 27, 2018
Easily Find Bugs In Shell Scripts With ShellCheck
Viewed 3907 times since Thu, Apr 18, 2019
How setting the TZ environment variable avoids thousands of system calls
Viewed 10792 times since Mon, May 21, 2018
How to convert RAW image to VDI and otherwise
Viewed 15763 times since Wed, Oct 3, 2018
YUM CRON RHEL7: Configure automatic updates.
Viewed 2466 times since Fri, Oct 26, 2018
tcpdump usage examples
Viewed 2861 times since Fri, Jul 27, 2018
Red Hat Enterprise Linux - Allow Root Login From a Specific IP Address Only
Viewed 3434 times since Wed, Oct 3, 2018
How to do a Filesystem Resize (ext3/ext4) on Redhat running on VMware
Viewed 11601 times since Wed, Jul 25, 2018
Red Hat 8 How to Set Up Automatic Updates for CentOS 8
Viewed 4566 times since Fri, Sep 25, 2020