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
20 Practical Examples of RPM Commands in Linux rpm
Viewed 7765 times since Mon, Feb 18, 2019
ZPOOL: Remove an existing zpool
Viewed 2122 times since Sun, Jun 3, 2018
Securing /tmp and shm partitions
Viewed 3015 times since Fri, May 15, 2020
Using renice and taskset to manage process priority and CPU affinity with Linux OEL 6.4
Viewed 3398 times since Mon, Feb 17, 2020
Using Kerberos security with Server for NFS
Viewed 9272 times since Wed, Jun 27, 2018
How To: Create Self-Signed Certificate – OpenSSL
Viewed 2777 times since Mon, Feb 18, 2019
Use inotify-tools on CentOS 7 or RHEL 7 to watch files and directories for events
Viewed 13780 times since Fri, Jul 27, 2018
How to sort IP addresses in Linux
Viewed 3349 times since Sun, May 20, 2018
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 3020 times since Thu, Jan 16, 2020
Epoch & Unix Timestamp Conversion Tools
Viewed 48800 times since Fri, Jun 22, 2018