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 aix Killing a process and all of its descendants
Viewed 3966 times since Tue, May 5, 2020
RHEL: Multipathing basics
Viewed 9444 times since Sat, Jun 2, 2018
Transform XML to CSV Format | Unix String Pattern Manipulation The Ugly Way
Viewed 5917 times since Sun, Jan 9, 2022
Fake A Hollywood Hacker Screen in Linux Terminal linux FUN
Viewed 6442 times since Thu, Apr 18, 2019
Linux Screen
Viewed 2166 times since Sat, Jun 2, 2018
How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 3446 times since Fri, Sep 28, 2018
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 3397 times since Tue, Aug 6, 2019
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 3648 times since Thu, Jan 16, 2020
YUM How to use yum command on CentOS/RHEL
Viewed 7362 times since Thu, Oct 25, 2018
OEL 7 – How to disable IPv6 on Oracle Linux 7 – Follow Up
Viewed 9623 times since Wed, Jul 25, 2018