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
Linux Health Check Commands
Viewed 1248 times since Fri, Jun 8, 2018
Understanding System auditing with auditd
Viewed 3520 times since Fri, Apr 5, 2019
RHEL: How to rebuild and/or patch a RPM package
Viewed 5565 times since Sat, Jun 2, 2018
Top 20 OpenSSH Server Best Security Practices - good article
Viewed 8014 times since Mon, Oct 1, 2018
How do I add ethtool settings to a network device permanently?
Viewed 4759 times since Mon, May 21, 2018
Linux nslookup Command Examples for DNS Lookup
Viewed 7262 times since Sat, Sep 29, 2018
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 1473 times since Fri, Apr 19, 2019
Install OpenVPN On CentOS / RHEL 7
Viewed 1171 times since Fri, May 15, 2020
Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
Viewed 10968 times since Sun, Sep 30, 2018
linux aix Killing a process and all of its descendants
Viewed 1416 times since Tue, May 5, 2020