Red Hat Bugzilla – Bug 216330
Can write to read-only logical volume
Last modified: 2007-11-30 17:11:49 EST
Description of problem:
Write access is granted to logical volume set to read-only.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a logical volume, e.g. /dev/myvg/test
2. run: lvchange -pr /dev/myvg/test
3. (optional) check with: lvdisplay /dev/myvg/test
it displays: LV Write Access read only
4. create a filesystem: mke2fs /dev/myvg/test
It is possible to create a filesystem (and also to mount it, and store data there)
It should not be allowed to modify the logical volume in any way while it is
After reboot is the test LV read-only, but now it is not possible to make it
read-write again. It's the same problem reversed. It looks like the lvchange
command changes the permissions in the configuration, but fails to make the
changes active in the kernel.
can't reproduce with upstream code - assume this'll be fixed when I next update
the fc6 package
Fix verified in lvm2-2.02.17-1.
I couldn't mkfs or dd to the ro device.
lvm2-2.02.17-1.fc6 has been pushed for fc6, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.
I have installed the latest updates including the lvm2 package mentioned above
on my system. The issue is resolved, thank you.