Sol10, "is logging" meaning.


 
Thread Tools Search this Thread
Operating Systems Solaris Sol10, "is logging" meaning.
# 1  
Old 01-19-2018
Sol10, "is logging" meaning.

hello everyone,

Could someone explain me, what does mean "is logging" when the system boots up:
Code:
/dev/rdsk/c0t0d0s1: is logging

What is the purpose of doing this procedure?
And why only certain slices are being processed. Is there any settings fo that?

thanks in advance

Last edited by wolfgang; 01-19-2018 at 03:20 PM..
# 2  
Old 01-19-2018
It means that the volume has been configured as a "transactional volume" but I would expect the devices to be specified as such e.g. /dev/md/dsk/d61 rather than /dev/rdsk/c0t0d0s1. I would think that the transactional volume configuration was never properly completed.

Ref:
Example—Creating a Transactional Volume for a Slice (Solaris Volume Manager Administration Guide)

Try searching this forum and/or Google for "Solaris transactional volume".
This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 01-19-2018
Traditionally each Unix file system is to be fsck'ed during system boot.
Since Solaris 7 logging (others say journaling) was introduced; the "intent log" in the file system obsoletes the fsck. (Since Solaris 8 logging is default.)
When the system boots it says "is logging" when it skips the fsck.
--
Just seeing the other reply; the Solaris Volume Manager (old name is "Disk Suite") provides another type of logging where the intent log is on a separate volume. This kind of logging is actually older, and also says "is logging" (and skips fsck) during a system boot.

Last edited by MadeInGermany; 01-19-2018 at 05:55 PM..
This User Gave Thanks to MadeInGermany For This Post:
# 4  
Old 01-20-2018
Hello guys,

To MadeInGermany. I could not understand this part of the sentence.Smilie

Quote:
the "intent log" in the file system obsoletes the fsck.
Also, why one machine does logging of slice1 only, and another one does logging of slice 1 and slice 5? Is there any reasons for that?

If I get it correctly.

  • When system skipes the fsck checkup of certain slice, that means that there's no problem with this slice and system just does logging of that slice.
  • When system writes nothing opposite certain slice, that means that slice is being processed with the fsck. So the fsck checkup means there are some problem discovered with this slice.
Am I correct?

To me more or less clear what processes the fsck.

So, I'm interested in the word logging what does it really means in this case? I would like to hear understable answer on that. What happens literally with the certain slice while logging.



Also hicksd8 wrote,
Quote:
It means that the volume has been configured as a "transactional volume".
Could you explain understandable what does it mean and provide an example? If it's possible of course.

P.S. As far as I remember there were six slices configured during installation and we had nothing noticed in the settings about "whether configure certain slice as tranactional or not".

Wolfgang

Last edited by wolfgang; 01-20-2018 at 04:37 AM..
# 5  
Old 01-20-2018
Quote:
Originally Posted by wolfgang
Also, why one machine does logging of slice1 only, and another one does logging of slice 1 and slice 5? Is there any reasons for that?
Sure, on the first disk, there are two ufs file system with logging enabled, s1 and s5 while on the second disk, only slice 1 is containing an ufs file system.
There is no use for logging with the swap slice, because there is no file system on it in the first place. Slice 2 being the wole disk must not have loggin enabled, that wouldn't make sense. Either the other partitions are raw devices for some application needing them, or are using ZFS, are spare partitions, or are just empty.
Quote:
  • When system skipes the fsck checkup of certain slice, that means that there's no problem with this slice and system just does logging of that slice.
When the OS boots and try to mount the file systems that need to, it first check if each file system has been properly unmounted, which should be the general case. The file system is then in a clean state and no fsck is performed.

If the file system state in not "clean", that means it wasn't unmounted properly or at all, for example because there was a power failure, a system panic, the disk was unplugged and similar situations. In such case, if the file system has logging enabled, instead of launching fsck, the OS only has to verify the last write/delete transactions were already performed, and replay the ones that weren't, if any. If the file system hasn't logging enabled, fsck is used and can take a long period of time because the OS need to explore the whole directory tree to see if everything is fine, fix inconsistencies and salvage files that would have been lost otherwise by copying them to the lost+found directory.

So logging speeds up mount after crash operations.

Note that you might ask fsck to check an ufs file system anyway because a corruption can be due to other causes, like bad blocks, faulty controllers or cables.

The only file system that fully removes fsck requirement is ZFS. With it, all operations are transaction so are either committed or not recorded and all blocks are checksummed so the OS knows if their content is reliable or not. The file system cannot be corrupted by a brutal shutdown.

Quote:
So, I'm interested in the word logging what does it really means in this case? I would like to hear understable answer on that. What happens literally with the certain slice while logging.
Logging means all operations that change the contents of a file system are written in a "journal", a log, which is in a different location than the data. This journal contains all metadata operations (not the data ones) and is being written synchronously (writes are immediately flushed) so is consistent, unlike the regular data and metadata writes which might be reordered to speed up the process, and which are not immediately performed (buffering).

Quote:
Also hicksd8 wrote,
Could you explain understandable what does it mean and provide an example? If it's possible of course.

P.S. As far as I remember there were six slices configured during installation and we had nothing noticed in the settings about "whether configure certain slice as tranactional or not".
That's expected, logging is enabled by default because the is no reason not to do it.
This User Gave Thanks to jlliagre For This Post:
# 6  
Old 01-20-2018
Type
Code:
mount | grep /dev/dsk/

to see the current mount options.
If they are not set in /etc/fstab then they are the default.
Code:
man mount_nfs

gives another good explanation of the logging option.
This User Gave Thanks to MadeInGermany For This Post:
# 7  
Old 01-20-2018
Quote:
If the file system state in not "clean", that means it wasn't unmounted properly or at all, for example because there was a power failure, a system panic, the disk was unplugged and similar situations. In such case, if the file system has logging enabled, instead of launching fsck, the OS only has to verify the last write/delete transactions were already performed, and replay the ones that weren't, if any. If the file system hasn't logging enabled, fsck is used and can take a long period of time because the OS need to explore the whole directory tree to see if everything is fine, fix inconsistencies and salvage files that would have been lost otherwise by copying them to the lost+found directory.
So, considering that's written above and having this (see code) every start:
Code:
/dev/rdsk/c0t0d0s1: is logging  [swap]
/dev/rdsk/c0t0d0s5: is logging  [opt]

It may say that after every system shutdown this mashine had some issues that you described above, I guess. Am I correct?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

What is the meaning of "-s" option in "if" statement?

Hi Guys, I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below: opath=/home/output for i in N1 N2 N3 N4 do echo $i if then grep $i $opath/N5_CRAI > $opath/N5_$i.crai chmod 777 $opath/N5_$i.crai ... (7 Replies)
Discussion started by: rymnd_12345
7 Replies

3. UNIX for Dummies Questions & Answers

Variable "##*", "% *" meaning

Hi, What means "##*", "% *" in a variable?? I have this in the script that i'm reading: ... read line echo $line echo ${line#* } echo ${line##* } echo ${line% * } ... The first print: DN: RCROOT ONRM_ROOT_MO SNW ONRM_ROOT_MO BSC BSCCC2 BTS ALTOHATILLONOR The second print:... (2 Replies)
Discussion started by: darocham
2 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

Meaning of "b" modifier in "sort" command

I need to sort the following file by the rhdiskpower devices in the last column: Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path 1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
Discussion started by: wjssj
3 Replies

6. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

7. Shell Programming and Scripting

Meaning of "> /dev/null 2>&1"

Hi, I am new into UNIX shell scripting and I am wondering what is the meaning of the below text which appears at the end of each line in the ".sh" file: > /dev/null 2>&1 For example, the line below: sh $HOME/stats/Rep777/Act_777.sh omc omc > /dev/null 2>&1 I know for sure what "sh... (10 Replies)
Discussion started by: salanalani
10 Replies

8. Shell Programming and Scripting

Meaning of "if [ -x /opt/OV/bin/ovpolicy ]"

Hi, Could someone pls help me on the below command: if then ------------------ ------------ fi if then ------------- ------------------- ------------------- fi What does this signify? Thanks, .. (4 Replies)
Discussion started by: ww26683
4 Replies

9. UNIX for Dummies Questions & Answers

Meaning of $var->{"@$row[0]"}=" "; ???

while (my $row = $sth->fetchrow_arrayref) { $var->{"@$row"}=" "; } Can anyone help me understanding above mentioned. i) As per my knowledge $row is taking ARRAY Refernce from the database ii) @$row is containing the value of 0th index of the array, testted the same. but I am not able... (0 Replies)
Discussion started by: jaigs_27
0 Replies
Login or Register to Ask a Question