* Error while creating ceph cluster @ 2011-06-02 6:59 Lalit Bhasin 2011-06-02 15:14 ` Jeff Wu 0 siblings, 1 reply; 7+ messages in thread From: Lalit Bhasin @ 2011-06-02 6:59 UTC (permalink / raw) To: ceph-devel Guys, I am new to ceph. Trying to create a 2 node cluster setup of ceph. Getting errors during mk file system : http://dpaste.com/hold/549518/. Any idea what's going wrong? - Lalit ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error while creating ceph cluster 2011-06-02 6:59 Error while creating ceph cluster Lalit Bhasin @ 2011-06-02 15:14 ` Jeff Wu 2011-06-02 7:41 ` Lalit Bhasin 0 siblings, 1 reply; 7+ messages in thread From: Jeff Wu @ 2011-06-02 15:14 UTC (permalink / raw) To: Lalit Bhasin; +Cc: ceph-devel Hi , try the steps: 1. use root user; 2. manually create /data/osd${N} folder. Jeff ,Wu On Thu, 2011-06-02 at 14:59 +0800, Lalit Bhasin wrote: > Guys, I am new to ceph. Trying to create a 2 node cluster setup of ceph. > Getting errors during mk file system : http://dpaste.com/hold/549518/. > Any idea what's going wrong? > > > - Lalit > > -- > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error while creating ceph cluster 2011-06-02 15:14 ` Jeff Wu @ 2011-06-02 7:41 ` Lalit Bhasin 2011-06-02 8:12 ` Anders Saaby 2011-06-02 15:55 ` Jeff Wu 0 siblings, 2 replies; 7+ messages in thread From: Lalit Bhasin @ 2011-06-02 7:41 UTC (permalink / raw) To: cpwu; +Cc: ceph-devel On Thu, 2011-06-02 at 15:14 +0000, Jeff Wu wrote: > Hi , > try the steps: > 1. use root user; > 2. manually create /data/osd${N} folder. Jeff, I ensured that /data/osd0 ( on node0) and /data/osd1 ( on node1) existed before shooting this command on node1. Got same error using root user also ( ofcourse this time there was no permission denied error while writing to error logs). mkcephfs is failing while trying to execute below command on node0: ssh node0 /sbin/mkcephfs -d /tmp/mkcephfs.e3FNLexFkx --init-daemon osd.0 And it is reporting error as: ** ERROR: error creating empty object store in /data/osd1: error 2: No such file or directory Which is somewhat true since /data/osd1 only exists in node1, and not node0. Does it means there are some error in ceph.conf. - Lalit > > Jeff ,Wu > > On Thu, 2011-06-02 at 14:59 +0800, Lalit Bhasin wrote: > > Guys, I am new to ceph. Trying to create a 2 node cluster setup of ceph. > > Getting errors during mk file system : http://dpaste.com/hold/549518/. > > Any idea what's going wrong? > > > > > > - Lalit > > > > -- > > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error while creating ceph cluster 2011-06-02 7:41 ` Lalit Bhasin @ 2011-06-02 8:12 ` Anders Saaby 2011-06-02 15:55 ` Jeff Wu 1 sibling, 0 replies; 7+ messages in thread From: Anders Saaby @ 2011-06-02 8:12 UTC (permalink / raw) To: Lalit Bhasin; +Cc: cpwu, ceph-devel Lalit, I think the answer is in your ceph.conf file: <SNIP> [osd] sudo = true osd data = /data/osd1 [osd.0] host = node0 [osd.1] host = node1 </SNIP> Which dictates the "/data/osd1" dir on both nodes. You should go for something more like: "osd data = /data/osd$id" which will use osd0 on node0, osd1 on node1. Best regards Anders Saaby On 02/06/2011, at 09.41, Lalit Bhasin wrote: > On Thu, 2011-06-02 at 15:14 +0000, Jeff Wu wrote: >> Hi , >> try the steps: >> 1. use root user; >> 2. manually create /data/osd${N} folder. > Jeff, I ensured that /data/osd0 ( on node0) and /data/osd1 ( on node1) > existed before shooting this command on node1. Got same error using root > user also ( ofcourse this time there was no permission denied error > while writing to error logs). > mkcephfs is failing while trying to execute below command on node0: > > ssh node0 /sbin/mkcephfs -d /tmp/mkcephfs.e3FNLexFkx --init-daemon osd.0 > > And it is reporting error as: > > ** ERROR: error creating empty object store in /data/osd1: error 2: No > such file or directory > > Which is somewhat true since /data/osd1 only exists in node1, and not > node0. Does it means there are some error in ceph.conf. > > - Lalit > > > >> >> Jeff ,Wu >> >> On Thu, 2011-06-02 at 14:59 +0800, Lalit Bhasin wrote: >>> Guys, I am new to ceph. Trying to create a 2 node cluster setup of ceph. >>> Getting errors during mk file system : http://dpaste.com/hold/549518/. >>> Any idea what's going wrong? >>> >>> >>> - Lalit >>> >>> -- >>> 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 > > > -- > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error while creating ceph cluster 2011-06-02 7:41 ` Lalit Bhasin 2011-06-02 8:12 ` Anders Saaby @ 2011-06-02 15:55 ` Jeff Wu 2011-06-02 12:03 ` Lalit Bhasin 1 sibling, 1 reply; 7+ messages in thread From: Jeff Wu @ 2011-06-02 15:55 UTC (permalink / raw) To: Lalit Bhasin; +Cc: ceph-devel Hi , Could you create the folder node0: /data/osd0/osd0 /data/osd0/osd1 node1: /data/osd1/osd0 /data/osd1/osd1 or try to modify " osd data = /data" at your ceph.conf, then create /data/osd0 and /data/osd1 at your node0&&node1. I had filed the issue at : http://tracker.newdream.net/issues/1015 but Greg Farnum added the Comment :" You need to create the directory yourself and this is deliberate. It prevents administrators from not fully setting up their cluster and accidentally having the OSD use the root partition when they meant to use a separate drive mounted at /osd." Jeff ,Wu On Thu, 2011-06-02 at 15:41 +0800, Lalit Bhasin wrote: > On Thu, 2011-06-02 at 15:14 +0000, Jeff Wu wrote: > > Hi , > > try the steps: > > 1. use root user; > > 2. manually create /data/osd${N} folder. > Jeff, I ensured that /data/osd0 ( on node0) and /data/osd1 ( on node1) > existed before shooting this command on node1. Got same error using root > user also ( ofcourse this time there was no permission denied error > while writing to error logs). > mkcephfs is failing while trying to execute below command on node0: > > ssh node0 /sbin/mkcephfs -d /tmp/mkcephfs.e3FNLexFkx --init-daemon osd.0 > > And it is reporting error as: > > ** ERROR: error creating empty object store in /data/osd1: error 2: No > such file or directory > > Which is somewhat true since /data/osd1 only exists in node1, and not > node0. Does it means there are some error in ceph.conf. > > - Lalit > > > > > > > Jeff ,Wu > > > > On Thu, 2011-06-02 at 14:59 +0800, Lalit Bhasin wrote: > > > Guys, I am new to ceph. Trying to create a 2 node cluster setup of ceph. > > > Getting errors during mk file system : http://dpaste.com/hold/549518/. > > > Any idea what's going wrong? > > > > > > > > > - Lalit > > > > > > -- > > > 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 > > > -- > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error while creating ceph cluster 2011-06-02 15:55 ` Jeff Wu @ 2011-06-02 12:03 ` Lalit Bhasin 2011-06-03 7:00 ` Lalit Bhasin 0 siblings, 1 reply; 7+ messages in thread From: Lalit Bhasin @ 2011-06-02 12:03 UTC (permalink / raw) To: cpwu; +Cc: ceph-devel On Thu, 2011-06-02 at 15:55 +0000, Jeff Wu wrote: > Hi , > > Could you create the folder > node0: /data/osd0/osd0 /data/osd0/osd1 > node1: /data/osd1/osd0 /data/osd1/osd1 > > or > try to modify " osd data = /data" at your ceph.conf, > then create /data/osd0 and /data/osd1 at your node0&&node1. > > I had filed the issue at : > > http://tracker.newdream.net/issues/1015 > > > but Greg Farnum added the Comment :" > > You need to create the directory yourself and this is deliberate. It > prevents administrators from not fully setting up their cluster and > accidentally having the OSD use the root partition when they meant to > use a separate drive mounted at /osd." > > Jeff ,Wu > Thanks Jeff. This helped. I now used single ceph.conf file on both the nodes, and used $i substitution for osd and mon, and it worked ( so kept /data/osd1 and /data/osd0 in node1 and node0 respectively). Subsequently file system creation worked fine, and all ceph daemons started fine. But mount gives error as below: -- lalitb@node0:/data/osd0$ sudo mount -t ceph 192.168.230.12:/ /ceph [sudo] password for lalitb: mount error 5 = Input/output error lalitb@node0:/data/osd0$ --- Where 192.168.230.12 is IP address of node0. Cannot see any error in syslog. - Lalit > > > > > On Thu, 2011-06-02 at 15:41 +0800, Lalit Bhasin wrote: > > On Thu, 2011-06-02 at 15:14 +0000, Jeff Wu wrote: > > > Hi , > > > try the steps: > > > 1. use root user; > > > 2. manually create /data/osd${N} folder. > > Jeff, I ensured that /data/osd0 ( on node0) and /data/osd1 ( on node1) > > existed before shooting this command on node1. Got same error using root > > user also ( ofcourse this time there was no permission denied error > > while writing to error logs). > > mkcephfs is failing while trying to execute below command on node0: > > > > ssh node0 /sbin/mkcephfs -d /tmp/mkcephfs.e3FNLexFkx --init-daemon osd.0 > > > > And it is reporting error as: > > > > ** ERROR: error creating empty object store in /data/osd1: error 2: No > > such file or directory > > > > Which is somewhat true since /data/osd1 only exists in node1, and not > > node0. Does it means there are some error in ceph.conf. > > > > - Lalit > > > > > > > > > > > > Jeff ,Wu > > > > > > On Thu, 2011-06-02 at 14:59 +0800, Lalit Bhasin wrote: > > > > Guys, I am new to ceph. Trying to create a 2 node cluster setup of ceph. > > > > Getting errors during mk file system : http://dpaste.com/hold/549518/. > > > > Any idea what's going wrong? > > > > > > > > > > > > - Lalit > > > > > > > > -- > > > > 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 > > > > > > -- > > 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 > > -- > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error while creating ceph cluster 2011-06-02 12:03 ` Lalit Bhasin @ 2011-06-03 7:00 ` Lalit Bhasin 0 siblings, 0 replies; 7+ messages in thread From: Lalit Bhasin @ 2011-06-03 7:00 UTC (permalink / raw) To: cpwu; +Cc: ceph-devel On Thu, 2011-06-02 at 17:33 +0530, Lalit Bhasin wrote: > On Thu, 2011-06-02 at 15:55 +0000, Jeff Wu wrote: > > Hi , > > > > Could you create the folder > > node0: /data/osd0/osd0 /data/osd0/osd1 > > node1: /data/osd1/osd0 /data/osd1/osd1 > > > > or > > try to modify " osd data = /data" at your ceph.conf, > > then create /data/osd0 and /data/osd1 at your node0&&node1. > > > > I had filed the issue at : > > > > http://tracker.newdream.net/issues/1015 > > > > > > but Greg Farnum added the Comment :" > > > > You need to create the directory yourself and this is deliberate. It > > prevents administrators from not fully setting up their cluster and > > accidentally having the OSD use the root partition when they meant to > > use a separate drive mounted at /osd." > > > > Jeff ,Wu > > > Thanks Jeff. This helped. I now used single ceph.conf file on both the > nodes, and used $i substitution for osd and mon, and it worked ( so > kept /data/osd1 and /data/osd0 in node1 and node0 respectively). > > > Subsequently file system creation worked fine, and all ceph daemons > started fine. But mount gives error as below: > -- > lalitb@node0:/data/osd0$ sudo mount -t ceph 192.168.230.12:/ /ceph > [sudo] password for lalitb: > mount error 5 = Input/output error > lalitb@node0:/data/osd0$ > --- > > Where 192.168.230.12 is IP address of node0. Cannot see any error in > syslog. > > - Lalit > Ok, I modified ceph.conf file to create osd journal on writehead mode, and mount was successful after this. It seems this is requirement for non-brtfs. - Lalit > > > > > > > > > > On Thu, 2011-06-02 at 15:41 +0800, Lalit Bhasin wrote: > > > On Thu, 2011-06-02 at 15:14 +0000, Jeff Wu wrote: > > > > Hi , > > > > try the steps: > > > > 1. use root user; > > > > 2. manually create /data/osd${N} folder. > > > Jeff, I ensured that /data/osd0 ( on node0) and /data/osd1 ( on node1) > > > existed before shooting this command on node1. Got same error using root > > > user also ( ofcourse this time there was no permission denied error > > > while writing to error logs). > > > mkcephfs is failing while trying to execute below command on node0: > > > > > > ssh node0 /sbin/mkcephfs -d /tmp/mkcephfs.e3FNLexFkx --init-daemon osd.0 > > > > > > And it is reporting error as: > > > > > > ** ERROR: error creating empty object store in /data/osd1: error 2: No > > > such file or directory > > > > > > Which is somewhat true since /data/osd1 only exists in node1, and not > > > node0. Does it means there are some error in ceph.conf. > > > > > > - Lalit > > > > > > > > > > > > > > > > > Jeff ,Wu > > > > > > > > On Thu, 2011-06-02 at 14:59 +0800, Lalit Bhasin wrote: > > > > > Guys, I am new to ceph. Trying to create a 2 node cluster setup of ceph. > > > > > Getting errors during mk file system : http://dpaste.com/hold/549518/. > > > > > Any idea what's going wrong? > > > > > > > > > > > > > > > - Lalit > > > > > > > > > > -- > > > > > 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 > > > > > > > > > -- > > > 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 > > > > -- > > 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-06-03 7:00 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-06-02 6:59 Error while creating ceph cluster Lalit Bhasin 2011-06-02 15:14 ` Jeff Wu 2011-06-02 7:41 ` Lalit Bhasin 2011-06-02 8:12 ` Anders Saaby 2011-06-02 15:55 ` Jeff Wu 2011-06-02 12:03 ` Lalit Bhasin 2011-06-03 7:00 ` Lalit Bhasin
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.