When i promote the DR image, I could mount it fine root@vtier-node1:~# rbd mirror image promote testm-pool/test01 --force Image promoted to primary root@vtier-node1:~#
root@vtier-node1:~# mount /dev/nbd0 /mnt mount: block device /dev/nbd0 is write-protected, mounting read-only On Wed, Dec 12, 2018 at 1:08 PM Vikas Rana <vikasra...@gmail.com> wrote: > To give more output. This is XFS FS. > > root@vtier-node1:~# rbd-nbd --read-only map testm-pool/test01 > 2018-12-12 13:04:56.674818 7f1c56e29dc0 -1 asok(0x560b19b3bdf0) > AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen: failed to > bind the UNIX domain socket to '/var/run/ceph/ceph-client.admin.asok': (17) > File exists > /dev/nbd0 > root@vtier-node1:~# > root@vtier-node1:~# mount /dev/nbd0 /mnt > mount: block device /dev/nbd0 is write-protected, mounting read-only > mount: /dev/nbd0: can't read superblock > root@vtier-node1:~# mount -ro,norecovery /dev/nbd0 /mnt > mount: /dev/nbd0: can't read superblock > root@vtier-node1:~# mount -o ro,norecovery /dev/nbd0 /mnt > mount: /dev/nbd0: can't read superblock > root@vtier-node1:~# fdisk -l /dev/nbd0 > root@vtier-node1:~# > > > Thanks, > -Vikas > > On Wed, Dec 12, 2018 at 10:44 AM Vikas Rana <vikasra...@gmail.com> wrote: > >> Hi, >> >> We are using Luminous and copying a 100TB RBD image to DR site using RBD >> Mirror. >> >> Everything seems to works fine. >> >> The question is, can we mount the DR copy as Read-Only? We can do it on >> Netapp and we are trying to figure out if somehow we can mount it RO on DR >> site, then we can do backups at DR site. >> >> When i tried it mount it via, RBD-NBD, it complains about super-block. >> When I promoted the DR copy, the same image works fine. So data is there >> but cant be mounted. >> >> We also tried taking snap but it complains that it can't take snap of a >> Read-only copy. >> >> Any suggestion or pointer will be greatly appreciated. >> >> Thanks, >> -Vikas >> >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com