CEPH filesystem development
 help / color / mirror / Atom feed
From: Alexandre DERUMIER <aderumier@odiso.com>
To: chandrashekhar <chandubigc@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: OSD per disk.
Date: Mon, 28 May 2012 11:34:32 +0200 (CEST)	[thread overview]
Message-ID: <7b7fb8cc-28f2-4504-80a8-67678f70aa7d@mailpro> (raw)
In-Reply-To: <loom.20120528T111434-469@post.gmane.org>

maybe try 

[osd.0] 
host = testnode 
osd data = /data/osd0 
osd journal = /data/osd0/osd0journal 
osd journal size = 1000 

[osd.1] 
host = testnode 
osd data = /data/osd1 
osd journal = /data/osd1/osd1journal 
osd journal size = 1000 
[osd.2] 
host = testnode 
osd data = /data/osd2 
osd journal = /data/osd2/osd2journal 
osd journal size = 1000 
[osd.3] 
host = testnode 
osd data = /data/osd3 
osd journal = /data/osd3/osd3journal 
osd journal size = 1000 



you can start osd with

/etc/init.d/ceph start osd0
/etc/init.d/ceph start osd1
/etc/init.d/ceph start osd2
/etc/init.d/ceph start osd3

----- Mail original ----- 

De: "chandrashekhar" <chandubigc@gmail.com> 
À: ceph-devel@vger.kernel.org 
Envoyé: Lundi 28 Mai 2012 11:25:36 
Objet: Re: OSD per disk. 


Alexandre DERUMIER <aderumier <at> odiso.com> writes: 

> 
> Hi, just defined osds in ceph.conf, they mount each disk in correct mountpoint. 
> 
> this example : 
> 1st server : 
> /dev/sdb1 -> /data/osd0 
> /dev/sdc1 -> /data/osd1 
> /dev/sdd1 -> /data/osd2 
> .... 
> same for journal.(you can use differents disk for journal or use another 
partition on same disk) 
> 
> ceph.conf 
> [osd] 
> 
> osd data = /data/osd$id 
> osd journal = /data/osd$id/journal 
> osd journal size = 512 
> 
> [osd.0] 
> host = ceph-node-1 
> 
> [osd.1] 
> host = ceph-node-1 
> 
> [osd.2] 
> host = ceph-node-1 
> 
> [osd.3] 
> host = ceph-node-2 
> 
> [osd.4] 
> host = ceph-node-2 
> 
> ----- Mail original ----- 
> 
> De: "chandrashekhar" <chandubigc <at> gmail.com> 
> À: ceph-devel <at> vger.kernel.org 
> Envoyé: Lundi 28 Mai 2012 08:19:17 
> Objet: OSD per disk. 
> 
> Hi, 
> 
> I want to setup a ceph cluster with 4 osds ( one OSD per disk), 2 mons, 1 
> mds. Please help me to configure this. 
> 
> I have a machine with following hardware: 
> 
> 4 hard disks ( each 500GB). 
> 
> /dev/sda - 500G ( OS ) 
> /dev/sdb - 500G 
> /dev/sdc - 500G 
> /dev/sdd - 500G 
> 
> OS: ubuntu 12.O4 server ( 64 bit ) 
> 
> Thanks, 
> Chandra. 
> 

Thanks Alexandre, I created four directories in /data (osd0,osd1,osd2,osd3) 
and mounted as below: 

/dev/sdb1 -> /data/osd1 
/dev/sdc1 -> /data/osd2 
/dev/sdd1 -> /data/osd3 


But when I start ceph its starting mons and md daemons but not osds. Please help 
me to get this working. 

>ceph -w 
2012-05-28 14:43:23.756895 pg v2: 792 pgs: 792 creating; 0 bytes data, 0 KB 
used, 0 KB / 0 KB avail 
2012-05-28 14:43:23.762160 mds e1: 0/0/1 up 
2012-05-28 14:43:23.762296 osd e1: 0 osds: 0 up, 0 in 
2012-05-28 14:43:23.762586 log 2012-05-28 14:24:15.391671 mon.0 
192.168.7.10:6789/0 4 : [INF] mon.a@0 won leader election with quorum 0,1 
2012-05-28 14:43:23.762741 mon e1: 2 mons at 
{a=192.168.7.10:6789/0,b=192.168.7.10:6790/0} 




Here is my ceph.conf: 
------------------------------------------------- 
[global] 
auth supported = cephx 
keyring = /etc/ceph/keyring.admin 

[mon] 
mon data = /data/mon.$id 

[mds] 

[osd] 
osd data = /data/osd$id 
osd journal = /data/osd$id/osd.$id.journal 
osd journal size = 1000 



[mon.a] 
host = testnode 
mon addr = 192.168.7.10:6789 
[mon.b] 
host = testnode 
mon addr = 192.168.7.10:6790 

[osd.0] 
host = testnode 

[osd.1] 
host = testnode 

[osd.2] 
host = testnode 

[osd.3] 
host = testnode 
[mds.a] 
host = testnode 




-- 
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to majordomo@vger.kernel.org 
More majordomo info at http://vger.kernel.org/majordomo-info.html 



-- 

-- 




	Alexandre D erumier 
Ingénieur Système 
Fixe : 03 20 68 88 90 
Fax : 03 20 68 90 81 
45 Bvd du Général Leclerc 59100 Roubaix - France 
12 rue Marivaux 75002 Paris - France 
	
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2012-05-28  9:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28  6:19 OSD per disk chandrashekhar
2012-05-28  6:37 ` Alexandre DERUMIER
2012-05-28  9:25   ` chandrashekhar
2012-05-28  9:34     ` Alexandre DERUMIER [this message]
2012-05-29 16:24       ` Tommi Virtanen
2012-05-29 16:26     ` Tommi Virtanen
     [not found]       ` <CA+7V1=Ey224p64Wo0172OrTTiA0sbg9x_13aJwRvBr7VRySHbQ@mail.gmail.com>
2012-05-30 16:53         ` Fwd: " Tommi Virtanen
2012-05-30 17:07           ` Sam Just
2012-06-05 12:34             ` chandrashekhar
2012-06-05 16:25               ` Tommi Virtanen
2012-05-28 13:56 ` David McBride

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7b7fb8cc-28f2-4504-80a8-67678f70aa7d@mailpro \
    --to=aderumier@odiso.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=chandubigc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox