Description of problem: We should do something about failure messages when creating ro volumes. [root@link-08 tmp]# lvcreate -L 10G -p r corey /dev/corey/lvol0: write failed after 0 of 4096 at 0: Operation not permitted Logical volume "lvol0" created Version-Release number of selected component (if applicable): [root@link-08 tmp]# rpm -q lvm2 lvm2-2.02.16-1 [root@link-08 tmp]# rpm -q device-mapper device-mapper-1.02.13-1
For a normal LV with -Zy (the default), the code should probably activate rw, wipe, reactivate ro. For a snapshot, current code doesn't give the error, so likely not to need changing.
Fixed upstream, correct warning is printed if read only flag set. (Same problem in lvconvert - fixed too.)
Fix verified in lvm2-2.02.19-1.el4. [root@link-08 bin]# lvcreate -L 10G -p r vg WARNING: "lvol0" not zeroed Logical volume "lvol0" created
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0287.html