[Bug 575715] Re: fsck in iscsi mounted filesystems is done at boot time

Launchpad Bug Tracker 575715 at bugs.launchpad.net
Fri Oct 12 18:48:37 UTC 2012


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: open-iscsi (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/575715

Title:
  fsck in iscsi mounted filesystems is done at boot time

Status in “open-iscsi” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: open-iscsi

  Closely related to bug #192158 (iscsi checkfs and mount)

  Affected package: open-iscsi

     # apt-cache policy open-iscsi
     open-iscsi:
       Installed: 2.0.871-0ubuntu4
       Candidate: 2.0.871-0ubuntu4
       Version table:
      *** 2.0.871-0ubuntu4 0
             500 http://es.archive.ubuntu.com/ubuntu/ lucid/main Packages
             100 /var/lib/dpkg/status

  Fresh install of Ubuntu Server 10.04 (official release, no RC).
  root filesystem in iSCSI.
  /boot in a separate filesystem.
  swap in a dedicated partition (in iSCSI as well).

  Tested on both real and virtual machines.

  The problem is: if "_netdev" option is given in /etc/fstab for
  filesystems imported through iSCSI at boot time (all filesystems in my
  test cases), fsck is done over already mounted filesystems. A warning
  like this is displayed during boot process on console 1 (tty1):

     WARNING!!! The filesystem is mounted.    If you continue you ***WILL***
     cause ***SEVERE*** filesystem damage.

     Do you really want to continue (y/n)?

  
  After that, the message dissappears from tty1 (stays on console 7), and the boot process seem to continue normally. The login prompt appears on tty1:

     Ubuntu 10.04 LTS itest5 tty1

     itest5 login:

  
  But tty1 is actually awaiting response for the previous confirmation for the fsck command. So typing "y" may cause a great disaster to your filesystem:

     itest5 login: y  ----> expands to "yes"

  And these messages are displayed:

                itest5-root: recovering journal
     itest5-root has been mounted 23 times without being checked, check forced.
     itest5-root: ***** REBOOT LINUX *****
     itest5-root: 46370/411264 files (0.1% non-contiguous), 228075/1644800 blocks

  
  Please note the problem disappears if no "_netdev" option is given in /etc/fstab in the explained test cases. The boot process though should be smart enough to issue a warning and not to execute fsck over such filesystems (which ultimately will lead to severe data corruption).

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: open-iscsi 2.0.871-0ubuntu4
  ProcVersionSignature: Ubuntu 2.6.32-21.32-server 2.6.32.11+drm33.2
  Uname: Linux 2.6.32-21-server x86_64
  Architecture: amd64
  Date: Wed May  5 12:16:46 2010
  InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: open-iscsi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/575715/+subscriptions




More information about the foundations-bugs mailing list