Red Hat Bugzilla – Bug 150310
Can mount multiple logical volumes to single mount point
Last modified: 2007-11-30 17:07:16 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
Description of problem:
I can create 2 logical volumes and moount them both to the same mount point, to me this is a bug that needs fixing.
lvcreate -L 500 /dev/vg00 - creates lvol1
lvcreate -L 1500 /dev/vg00 - creates lvol2
So now you have /dev/vg00/lvol1 and /dev/vg00/lvol2
mount /dev/vg00/lvol /test
mount /dev/vg00/lvol2 /test
then do a df...you have to volumes mounted at /test with different lvol's
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. See Description
Actual Results: See Description
Expected Results: Error out saying volume is already in use
That's how mount works in unix, letting you stack filesystems over each other.
I have done my testing and it does not work that way on all Unix's...AIX and
Linux do it this way, but HP and Sun have fixed this from happening. As for it
being a bug, maybe it's not cause so many people like yourself have let it
slide as "that's the way it has always been". If HP and Sun fixed it, it was
for a reason, and I believe the reason it because people accidently fat finger
things on a regular basis.
Are you saying Red Hat is not going to fix this in THIER logical volume
manager? I see you closed the ticket saying this is not a bug, could you
please put in more the "That's how mount works in unix, letting you stack
filesystems over each other" as a reason for closing this ticket.
This is nothing to do with lvm2.
See the mount(2) man page or use google for background.