Skip to contentSkip to conversation

New: Mount command sees partition 2 and partition 7 as same partition

Bug 16227 [email protected] 1 participant 7 messages Jun 16, 2010 – Jun 17, 2010

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=16227

               URL: http://bugs.centos.org/view.php?id=3601
           Summary: Mount command sees partition 2 and partition 7 as same
                    partition
           Product: File System
           Version: 2.5
    Kernel Version: 2.6.18-164.6.1.el5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: ext3
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: No

When mounting multiple partitions, partition 7 sees partition 2 instead of partition 7. Partition scheme is as follows:

/dev/hda1 /boot
/dev/hda2 /
/dev/hda3 swap
/dev/hda4 extended partition
/dev/hda5 / (copy of /dev/hda2)
/dev/hda6 / (copy of /dev/hda2)
/dev/hda7 / (copy of /dev/hda2)

After copying /dev/hda2 to each partition using Gparted, I boot to /dev/hda2 and mount /dev/hda5, /dev/hda6 and /dev/hda7 to /mnt/p5, /mnt/p6, /mnt/p7 respectively. /mnt/p5 and /mnt/p6 work as expected.

Here's the problem: /mnt/p7 - any modifications to it's files, modifies /dev/hda2 partition's files and vice versa.

I have reproduced this across several different machines: HP DL360s, PCs, etc.. using PATA, SATA and SCSI drives.

If I only mount p7, then partition p7 works as expected. This bug is originally documented in the CentOS bug tracker listed in the URL.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#1 lore raw

[Bug 16227] Mount command sees partition 2 and partition 7 as same partition

https://bugzilla.kernel.org/show_bug.cgi?id=16227

--- Comment #1 from Eugene Blanchard <[email protected]> 2010-06-16 16:33:20 --- More details available at CentOS bug tracker URL listed above.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#2 lore raw

[Bug 16227] Mount command sees partition 2 and partition 7 as same partition

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16227

Eric Sandeen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Eric Sandeen <[email protected]> 2010-06-16 17:58:12 --- This is certainly not an ext3 bug, and almost certainly not a kernel bug; my money is on user error, but there's really not enough information to know.

output from:

# fdisk -l /dev/sda

and

# cat /proc/mounts

when you see this problem would be a start. I'll take a quick look at that output, but I'm hovering over the "NOTABUG" button, at least for the kernel bug tracker.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw

[Bug 16227] Mount command sees partition 2 and partition 7 as same partition

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16227

--- Comment #3 from Eugene Blanchard <[email protected]> 2010-06-17 16:59:00 --- Using 7 partitions, this bug is reproduceable using SATA, PATA and SCSI drives on multiple servers. I first ran into this in 2009-05-01 and posted to the CentOS bug tracker. Today, I reloaded my server configuration and went to 9 partitions using the exact same documented procedure and all partitions functioned properly without interaction as noted in this bug report. This bug may only pertain to 7 partitions and the interaction between the primary partition 2 and the logical partition 7.

fdisk -l /dev/cciss/c0d0

Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes
255 heads, 63 sectors/track, 8854 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          13      104391   83  Linux
/dev/cciss/c0d0p2              14         905     7164990   83  Linux
/dev/cciss/c0d0p3            8758        8854      779152+  82  Linux swap /
Solaris
/dev/cciss/c0d0p4             906        8757    63071190    5  Extended
/dev/cciss/c0d0p5             906        1798     7172991   83  Linux
/dev/cciss/c0d0p6            1799        2691     7172991   83  Linux
/dev/cciss/c0d0p7            2692        3584     7172991   83  Linux

cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/cciss/c0d0p1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 /etc/auto.misc /misc autofs rw,fd=7,pgrp=2909,timeout=300,minproto=5,maxproto=5,indirect 0 0 -hosts /net autofs rw,fd=13,pgrp=2909,timeout=300,minproto=5,maxproto=5,indirect 0 0

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw

[Bug 16227] Mount command sees partition 2 and partition 7 as same partition

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16227

--- Comment #4 from Eric Sandeen <[email protected]> 2010-06-17 17:33:57 --- I was sorta hoping for /proc/mounts when you saw this problem of one mount affecting the other; you only have /dev/cciss/c0d0p1 mounted there it seems.

My money is on mounting the same device to 2 mountpoints.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#5 lore raw

[Bug 16227] Mount command sees partition 2 and partition 7 as same partition

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16227

--- Comment #5 from Eugene Blanchard <[email protected]> 2010-06-17 17:42:29 --- After booting to parition p2 root / (p1 is /boot, p3 is swap)

I created the following directories:

/mnt/p5
/mnt/p6
/mnt/p7

Then mounted using the following commands:

mount /dev/cciss/c0d0p5 /mnt/p5
mount /dev/cciss/c0d0p5 /mnt/p6
mount /dev/cciss/c0d0p5 /mnt/p7

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#6 lore raw

[Bug 16227] Mount command sees partition 2 and partition 7 as same partition

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16227

Eric Sandeen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         AssignedTo|[email protected] |[email protected]
                   |g                           |
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #6 from Eric Sandeen <[email protected]> 2010-06-17 17:44:48 --- You have mounted the same device to 3 different mount points; of course a change in one will show up on the other. It's the same as a bind mount.

--- Comment #7 from Eugene Blanchard <[email protected]> 2010-06-17 18:11:48 --- That's a typo here, I was just trying to correct it at the same time that you responded.

mount /dev/cciss/c0d0p5 /mnt/p5
mount /dev/cciss/c0d0p6 /mnt/p6
mount /dev/cciss/c0d0p7 /mnt/p7

If this was a unique situation then I would agree that it could be pebkac (problem exists between keyboard and chair) but it's occurred on 3 different classes of servers: PC, DL320 and DL360.

I've got a spare server that I can bring up and mount the other partitions. Normally, only one partition is booted to at a time. Post-secondary VoIP lab each student pair gets there own partition/PBX server to work on.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.