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
Using Official Redhat DVD as repository
Viewed 11268 times since Mon, Oct 29, 2018
chrt command: Set / Manipulate Real Time Attributes of a Linux Process
Viewed 11165 times since Mon, Feb 17, 2020
debian Install a newer kernel in Debian 9 (stretch) stable
Viewed 1849 times since Sun, Sep 23, 2018
HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples
Viewed 5362 times since Fri, Nov 30, 2018
awk printf
Viewed 15324 times since Wed, Aug 19, 2020
Improve security with polyinstantiation
Viewed 13364 times since Fri, May 15, 2020
Install OpenVPN On CentOS / RHEL 7
Viewed 3102 times since Fri, May 15, 2020
20 IPtables Examples For New SysAdmins
Viewed 2260 times since Fri, May 15, 2020
Watchdog script to keep an application running
Viewed 18739 times since Tue, Jul 31, 2018
www.unixarena.com
Viewed 2506 times since Fri, Jul 27, 2018