I am not entirely sure about LVM, but snapshots are read-only by nature. Maybe LVM expects a writeable PV. Use format 2 images and create snapshot childs, and all should be good. On 04/15/2013 04:48 PM, Olivier Bonvalet wrote: > Hi, > > I'm trying to map a RBD snapshot, which contains an LVM PV. > > I can do the «map» : > rbd map hdd3copies/jason@20130415-065314 --id alg > > Then pvscan works : > pvscan | grep rbd > PV /dev/rbd58 VG vg-jason lvm2 [19,94 GiB / 1,44 GiB free] > > But enabling LV doesn't work : > # vgchange -ay vg-jason > device-mapper: reload ioctl failed: Argument invalide > Internal error: Maps lock 13746176 < unlock 13889536 > device-mapper: reload ioctl failed: Argument invalide > device-mapper: reload ioctl failed: Argument invalide > device-mapper: reload ioctl failed: Argument invalide > device-mapper: reload ioctl failed: Argument invalide > device-mapper: reload ioctl failed: Argument invalide > device-mapper: reload ioctl failed: Argument invalide > 7 logical volume(s) in volume group "vg-jason" now active > > # blockdev --getsize64 /dev/mapper/vg--jason-* > 0 > 0 > 0 > 0 > 0 > 0 > 0 > > Is it a problem from LVM, or I should not use snapshots like that ? > > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- DI (FH) Wolfgang Hennerbichler Software Development Unit Advanced Computing Technologies RISC Software GmbH A company of the Johannes Kepler University Linz IT-Center Softwarepark 35 4232 Hagenberg Austria Phone: +43 7236 3343 245 Fax: +43 7236 3343 250 wolfgang.hennerbichler@xxxxxxxxxxxxxxxx http://www.risc-software.at _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com