# Progress bar for fsck not visible during boot

**URL:** <https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244>\
**Category:** SLES Configure-Administer\
**Created:** [October 23, 2014, 12:16am UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244 "2014-10-23T00:16:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![heinkonijn](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@heinkonijn](https://forums.suse.com/u/heinkonijn)\
**Post date:** [October 23, 2014, 12:16am UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244/1 "2014-10-23T00:16:46Z")

</div>

Hi,

The default behavior of our SLES11sp3 boxes has changed sometime iin the last 6 months, don’t know when exactly.  
I have multiple LVM volume groups and volumes in them, I have it configured to do an auto check after 180 days during server boot.

In the past there was a progress bar for all volumes, but now there only is a bar for the volumes in the first volume group.

For the others it just says it is doing the fsck.

Some of our volumes are quite big and it takes a while to complete (which is fine), but now it is sort of impossible to check if something is still happening as our VM’s are in a cloud and I have no visibility for disk IO or CPU utilization.

I assume one of the SLES patches changed this behavior.

Any idea what I should configure to get my bar back?

Thanks,  
Hein

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 23, 2014, 12:50pm UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244/2 "2014-10-23T12:50:09Z")

</div>

Hi Hein,

[QUOTE=heinkonijn;24315]Hi,

The default behavior of our SLES11sp3 boxes has changed sometime iin the last 6 months, don’t know when exactly.  
I have multiple LVM volume groups and volumes in them, I have it configured to do an auto check after 180 days during server boot.

In the past there was a progress bar for all volumes, but now there only is a bar for the volumes in the first volume group.

For the others it just says it is doing the fsck.

Some of our volumes are quite big and it takes a while to complete (which is fine), but now it is sort of impossible to check if something is still happening as our VM’s are in a cloud and I have no visibility for disk IO or CPU utilization.

I assume one of the SLES patches changed this behavior.

Any idea what I should configure to get my bar back?

Thanks,  
Hein[/QUOTE]

I don’t know if this piece of code changed, but it’s /etc/init.d/boot.localfs that’s deciding on whether to show the bar or not:

```auto
            # If we use a serial console, don't use the fsck progress bar
            if test "${REDIRECT##*/}" = "tty1" ; then
                FSCK_OPTS="$FSCK_OPTS -C"
            else
                FSCK_OPTS="$FSCK_OPTS -V"
            fi
```

So probably your VMs don’t report /dev/tty1 as the terminal, when fsck is run?

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![heinkonijn](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@heinkonijn](https://forums.suse.com/u/heinkonijn)\
**Post date:** [October 23, 2014, 11:52pm UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244/3 "2014-10-23T23:52:30Z")

</div>

Hi Jens,

Thanks for pointing me into this direction.  
The progress bar is shown for the volumes in the first LVM group, but not for the ones in the other ones, so I don’t think the /dev/tty1 is the problem.

I did a compare between a plain vanilla SLES11sp3 server and one that has all the recent patches.

File /etc/init.d/boot.localfs is part of package aaa\_base-11-6.94.1 that was updated on the server on Sep 13.  
File /sbin/fsck is part of package util-linux-2.19.1-6.54.1 that was updated on the server on Jul 12.

I found some changes in the /etc/init.d/boot.localfs file:

Old  
# common options for file system check  
FSCK\_OPTS="-R -A -M -a"  
# force file system check if forced  
if test -f /forcefsck -o “$DO\_FORCEFSCK” = “yes” ; then  
FSCK\_OPTS="$FSCK\_OPTS -f"  
fi  
# If we use a serial console, don’t use the fsck progress bar  
if test “${REDIRECT##\*/}” = “tty1” ; then  
FSCK\_OPTS="$FSCK\_OPTS -C"  
else  
FSCK\_OPTS="$FSCK\_OPTS -V"  
fi  
echo “Checking file systems…”  
fsck $FSCK\_OPTS  
# A return code of 1 indicates that file system errors  
# were corrected, but that the boot may proceed.  
# A return code of 2 or larger indicates failure.  
FSCK\_RETURN=$?  
test -n “$FSTAB\_FILE” && rm -f $FSTAB\_FILE  
test $FSCK\_RETURN -lt 4  
rc\_status -v1 -r

New  
# common options for file system check  
FSCK\_OPTS="-R -A -M -a -t noopts=\_netdev"  
# force file system check if forced  
if test -f /forcefsck -o “$DO\_FORCEFSCK” = “yes” ; then  
FSCK\_OPTS="$FSCK\_OPTS -f"  
fi  
# If we use a serial console, don’t use the fsck progress bar  
if test “${REDIRECT##\*/}” = “tty1” ; then  
FSCK\_OPTS="$FSCK\_OPTS -C"  
else  
FSCK\_OPTS="$FSCK\_OPTS -V"  
fi  
# test if we know -r  
fsck -r /dev/null \>/dev/null 2\>/dev/null  
if test $? -ne 16 ; then  
FSCK\_OPTS="$FSCK\_OPTS -r"  
fi  
echo “Checking file systems…”  
fsck $FSCK\_OPTS \> /fsck\_corrected\_errors  
# A return code of 1 indicates that file system errors  
# were corrected, but that the boot may proceed.  
# A return code of 2 or larger indicates failure.  
FSCK\_RETURN=$?  
test $FSCK\_RETURN -eq 0 && rm -f /fsck\_corrected\_errors  
test -n “$FSTAB\_FILE” && rm -f $FSTAB\_FILE  
test $FSCK\_RETURN -lt 4  
rc\_status -v1 -r

I am guessing the issue is “\> /fsck\_corrected\_errors”.  
The last line I see during boot is “Checking file systems…”

So, what seems to be happening is that the progress bar is written to file /fsck\_corrected\_errors.  
Then when no errors are found in the fsck the /fsck\_corrected\_errors is deleted again, so leaving no trace.  
I guess they should have used “tee” to display both to console and file.

Am I right, or am I missing something?

Cheers,  
Hein

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 24, 2014, 1:12am UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244/4 "2014-10-24T01:12:05Z")

</div>

Hi Hein,

> Am I right, or am I missing something?

looks like you’ve nailed it… if you’d like to change that piece of code to include tee, please watch out to have the proper rc checked (you’re running a command pipe).

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![heinkonijn](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@heinkonijn](https://forums.suse.com/u/heinkonijn)\
**Post date:** [October 24, 2014, 12:36pm UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244/5 "2014-10-24T12:36:54Z")

</div>

Hi Jens,

Just FYI.  
I opened a SR with SuSE support detailing the issue.

I guess they will include a fix and deploy update to channel, so everyone will benefit.  
I’ll update this thread if I know what/when/where.

Thanks,  
Hein

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 28, 2014, 1:06pm UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244/6 "2014-10-28T13:06:54Z")

</div>

Hi Hein,

thank you for that update - this is IMO something that should be changed back to the old behavior, and a SR is the best way to achieve that.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![FBezemer](https://avatars.discourse-cdn.com/v4/letter/f/f04885/32.png) [@FBezemer](https://forums.suse.com/u/FBezemer)\
**Post date:** [November 25, 2014, 4:18am UTC](https://forums.suse.com/t/progress-bar-for-fsck-not-visible-during-boot/26244/7 "2014-11-25T04:18:15Z")

</div>

[QUOTE=jmozdzen;24377]Hi Hein,

thank you for that update - this is IMO something that should be changed back to the old behavior, and a SR is the best way to achieve that.

Regards,  
Jens[/QUOTE]

Just FYI  
Received a new aaa-base RPM from support to try. And it is working fine again.  
So I guess this new version should pop up in the repo soon
