Skip to contentSkip to conversation

what is the syntax to use to specify xfs in ceph.conf

DISCUSSION Isaac Otsiabah 2 participants 2 messages Jan 22, 2013

lore
Share & tools
lore
#0 lore raw

When my ceph data drives use btrfs as the underneath fileystem, the devices in my ceph.conf contain the lines "btrfs devs = /dev/sdx" as shown below.

ceph.conf
=======
.......
.......
.......
......

[osd.0]
        host = host1
        public address = 10.5.0.123
        cluster address = 10.5.1.123
        btrfs devs = /dev/sde

[osd.1]
        host = host2
        public address = 10.5.0.123
        cluster address = 10.5.1.123
        btrfs devs = /dev/sdf

.......
.......
......

Now, i want to use xfs as the underneath filesystem so in the ceph.conf file, should the lines "btrfs devs = /dev/sdx" be changed to "xfs devs = /dev/sdx" ?

Isaac

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

#1 lore raw

If using mkcephfs, you can just give it a "devs" option.

I"m pretty sure this changed in bobtail (0.56). I just setup a cluster on 0.56.1, and used the following. Worked like a charm:

[osd]
osd mkfs type = xfs
osd mkfs options xfs = "-f"
osd mount options xfs = "rw,noatime,inode64,logbufs=8,logbsize=256k"
[osd.0]
host = ceph1
devs = /dev/sdc
osd journal = /dev/sda5

[osd.1]
host = ceph1
devs = /dev/sdd
osd journal = /dev/sda6

A generic example is in the docs, here:
http://ceph.com/docs/master/rados/configuration/ceph-conf/#example-ceph-conf

Remember to use --mkfs when using mkcephfs.

HTH.

- Travis

Quoted 37 lines · Isaac Otsiabah

When my ceph data drives use btrfs as the underneath fileystem, the devices in my ceph.conf contain the lines "btrfs devs = /dev/sdx" as shown below.

ceph.conf
=======
.......
.......
.......
......

[osd.0]
host = host1
public address = 10.5.0.123
cluster address = 10.5.1.123
btrfs devs = /dev/sde

[osd.1]
host = host2
public address = 10.5.0.123
cluster address = 10.5.1.123
btrfs devs = /dev/sdf

.......
.......
......

Now, i want to use xfs as the underneath filesystem so in the ceph.conf file, should the lines "btrfs devs = /dev/sdx" be changed to "xfs devs = /dev/sdx" ?

Isaac

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