Solved

Questions about jfs2 log.

Posted on 2013-01-29
5
846 Views
Last Modified: 2013-01-29
OK, here he go wmp..

1- Which is better to use, INLINE or JFS2LOG?
2- Is possible to see the usage of the JFS2 log lv?
3- What happen if I umount a /filesystem, logform /dev/hd8 and mount /filesystem? The data is lost?

Not clear at all about how JFS2 log works..;)
0
Comment
Question by:sminfo
  • 3
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 38831525
Hi, and welcome back in our new year 2013 - hope you had a good start!

1) Hard to say. Some people prefer having a distinct log per filesystem, and with this setup an inline log is much easier to handle. With inline logging there is a distinct log per FS by design, no need to create lots of new logvolumes.
On the other hand, if you have an FS with heavy metadata activity (create/delete/update) you could consider using a separate logvolume on a separate disk for performance reasons.
Anyway, a logvolume should be mirrored if feasible, and an outline log can have multiple copies even if the original FS is not mirrored (well, a rare scenario, I assume ...).
If an FS with an inline log is mirrored the "log" part is automatically mirrored too.

I, for one, tend a bit more to inline logs ...

2) If with "usage" you mean "filling level" - no you can't see that. Only the FS itself is aware of what is placed where in the log volume.
If you mean "activity" instead - this can be monitored with "lvmstat" just as any other logical volume.

3) Formatting a log with logform destroys the log records contained therein, regardless of the log type used. Formatting an outline log volume means reformatting the whole volume, running logform against a filesystem volume containing an inline log means reformatting only the "log" part of that volume which doesn't affect filesystem data.

A filesystem journal keeps track of changes to metadata, such as the superblock, inodes, pointers, directories. In case of a filesystem crash the information contained in the journal is used to recover this metadata.


wmp
0
 

Author Closing Comment

by:sminfo
ID: 38831683
here I am wmp.. as always, with my topas at 100% USED...;)

OK, I understood everything.. thanks...
0
 

Author Comment

by:sminfo
ID: 38831698
BTW, do you have EMC storage there? I have a problem (case on IBM now) about mksysb of LPATRs and the EMC's powerhdisks and multipath.... tell me and I open a new question...;)
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38831889
Sorry, no EMC anymore. And even in those old days we never had a rootvg on it.
0
 

Author Comment

by:sminfo
ID: 38832337
heheh... I'm suffering with this )*(&*)()&PJM EMC.....:-(

see ya!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now