/usr/bin/rbdmap: Bad substitution error

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

 



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

[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