You might be hitting this issue [1] if your /bin/sh isn't symlinked to bash. [1] http://tracker.ceph.com/issues/16608 On Mon, Aug 15, 2016 at 1:49 PM, Leo Hernandez <dbbyleo@xxxxxxxxx> wrote: > Hi All, > I'm trying to get rbdmap to map my block device, but running /usr/bin/rbdmap > results in this error: > > root@cephcl:~# rbdmap map > /usr/bin/rbdmap: 32: /usr/bin/rbdmap: Bad substitution > > Here's what my /etc/ceph/rbdmap file looks like: > > root@cephcl:~# cat /etc/ceph/rbdmap > # RbdDevice Parameters > #poolname/imagename id=client,keyring=/etc/ceph/ceph.client.keyring > rbd/cephbd id=admin,keyring=/etc/ceph/ceph.client.admin.keyring > > I can manually map the block device as follows: > > root@cephcl:~# rbd map cephbd --name client.admin > /dev/rbd0 > root@cephcl:~# ls /dev/rbd/rbd/cephbd > /dev/rbd/rbd/cephbd > > Here's the keyring: > root@cephcl:/etc/ceph# ls > ceph.client.admin.keyring ceph.conf rbdmap tmpyUeZ9g > root@cephcl:/etc/ceph# cat ceph.client.admin.keyring > [client.admin] > key = ########################## > > I really think this has something to do with the line in the rbdmap script > that goes: > > "while read DEV PARAMS" > > What is PARAMS??? > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- Jason _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com