[one-users] How to use ceph filesystem
Kenneth
kenneth at apolloglobal.net
Mon Dec 2 17:20:57 PST 2013
You don't need to replace existing datastores, the important is you
edit the system datastore as "ssh" because you still need to transfer
files in each node when you deploy a VM.
Next, you should make sure
that all your node are able to communicate with the ceph cluster. Issue
the command "ceph -s" on all nodes including the front end to be sure
that they are connected to ceph.
Also make a pool in ceph with the
name one, because it will be used as the default pool.
Create a pool:
ceph osd pool create [poolname] [pg_num] [pgp_num]
Example: ceph
osd pool create one 196 196
##Be sure that the pool "one" is already
created on the ceph cluster before adding a ceph datastore to
opennebula. Refer to the ceph documentation for adding pools.
##Create
a datastore template file
nano ceph.ds
## Add the following lines.
NAME = "cephds"
DS_MAD = ceph
TM_MAD = ceph
# the following
line *must* be preset
DISK_TYPE = RBD
POOL_NAME = one
HOST =
cloud-node1
##The host node can be any node just be sure that it can
access the ceph nodes. This cloud-ceph node will perform the RAW to RBD
conversions of the VMs so define here the node with the lowest load,
which is the cloud-front end node. Save and exit the file.
## Create
the datastore.
onedatastore create ceph.ds
##Verify that open nebula
can see the datastore.
oneadmin at cloud-node1:~$ onedatastore list
ID
NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM
0 system - - - 0 sys -
shared
1 default 7.3G 71% - 1 img fs shared
2 files 7.3G 71% - 0
fil fs ssh
100 CEPHDS 5.5T 59% - 3
IMG CEPH CEPH
Once you add the you have verified that the ceph
datastore is active you can upload images on the sunstone GUI. Be aware
that conversion of images to RBD format of ceph may take quite some
time.
---
Thanks,
Kenneth
Apollo Global Corp.
On 12/01/2013 07:14 PM,
Mario Giammarco wrote:
> Hello,
> I am a newbie but I would like to
try opennebula with ceph filesystem.
>
> I start with default
opennebula installation with three datastores: system, default and
files.
>
> Now, even if they are configured as "shared" they are not
an nfs mount, simply directories on the disk.
>
> Now I have installed
ceph, I have created a ceph rbd and datastore but then?
>
> Should I
delete existing repositories? How can I replace them with ceph?
>
> Do
I need to replace them?
>
> Thanks,
> Mario
>
>
_______________________________________________
> Users mailing list
>
Users at lists.opennebula.org
>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [1]
Links:
------
[1]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131203/29ba6374/attachment-0002.htm>
More information about the Users
mailing list