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
There are no attachments for this article.
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
Viewed 1579 times since Fri, Nov 30, 2018
Increase A VMware Disk Size (VMDK) Formatted As Linux LVM without rebooting
Viewed 14846 times since Wed, May 30, 2018
10 Linux cryptsetup Examples for LUKS Key Management (How to Add, Remove, Change, Reset LUKS encryption Key)
Viewed 4674 times since Tue, Jul 31, 2018
RHEL: Reinstalling Boot Loader on the Master Boot Record (MBR)
Viewed 2840 times since Sun, May 27, 2018
Viewed 7492 times since Sat, Jun 2, 2018
HowTo: Create CSR using OpenSSL Without Prompt (Non-Interactive)
Viewed 13493 times since Mon, Feb 18, 2019
WatchDog watchdog.sh script for checking server running
Viewed 4950 times since Tue, Jul 31, 2018
How to manage Linux password expiry with the chage command
Viewed 10822 times since Tue, Sep 11, 2018
RHEL: XFS basic operations
Viewed 15110 times since Sat, Jun 2, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 1636 times since Sat, Jun 2, 2018