If there is a partition table on the device, you need to get Linux to
scan the partition table and build the sub-devices. Try running
"kpartx -a /dev/rbd0" to create the devices. Since you have LVM on the
second partition, ensure that it is configured to not filter out the
new partition device and
> Op 25 augustus 2016 om 19:31 schreef "Deneau, Tom" :
>
>
> If I have an rbd image that is being used by a VM and I want to mount it
> as a read-only /dev/rbd0 kernel device, is that possible?
>
> When I try it I get:
>
> mount: /dev/rbd0 is write-protected, mounting read-only
> mount: wrong
You'd:
1) inspect /dev/rbd0 with fdisk -l to get partitions offsets;
2) mount desired partition with -o offset= option.
On четвер, 25 серпня 2016 р. 17:31:52 EEST Deneau, Tom wrote:
> If I have an rbd image that is being used by a VM and I want to mount it
> as a read-only /dev/rbd0 kernel device