Skip to contentSkip to conversation

What does this mean?

DISCUSSION Basil Chupin 4 participants 13 messages Jul 8, 2002 – Aug 6, 2002

lore
Share & tools
lore
#0 lore raw

I am running SuSE 8 and the HD is being accessed every 5 seconds by "something". I thought I would just do a quick check of the reiserfs but on executing "reiserfsck --check --logfile check.log /dev/hda7" this produces the error message "/dev/hda7 is mounted w/ write permissions, can not check it." I cannot find this message documented so am wondering what it means, and what do I need to do in order to be able to check the integrity of the reiserfs on my sytem. Can anyone please help?

Cheers.

#1 lore raw

Hello!

Quoted 2 lines · Basil Chupin

I am running SuSE 8 and the HD is being accessed every 5 seconds by "something". I thought I would just do a quick check of the reiserfs but

atime updates and stuff?

Quoted 5 lines

on executing "reiserfsck --check --logfile check.log /dev/hda7" this produces the error message "/dev/hda7 is mounted w/ write permissions, can not check it." I cannot find this message documented so am wondering what it means, and what do I need to do in order to be able to check the integrity of the reiserfs on my sytem. Can anyone please help?

You can only check integrity on read-only mounted fs. You can only fix stuff on completely unmounted fs.

Bye,
Oleg

#2 lore raw
Quoted 6 lines · Oleg Drokin

Hello!

On Mon, Jul 08, 2002 at 11:30:13PM +1000, Basil Chupin wrote:

Quoted 7 lines
Quoted 3 lines

I am running SuSE 8 and the HD is being accessed every 5 seconds by "something". I thought I would just do a quick check of the reiserfs but

atime updates and stuff?

I really do not know what is causing this every-5-seconds access. This is why I am trying to check the integrity of the fs as part of my exercise of finding the reason for the access.

Quoted 11 lines
Quoted 3 lines

on executing "reiserfsck --check --logfile check.log /dev/hda7" this produces the error message "/dev/hda7 is mounted w/ write permissions, can not check it." I cannot find this message documented so am wondering what it means, and what do I need to do in order to be able to check the integrity of the reiserfs on my sytem. Can anyone please help?

You can only check integrity on read-only mounted fs. You can only fix stuff on completely unmounted fs.

Bye,
Oleg

.

Someone else responded to me earlier with the statement to execute following: "mount -o remount,rw /dev/hda7" which I thought had the "rw" wrong; but by changing the "rw" to "ro" I then got the error message, "mount: / busy".

All this is perplexing me, firstly because I am not tryng to change anything- all I am trying to do is to do what the blurb about reiserfs says which is "do this to CHECK the fs"; and secondly, how could one ever effect any corrections to the fs if it cannot be mounted!?

All too much for a country lad to fathom.

Cheers.

#3 lore raw
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

on executing "reiserfsck --check --logfile check.log /dev/hda7" this produces the error message "/dev/hda7 is mounted w/ write permissions, can not check it." I cannot find this message documented so am wondering what it means, and what do I need to do in order to be able to check the integrity of the reiserfs on my sytem. Can anyone please help?

Quoted 7 lines
Quoted 2 lines

You can only check integrity on read-only mounted fs. You can only fix stuff on completely unmounted fs.

All this is perplexing me, firstly because I am not tryng to change anything- all I am trying to do is to do what the blurb about reiserfs says which is "do this to CHECK the fs"; and secondly, how could one ever effect any corrections to the fs if it cannot be mounted!?

To *check* the filesystem at all, mount it in read-only mode. Oftentimes you need to stop most services to do that, say go to singleuser mode via

# telinit 1

To *fix* the filesystem, it *must* be unmounted, period. Typically, you will want to make a minimal "rescue" root partition on your hard drive, reboot with this partition given to kernel as the root (root=/dev/hdxxxx), and then run reiserfsck on your main root partition.

Cheers, Kuba Ober

#4 lore raw
In reply to Basil Chupin
Quoted 3 lines

I really do not know what is causing this every-5-seconds access. This is why I am trying to check the integrity of the fs as part of my exercise of finding the reason for the access.

This is normal and expected for your kernel version, AFAIK. Integrity of the fs has nothing to do with it (alas, do maintain the integrity, please ;-)

Cheers, Kuba Ober

#11 lore raw
In reply to Basil Chupin

Hello!

Quoted 6 lines · Basil Chupin
Quoted 3 lines
Quoted 2 lines

I am running SuSE 8 and the HD is being accessed every 5 seconds by "something". I thought I would just do a quick check of the reiserfs but

atime updates and stuff?

I really do not know what is causing this every-5-seconds access. This is why I am trying to check the integrity of the fs as part of my exercise of finding the reason for the access.

Integrity have nothing to do with that with 99.9% probability.

Quoted 11 lines
Quoted 7 lines
Quoted 5 lines

on executing "reiserfsck --check --logfile check.log /dev/hda7" this produces the error message "/dev/hda7 is mounted w/ write permissions, can not check it." I cannot find this message documented so am wondering what it means, and what do I need to do in order to be able to check the integrity of the reiserfs on my sytem. Can anyone please help?

You can only check integrity on read-only mounted fs. You can only fix stuff on completely unmounted fs.

Someone else responded to me earlier with the statement to execute
following: "mount -o remount,rw /dev/hda7" which I thought had the "rw" wrong; but by changing the "rw" to "ro" I then got the error message, "mount: / busy".

Sure. You can do this in single user mode, though.

Quoted 4 lines

All this is perplexing me, firstly because I am not tryng to change anything- all I am trying to do is to do what the blurb about reiserfs says which is "do this to CHECK the fs"; and secondly, how could one ever effect any corrections to the fs if it cannot be mounted!?

This is a balanced tree filesystem, so metadata flies all over the place on disk, so to ensure metadata stability, for check you need your volume to at least to be mounted read only.

Bye,
Oleg

#5 lore raw
In reply to Kuba Ober
Quoted 5 lines · Kuba Ober
Quoted 5 lines

I really do not know what is causing this every-5-seconds access. This is why I am trying to check the integrity of the fs as part of my exercise of finding the reason for the access.

Quoted 7 lines

This is normal and expected for your kernel version, AFAIK. Integrity of the fs has nothing to do with it (alas, do maintain the integrity, please ;-)

Cheers, Kuba Ober

I take the opporunity in this message to thank all who have responded to my queries as doing so will save me some typing :-).

Re what you just said about this being "normal and expected for your kernel version, AFAIK" I need to say that this is the reason why I am querying this accessing because I don't believe that it is - and i'll give my reason in a minute. Firstly, I want to say that following advice from at least a couple of people I was able to work out (I am new to Linux so don't really know what I am doing) how to check the reiser fs on my system. It is fine, of course. I needed to have it checked out, though, because I had to eliminate this as a variable in my attempt to find out why my HD(s) is/are being accessed by something every 5 seconds.

Please let me give a brief resume of why I am trying to find out why my HD is being accessed every 5 seconds (actually it is also occurring on another computer at home and a friend's machine -- and all are running SuSE 8.0).

I first asked this Q isn another forum and received the general reply
that it all had to do with the reiser fs -- which I didn't really believe. Why? because I didn't recall having this "problem" when I was running SuSE v7.2 with reiser fs. But just to be sure I started doing some testing.

I have another HD which I use for testing purposes and on this one I installed SuSE v7.2 undere reiserfs. There was no 5 second accessing on the HD.

I then installed SuSE 8 with ext3 (because someone said that the 5 seconds-thingie only happened under reiser) - and I still got the 5 secs access. So, it wasn't confined to reiserfs.

Following the comment in this forum that I can only run reiserfsck if the fs is not mounted or if I am in single-user mode, I went into single-user mode and guess what? As soon as one goes into single-user mode the 5 second accessing stops! Interesting, no?

And just to add more interest to the whole epic, I decided to do another
install of SuSE 8 under reiserfs on my test drive. I did an identical
install as I made on my other 2 computers and --- you guessed it: this time there is NO 5 second accessing of the HD (on the test system)!

So, that's the story, and I am still wondering why 3 systems runing SuSE 8 under reiserfs are having the HDs accessed every 5 seconds yet this does not occur on a (near identical) test system installed recently.

Cheers.

#12 lore raw
In reply to Oleg Drokin
Quoted 52 lines · Oleg Drokin

Hello!

Quoted 4 lines · Basil Chupin
Quoted 4 lines
Quoted 4 lines

I am running SuSE 8 and the HD is being accessed every 5 seconds by "something". I thought I would just do a quick check of the reiserfs but

Quoted 8 lines
Quoted 3 lines

atime updates and stuff?

I really do not know what is causing this every-5-seconds access. This is why I am trying to check the integrity of the fs as part of my exercise of finding the reason for the access.

Integrity have nothing to do with that with 99.9% probability.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

on executing "reiserfsck --check --logfile check.log /dev/hda7" this produces the error message "/dev/hda7 is mounted w/ write permissions, can not check it." I cannot find this message documented so am wondering what it means, and what do I need to do in order to be able to check the integrity of the reiserfs on my sytem. Can anyone please help?

Quoted 10 lines
Quoted 4 lines

You can only check integrity on read-only mounted fs. You can only fix stuff on completely unmounted fs.

Someone else responded to me earlier with the statement to execute
following: "mount -o remount,rw /dev/hda7" which I thought had the "rw" wrong; but by changing the "rw" to "ro" I then got the error message, "mount: / busy".

Sure. You can do this in single user mode, though.

Quoted 6 lines

All this is perplexing me, firstly because I am not tryng to change anything- all I am trying to do is to do what the blurb about reiserfs says which is "do this to CHECK the fs"; and secondly, how could one ever effect any corrections to the fs if it cannot be mounted!?

Quoted 8 lines

This is a balanced tree filesystem, so metadata flies all over the place on disk, so to ensure metadata stability, for check you need your volume to at least to be mounted read only.

Bye,
Oleg
.

Thank you for the explanation. I am on a learning curve in Linux so the above is most useful - one learns something new everyday.

Cheers.

#6 lore raw
In reply to Basil Chupin
Quoted 11 lines · Basil Chupin

Please let me give a brief resume of why I am trying to find out why my HD is being accessed every 5 seconds (actually it is also occurring on another computer at home and a friend's machine -- and all are running SuSE 8.0).

I first asked this Q isn another forum and received the general reply
that it all had to do with the reiser fs -- which I didn't really believe. Why? because I didn't recall having this "problem" when I was running SuSE v7.2 with reiser fs. But just to be sure I started doing some testing.

Quoted 7 lines

I have another HD which I use for testing purposes and on this one I installed SuSE v7.2 undere reiserfs. There was no 5 second accessing on the HD.

I then installed SuSE 8 with ext3 (because someone said that the 5 seconds-thingie only happened under reiser) - and I still got the 5 secs access. So, it wasn't confined to reiserfs.

Note that ext3 *also* has a 'kjournald' that ticks every 5 seconds.

I'm willing to bet that the system that wasn't seeing the ticking had all the filesystems mounted as ext2, which doesn't have a journal.

Signature · 3 lines
				Valdis Kletnieks
				Computer Systems Senior Engineer
				Virginia Tech
#7 lore raw
Quoted 9 lines · [email protected] wrote:
Quoted 5 lines · Basil Chupin

Please let me give a brief resume of why I am trying to find out why my HD is being accessed every 5 seconds (actually it is also occurring on another computer at home and a friend's machine -- and all are running SuSE 8.0).

I first asked this Q isn another forum and received the general reply
that it all had to do with the reiser fs -- which I didn't really believe. Why? because I didn't recall having this "problem" when I was running SuSE v7.2 with reiser fs. But just to be sure I started doing some testing.

Quoted 9 lines
Quoted 5 lines

I have another HD which I use for testing purposes and on this one I installed SuSE v7.2 undere reiserfs. There was no 5 second accessing on the HD.

I then installed SuSE 8 with ext3 (because someone said that the 5 seconds-thingie only happened under reiser) - and I still got the 5 secs access. So, it wasn't confined to reiserfs.

Note that ext3 *also* has a 'kjournald' that ticks every 5 seconds.

Ah, so it has similarities with reiser.

Quoted 4 lines

I'm willing to bet that the system that wasn't seeing the ticking had all the filesystems mounted as ext2, which doesn't have a journal.

Had you bet you would have lost! :-). All systems are operating under reiserfs.

You mentioning kjournald brought to min a conversation I had with a friend of mine who tends to have a similar approach to me when starting to run a new system (Linux [SuSE] in this case) and who also uses a second HD to test new installations before putting them onto the 'main' system.

We compared the outputs from the 'ps aux' command and what I found is that I am not running the kjournald process on any of my (3) 'systems' while he is (on his 2 'systems') even though our setups are almost identical (with regards to running SuSE v8 ). I thought kjournald was part and parcel of reiserfs but then why isn't it running on my 'systems'? Just another mystery.

Anyway, I think I have found the reason why I (and my friend and some other(s)) am having the HD accessed every 5 seconds, and after I have re-checked my finding I'll post the reason. It may not have anything directly to do with reiserfs but it may be that another application may be causing reiserfs to misbehave (in this 5-second syndrome) or, of course, it has a bug in it causing the kernel to do the 'wrong thing' (the application does a patch to the kernel).

Cheers.

#8 lore raw
Quoted 6 lines · Basil Chupin

We compared the outputs from the 'ps aux' command and what I found is that I am not running the kjournald process on any of my (3) 'systems'
while he is (on his 2 'systems') even though our setups are almost
identical (with regards to running SuSE v8 ). I thought kjournald was part and parcel of reiserfs but then why isn't it running on my 'systems'? Just another mystery.

ext2 filesystems don't have a kernel thread. ext3 have one kjournald thread per file system. resierfs have one kreiserfsd thread per file system.

You don't have any because you're all reiserfs. His two systems obviously have at least 1 ext3 file system (/boot or / perhaps?)

#9 lore raw
Quoted 8 lines · [email protected] wrote:
Quoted 3 lines · Basil Chupin

We compared the outputs from the 'ps aux' command and what I found is that I am not running the kjournald process on any of my (3) 'systems' while he is (on his 2 'systems') even though our setups are almost identical (with regards to running SuSE v8 ). I thought kjournald was part and parcel of reiserfs but then why isn't it running on my 'systems'? Just another mystery.

Quoted 6 lines

ext2 filesystems don't have a kernel thread. ext3 have one kjournald thread per file system. resierfs have one kreiserfsd thread per file system.

You don't have any because you're all reiserfs.

I learn someting new every day. Thanks for this information. And, Yes I do only have reiserfs installed.

Quoted 4 lines

His two systems obviously
have at least 1 ext3 file system (/boot or / perhaps?)

Ah, now this is something I believe he does not have. Like me he installs everything under the one file system. Howeve, I will check with him just in case he somehow misconfigured his system by accident (or design).

Cheers.

#10 lore raw
In reply to Basil Chupin
Quoted 28 lines · Basil Chupin
Quoted 9 lines · [email protected] wrote:
Quoted 5 lines · Basil Chupin

Please let me give a brief resume of why I am trying to find out why my HD is being accessed every 5 seconds (actually it is also occurring on another computer at home and a friend's machine -- and all are running SuSE 8.0).

I first asked this Q isn another forum and received the general
reply that it all had to do with the reiser fs -- which I didn't really believe. Why? because I didn't recall having this "problem" when I was running SuSE v7.2 with reiser fs. But just to be sure I started doing some testing.

Quoted 9 lines
Quoted 4 lines

I have another HD which I use for testing purposes and on this one I installed SuSE v7.2 undere reiserfs. There was no 5 second accessing on the HD.

I then installed SuSE 8 with ext3 (because someone said that the 5 seconds-thingie only happened under reiser) - and I still got the 5 secs access. So, it wasn't confined to reiserfs.

Note that ext3 *also* has a 'kjournald' that ticks every 5 seconds.

Ah, so it has similarities with reiser.

Quoted 4 lines

I'm willing to bet that the system that wasn't seeing the ticking had all the filesystems mounted as ext2, which doesn't have a journal.

Had you bet you would have lost! :-). All systems are operating under reiserfs.

Quoted 8 lines

You mentioning kjournald brought to min a conversation I had with a friend of mine who tends to have a similar approach to me when starting to run a new system (Linux [SuSE] in this case) and who also uses a second HD to test new installations before putting them onto the 'main' system.

We compared the outputs from the 'ps aux' command and what I found is that I am not running the kjournald process on any of my (3) 'systems' while he is (on his 2 'systems') even though our setups are almost identical (with regards to running SuSE v8 ). I thought kjournald was part and parcel of reiserfs but then why isn't it running on my 'systems'? Just another mystery.

Anyway, I think I have found the reason why I (and my friend and some other(s)) am having the HD accessed every 5 seconds, and after I have re-checked my finding I'll post the reason. It may not have anything directly to do with reiserfs but it may be that another application may be causing reiserfs to misbehave (in this 5-second syndrome) or, of course, it has a bug in it causing the kernel to do the 'wrong thing' (the application does a patch to the kernel).

Cheers.

I apologise for the delay in following-up on this topic but I have been occupied on other things (including upgrading my system).

What I found is that, at least in my case (and my friend's), the 5-second accessing of the HD is caused by Win4Lin. As soon as I/we boot into SuSE without the win4lin kernel the accessing stops and the system is quiet as a mouse. I am in touch with NeTraverse (Win4Lin) and they are investigating this matter.

In a different forum someone mentioned that when he un-installed seti-at-home the 5-second accessing on his system stopped - I mention this in case this is of interest to anyone.

I did some extensive (for me, that is :-)) testing and found that the 5-second accessing occurs when either reiser or ext3 file systems are installed but the access time "drops" to once every 35 seconds if ext2 fs is used. Interesting (?).

Cheers.