Re: image map failed

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

 



Hi Ishmael

You have to apply correct client.keyring permission to a pool on which you trying to create rbd image.

From Admin/Management Node: - create a client keyring.

1. Admin Node:
-- ceph auth get-or-create client.rbd mon 'allow r' osd 'allow rwx pool=PoolA'
    [client.rbd1]
        key = AQB2kVpXjhq9OBAACIHEUeRs04UqJsbQeNyLRg==
2. Get the keyring from auth list and push the keyring to client node.
 -- ceph auth get-or-create client.rbd | ssh user@clientA1 sudo tee /etc/ceph/ceph.client.rbd.keyring
     [client.rbd1]
        key = AQB2kVpXjhq9OBAACIHEUeRs04UqJsbQeNyLRg==
3. From client Node
cat /etc/ceph/ceph.client.rbd.keyring >> /etc/ceph/keyring
ceph -s --name client.rbd

user@client:$ rbd create PoolA/PoolA_image1 -S 100G --image-format 2 --object-size 32K --image-feature layering --name client.rbd
user@client:$ sudo rbd map --image PoolA/PoolA_image1 --name client.rbd
/dev/rbd0

-- Rakesh Parkiti

---------- Forwarded message ----------
From: Ishmael Tsoaela <ishmaelt3@xxxxxxxxx>
Date: Fri, Jun 17, 2016 at 5:31 PM
Subject: image map failed
To: ceph-users@xxxxxxxxxxxxxx


Hi,

Will someone please assist, I am new to cepph and I am trying to map image and this happens:

cluster-admin@nodeB:~/.ssh/ceph-cluster$ rbd map data_01 --pool data
rbd: sysfs write failed
In some cases useful info is found in syslog - try "dmesg | tail" or so.
rbd: map failed: (13) Permission denied

If someone could help it would be great

cluster-admin@nodeB:~/.ssh/ceph-cluster$ ceph -v
ceph version 10.2.1 (3a66dd4f30852819c1bdaa8ec23c795d4ad77269)

cluster-admin@nodeB:~/.ssh/ceph-cluster$ lsb_release -r
Release: 14.04


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





--

Thanks
Rakesh Parkiti
Senior Test Engineer
_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux