I have added a third disk to my PC. Using Yast, I created a partition table (I have tried GPT and MBR), created a 1TB
partition, formatted as ext4, and mounted it. The disk mounted, I can access it, but the hard disk LED blinks permanently,
approx 2 per second. Consequently, the computer slows down. I have tried it with other disks, with the same result.
Any ideas?
It might be baloo indexing the disk if it has data on it. Usually when it runs first time it scans the entire disk system in one go. There after it updates.
There can also be a problem due to the way ext4 works but in my case it was accessed every 5 secs. That can be improved by adding noacl to the disks options in fstab. What seems to be happening is that things like browsers are updating a disk all of the time so ext4 is for ever journalling.
When I noticed that this was going on I came across a comment on the web that initial formats may be incomplete and are finished off when the disk is actually running. I’ve seen no signs of this on open suse though.
Your problem was reported as a bug some years ago - slowing the machine down. Later it was just reckoned to be just down to how ext4 is supposed to work. At that time ext3 didn’t cause the same problem. People were having problems getting the disks to power down for power saving on laptops. That may have been fixed now but the solution was to extend the journalling write time very significantly. Using ext3 seems a better solution to me.
So in summary if the machine carries on doing it when it’s idle maybe just waiting for it to stop will get rid of the problem.
Baloo can be set back to do a first run again via ~/.config/baloorc by changing initial indexing… = true to false however you need to disable it first and delete it’s current cache file. It can be disabled in start button-system settings-search-file search. You can also disable some of plasma search here but must leave one enabled - that has to be a bug.
If you still have bookmark searches active a recent post I made shows how to fix that.
The reason for needing to do this seems to be down on going work. However having disabled the lot other than aspell plasma search krunner is now completely and utterly dead but the start button menu does search out applications and currently nothing else.
I reset all of my baloo some time ago as indexing everything in my case isn’t a good idea so I have totally disabled the lot. Then when I have time I will bring some of it back up excluding some directories etc. I deleted it;s cache file some time ago so not 100% sure where it is but think it’s in ~/'local/share/baloo. Easy for me to find as I just searched for files over 1gB.
No go, I’m afraid. I’ve noticed something else - when the new disk is mounted, the hard disk leds on my server (proxy) and on my hub switch blink, as if it was looking for a software package from the repos or something similar. Maybe some specific package is missing or damaged any idea on which packages(s) I should re-install?
I suspect it may just be down to using ext4 and is caused by journalling. iotop can be used to see what is causing the writes and on my system showed journalling writes every 5 secs until I added the option to fstab.
sdb2 is /var. I can’t hear those writes so clearly. Md0 is my /home directory. The increase in activities on that is due to leaving it running while I typed this post. It’s not been possible to detect what is actually causing the writes in my case. This came up while i was typing this paragraph. The repeat interval increased once I had finished it.
ext4lazyinit was the problem! Creating a new partition with default settings /Yast) does not initialise all inodes, so that on the first mount, ext4lazyinit does this, albeit very slowly. A 1 TB partition can take ages. I finally did it with 'mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/xxx.
Maybe this can help others - thanks for help anyway.
Thanks Ivan. It might help with a problem I have. I’m changing a disk with /var and /tmp on it plus swap. I’ve disabled swap for a while as that complicates things and easily bought back with YAST but when I boot up with the disk in the kernel comes up with a job running on the disk message. That doesn’t finish and as a result I boot to the console. This is a 1TB disk too. Could be that the lazy format is part complete and flagged as active. I doubt it though as boot needs to be able to cope with that but maybe only a part of a single lazy format had been done.
:’(Or something needs to be in /var that was put their during the previous boot on the old disk.
On the general area of writes I came across a comments about mounting log to ram, tmpfs. Also using ext2 for flash drives.