mounting a VM rbd image as a /dev/rbd0 device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux