• Bug#239111: Not fixed when I tested it

    From Robert Millan@1:229/2 to Joey Hess on Sat Aug 14 19:00:15 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    On Mon, Aug 09, 2004 at 06:00:25PM -0300, Joey Hess wrote:

    I'm afraid I can reproduce this too. With grub -7, the xfs_freeze stuff
    does happen, but the result seems to be that the grub command gets stuck
    in an uninterruptable sleep. I tried thawing the xfs partition after a
    few minutes, and grub happily continued with the install. I see the same
    kind of hang if I freeze an XFS partition and then try to write to it,
    so it seems like running the grub command must somehow be writing to the
    XFS partition as well as accessing it directly. It's seems we're damed
    if we do, and damned if we don't...

    FWIW, my test was with a system that had a single XFS partition for the
    whole root filesystem, including /boot.

    I thought perhaps it was the redirection of grub's output to a log file
    by grub-install, since writing to a log file when XFS is frozen could
    hang. But even after removing the redirection to $log_file, it still
    hangs. :-(

    Hi Joey,

    Could you try to mount / as readonly before grub-install is run?

    --
    Robert Millan

    (Debra and Ian) (Gnu's Not (UNiplexed Information and Computing System))/\ (kernel of *(Berkeley Software Distribution))


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Joey Hess@1:229/2 to Robert Millan on Sat Aug 14 23:00:09 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    Robert Millan wrote:
    On Mon, Aug 09, 2004 at 06:00:25PM -0300, Joey Hess wrote:

    I'm afraid I can reproduce this too. With grub -7, the xfs_freeze stuff does happen, but the result seems to be that the grub command gets stuck
    in an uninterruptable sleep. I tried thawing the xfs partition after a
    few minutes, and grub happily continued with the install. I see the same kind of hang if I freeze an XFS partition and then try to write to it,
    so it seems like running the grub command must somehow be writing to the XFS partition as well as accessing it directly. It's seems we're damed
    if we do, and damned if we don't...

    FWIW, my test was with a system that had a single XFS partition for the whole root filesystem, including /boot.

    I thought perhaps it was the redirection of grub's output to a log file
    by grub-install, since writing to a log file when XFS is frozen could
    hang. But even after removing the redirection to $log_file, it still
    hangs. :-(

    Hi Joey,

    Could you try to mount / as readonly before grub-install is run?

    Doesn't grub-install copy things into /boot? My /boot was on the root filesystem in the test that I did.

    --
    see shy jo

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBHnhsd8HHehbQuO8RAhb3AJ9nS0yJbkJD426/W/cZHHiU402XkgCg2Tsq K6nWS/deGiwy+0x7tQNSRsk=
    =S7oQ
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Robert Millan@1:229/2 to Joey Hess on Sun Aug 15 02:00:19 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    On Sat, Aug 14, 2004 at 05:39:08PM -0300, Joey Hess wrote:
    Robert Millan wrote:

    Could you try to mount / as readonly before grub-install is run?

    Doesn't grub-install copy things into /boot? My /boot was on the root filesystem in the test that I did.

    True. It was just me being silly.

    I still don't understand why the current solution doesn't work. xfs_freeze suposedly puts the filesystem in a state that all write requests are blocked.

    Am I missing something?

    --
    Robert Millan

    (Debra and Ian) (Gnu's Not (UNiplexed Information and Computing System))/\ (kernel of *(Berkeley Software Distribution))


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Joey Hess@1:229/2 to Robert Millan on Sun Aug 15 04:40:08 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    Robert Millan wrote:
    I still don't understand why the current solution doesn't work. xfs_freeze suposedly puts the filesystem in a state that all write requests are blocked.

    Am I missing something?

    xfs_freeze is definitly causing all write to block. Apparently something
    in grub-installer must then be doing a write while the filesystem is
    frozen. I don't know for sure what it is; I suspect it may be more than
    one thing. One place that seems likely to write and block is the
    redirection of $grub_shell to $log_file. Since removing that one doesn't
    fix it, I'm left assuming that running $grub_shell itself somehow causes
    a write, and thus a freeze. Maybe getting strace on there and stracing
    it would help.

    --
    see shy jo

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBHsj1d8HHehbQuO8RAjQTAKCk6QR3UXo1fLNa5/lWjQGM1VNQVACg5ft8 cx8VftKBysUxzOeuEaRFMIE=
    =nI6I
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Robert Millan@1:229/2 to Joey Hess on Sun Aug 15 05:10:06 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    On Sat, Aug 14, 2004 at 11:22:45PM -0300, Joey Hess wrote:
    Robert Millan wrote:
    I still don't understand why the current solution doesn't work. xfs_freeze suposedly puts the filesystem in a state that all write requests are blocked.

    Am I missing something?

    xfs_freeze is definitly causing all write to block. Apparently something
    in grub-installer must then be doing a write while the filesystem is
    frozen. I don't know for sure what it is; I suspect it may be more than
    one thing. One place that seems likely to write and block is the
    redirection of $grub_shell to $log_file. Since removing that one doesn't
    fix it, I'm left assuming that running $grub_shell itself somehow causes
    a write, and thus a freeze. Maybe getting strace on there and stracing
    it would help.

    The grub shell needs to write to /dev/hda for grabbing stage files into the boot sector (see lib/device.c in grub source code).

    Maybe what we want is to hack grub so that is freezes the filesystem only when it's time to, instead of reliing on grub-install to do that. However, this calls for a C interface that is equivalent to xfs_freeze. Is there a library or something?

    --
    Robert Millan

    (Debra and Ian) (Gnu's Not (UNiplexed Information and Computing System))/\ (kernel of *(Berkeley Software Distribution))


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Joey Hess@1:229/2 to Robert Millan on Sun Aug 15 17:20:06 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    Robert Millan wrote:
    The grub shell needs to write to /dev/hda for grabbing stage files into the boot sector (see lib/device.c in grub source code).

    But that write doesn't go through xfs surely. Is there any filesystem
    writing involved?

    --
    see shy jo

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBH3hjd8HHehbQuO8RAl6CAJ9YMhqkhWnK7wVkEG9BdKcZS4Es9wCfc8kB gpkUOyl2gjxa25ZDIls+rjY=
    =HdET
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)