Re: data partition and journal on same disk

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

 



Or, if You have already set partitions, You can do it with this command:
ceph-deploy osd prepare machine:/dev/sdb1:/dev/sdb2

where /dev/sdb1 is Your data partition and /dev/sdb2 is Your journal one.
Regards
Michał Chybowski
Tiktalik.com
W dniu 17.12.2015 o 12:46, Loic Dachary pisze:
Hi,

You can try

ceph-deploy osd prepare osdserver:/dev/sdb

it will create the /dev/sdb1 and /dev/sdb2 partitions for you.

Cheers

On 17/12/2015 12:41, Dan Nica wrote:
Well I get an error when I try to create data and jurnal on same disk

 

[rimu][INFO  ] Running command: sudo ceph-disk -v prepare --cluster ceph --fs-type xfs -- /dev/sdb1 /dev/sdb2

[rimu][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-allows-journal -i 0 --cluster ceph

[rimu][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-wants-journal -i 0 --cluster ceph

[rimu][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-needs-journal -i 0 --cluster ceph

[rimu][WARNIN] Traceback (most recent call last):

[rimu][WARNIN]   File "/sbin/ceph-disk", line 3576, in <module>

[rimu][WARNIN]     main(sys.argv[1:])

[rimu][WARNIN]   File "/sbin/ceph-disk", line 3530, in main

[rimu][WARNIN]     args.func(args)

[rimu][WARNIN]   File "/sbin/ceph-disk", line 1705, in main_prepare

[rimu][WARNIN]     raise Error('data path does not exist', args.data)

[rimu][WARNIN] __main__.Error: Error: data path does not exist: /dev/sdb1

[rimu][ERROR ] RuntimeError: command returned non-zero exit status: 1

[ceph_deploy.osd][ERROR ] Failed to execute command: ceph-disk -v prepare --cluster ceph --fs-type xfs -- /dev/sdb1 /dev/sdb2

[ceph_deploy][ERROR ] GenericError: Failed to create 1 OSDs

 

ceph-deploy --version

1.5.30

Running on Centos 7

 

--

Dan

 

*From:*Swapnil Jain [mailto:swapnil@xxxxxxxxxxx]
*Sent:* Thursday, December 17, 2015 1:17 PM
*To:* Dan Nica <dan.nica@xxxxxxxxxxxxxxxxxxxx>; ceph-users@xxxxxxxxxxxxxx
*Subject:* Re:  data partition and journal on same disk

 

Yes you can have it on a different partition on same disk. But not recommend.

 

 

 

ceph-deploy osd prepare {node-name}:{data-disk}[:{journal-disk}]

ceph-deploy osd prepare osdserver1:sdc1:sdc2

 

 

 

Best Regards,

  

Swapnil Jain | Solution Architect & Certified Instructor 

RHC{A,DS,E,I,SA,SA-RHOS,VA}, CE{H,I}, CC{DA,NA}, MCSE, CNE

 

 

 

 

    On 17-Dec-2015, at 4:42 pm, Dan Nica <dan.nica@xxxxxxxxxxxxxxxxxxxx <mailto:dan.nica@xxxxxxxxxxxxxxxxxxxx>> wrote:

     

    Hi,

     

    Can I have data an journal on the same disk ? if yes, how ?

     

    Thanks

    --

    Dan

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

 



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


      

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

_______________________________________________
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