Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SAMBA with CTDB, DRBD and GlusterFS on gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
xcue
n00b
n00b


Joined: 10 Jan 2014
Posts: 3

PostPosted: Fri Jan 10, 2014 5:37 pm    Post subject: SAMBA with CTDB, DRBD and GlusterFS on gentoo Reply with quote

Hallo everybody!

My goal is to setup a SAMBA server using CTDB, DRBD and GlusterFS to have two active samba nodes accessable over a cluster IP.

All 4 topics are new to me and i searched informations, howtos and documentations about them. I am not happy about, what i have found.

It would be nice to get a step by step manual but they are for other systems than gentoo.

I decided to use available emerge packages if available.

So i started now with this howto for cent-os: http://www.howtoforge.com/setting-up-an-active-active-samba-ctdb-cluster-using-gfs-and-drbd-centos-5.5

I have installed virtualbox and i made 3 VMs with gentoo i686 stage3.

I configured gentoo as it was suggested in the howto on page 1. But now i have to install the packages from page 2 (http://www.howtoforge.com/setting-up-an-active-active-samba-ctdb-cluster-using-gfs-and-drbd-centos-5.5-p2) like
Code:
yum -y install drbd82 kmod-drbd82 samba

and i know, i have to use emerge but i am not shure what to do exactly.

I found this two packages:
http://gentoobrowse.randomdan.homeip.net/package/sys-cluster/drbd
http://gentoobrowse.randomdan.homeip.net/package/sys-cluster/drbd-kernel

My question is, does the "sys-cluster/drbd" atom accord to "drbd82" and "sys-cluster/drbd-kernel" accord to "kmod-drbd82"?

And what do i have to choose instead of
Code:
yum -y groupinstall "Cluster Storage" "Clustering"
what installs the "Red Hat Cluster Suite"?

Please can someone give me some hints how i can hit my target?

Thank you very much!
Back to top
View user's profile Send private message
jpc22
Apprentice
Apprentice


Joined: 29 Jan 2012
Posts: 195

PostPosted: Fri Jan 10, 2014 7:44 pm    Post subject: Reply with quote

Kmod-drbd82 seems to provide the kernel modules needed, but you could check if your current kernel has options for those.

Sys-cluster/drbd-kernel should have all the required options that you need but nothing says your current kernel can't be modified .

I am currently reading docs for configuring my own cluster but i am not going in the same direction than you, since all my nodes are hardened-gentoo with full disk encryption and will have grsec selinux... enabled soon, which really limits my choices of clustered filesystems.
Back to top
View user's profile Send private message
xcue
n00b
n00b


Joined: 10 Jan 2014
Posts: 3

PostPosted: Mon Jan 13, 2014 12:38 pm    Post subject: Reply with quote

hi jpc22!

Thanks for your answer!

Which filesystem are you going to use?

What do you mean with "but you could check if your current kernel has options for those" ?

How can i do that? And: Does it mean, the features provided by this package can already be available in the kernel? So i only have to install "sys-cluster / drbd"?

Thanks,

xCue
Back to top
View user's profile Send private message
jpc22
Apprentice
Apprentice


Joined: 29 Jan 2012
Posts: 195

PostPosted: Wed Jan 15, 2014 4:45 am    Post subject: Reply with quote

For my setup i would have to use a fuse userspace distributed fs. (orange or ceph were those that looked most promising) since i dont want to mess with shrinking jfs in a luks container(requires reinstalling).A userspace networked fs that grows with use and ideally has offline capacity is what i am looking at to have my important/backup files backed on 3 machines at once.

To that i want to add 2 raspberry pi hooked each to an external hdd and webcam, with one in the house and one in the detached garage for maximum protection. (ideally in a fire,water,tamper, and em proof container) if only i could afford 2 of those usb enabled safes



Now lets get back to your main question: check for the following options in your kernel and if they are not there emerge the cluster version of the kernel as it will surely contain them. I checked and they also are present in the latest hardened.The last 3 options are optional but i remembered them from my memory of reading the kernel info and thought they could be useful for you. The first two are likely mandatory for clustering,but I might have missed some ,so double check with the clustering documentation to be sure about the kernel options you need.


(BLK_DEV_DRBD)DRBD Distributed Replicated Block Device support (BLK_DEV_DRBD)
CONFIG_BLK_DEV_NBD:Network block device support (BLK_DEV_NBD)



_________________(optional but related to clustering)____________________________

CLUSTERIP target support (IP_NF_TARGET_CLUSTERIP)

CONFIG_IP_NF_TARGET_CLUSTERIP:

The CLUSTERIP target allows you to build load-balancing clusters of
network servers without having a dedicated load-balancing
router/server/switch.

"cluster" match support (NETFILTER_XT_MATCH_CLUSTER)

CONFIG_NETFILTER_XT_MATCH_CLUSTER:

This option allows you to build work-load-sharing clusters of
network servers/stateful firewalls without having a dedicated
load-balancing router/server/switch. Basically, this match returns
true when the packet must be handled by this cluster node. Thus,
all nodes see all packets and this match decides which node handles
what packets. The work-load sharing algorithm is based on source
address hashing.

If you say Y or M here, try `iptables -m cluster --help` for
more information.

OCFS2 Userspace Clustering (OCFS2_FS_USERSPACE_CLUSTER)

CONFIG_OCFS2_FS_USERSPACE_CLUSTER:

This option will allow OCFS2 to use userspace clustering services
in conjunction with the DLM in fs/dlm. If you are using a
userspace cluster manager, say Y here.
Back to top
View user's profile Send private message
dcmwai
n00b
n00b


Joined: 26 Mar 2005
Posts: 13
Location: Malaysia

PostPosted: Tue Oct 07, 2014 12:12 pm    Post subject: Reply with quote

GFS, I don't know

But I've DRBD + OCFS2...
https://wiki.gentoo.org/wiki/DRBD_with_OCFS2


However, I fail to get the CTDB working...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum