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, is that possible? > > When I try it I get: > > mount: /dev/rbd0 is write-protected, mounting read-only > mount: wrong fs type, bad option, bad superblock on /dev/rbd0, > missing codepage or helper program, or other error > > The rbd image when viewed from the VM has a /dev/vda disk with 2 partitions > > Number Start End Size Type File system Flags > 1 1049kB 525MB 524MB primary xfs boot > 2 525MB 12.9GB 12.4GB primary lvm > > I wanted to view it thru the /dev/rbd0 mount because on one of my systems, > the VM is not booting from the image. > > -- Tom > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com