All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Vogt <vogt@itwm.fhg.de>
To: linux-lvm@sistina.com
Subject: [linux-lvm] bug in lvm-1.0.7-105 ?
Date: Mon Jan 19 12:11:07 2004	[thread overview]
Message-ID: <400AC31B.50507@ITWM.fhg.de> (raw)


Hello,

I think I found a bug in the

/etc/init.d/boot.lvm

script. (SuSE 9.0)

The Script mounts the root filesystem read/write to write
the information from vgscan to /etc/lvmtab.d/.

After that it tries to remount the root filesystem again with:

mount -n -o remount,ro /

This fails, which lead to a error message when

/etc/init.d/boot.localfs

is run.

This is the fix for /etc/init.d/boot.lvm:

            [...............]
               else
                echo "Remounting root file system (/) read/write for 
vgscan..."
                mount -n -o remount,rw /
                test $FSCK_RETURN -gt 0 && touch /fsck_corrected_errors
                echo "Scanning for LVM volume groups..."
                /sbin/vgscan

                # NEW [START]
                z=0
                mount -n -o remount,ro /
                while [ ! $? = 0 ] ; do
                      echo "ro mount failed: $z"
                      sleep 1
                      let "z=$z+1"
                      if [ $z -gt 10 ] ; then
                          break;
                      fi
                      mount -n -o remount,ro /                 
                done
                # NEW [END]
            [...............]


After usually 5 seconds the readonly mount succeeds.
(Is this some internal buffer flush time in the kernel ?)
The root filesystem is reiser.

regards,


Martin

                 reply	other threads:[~2004-01-19 12:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=400AC31B.50507@ITWM.fhg.de \
    --to=vogt@itwm.fhg.de \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.