Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Shared Samba Config file

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


jayfitzpatrick at gmail

Jun 25, 2009, 12:02 PM

Post #1 of 4 (437 views)
Permalink
Shared Samba Config file

Hi all

I have a simple 2 node heartbeat 2.99 cluster with a shared IP Address,
samba (with a DRBD backend), cups, and winbind running for AD integration

I am hoping to move my samba conf file from /etc/samba/smb.conf to
/DRBD_Storage/config_files/smb.conf so that the config travels with the
resources, and was wondering what options I need to enable in crm to tell
smbd to read a different config file location? the option within fedora is
smbd -s /DRBD_Storage/config_files/smb.conf

and while I am at it I would also like to move the cache location for
winbind as I am running into problems with file / folder permissions being
changed when I failover nodes. the server is integrated into AD and as a
result winbind has 2 different databases of unix user ID to AD accounts,

I have been getting around this by syncing up the databases and config
files using cron, but this is becoming more complicated as the system usage
increases

any help would be greatly appreciated!

Thanks

Jay
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


jayfitzpatrick at gmail

Jun 25, 2009, 2:12 PM

Post #2 of 4 (409 views)
Permalink
Re: Shared Samba Config file [In reply to]

all righty then,

I have done the following to try and get around this and it seems to be
working

mkdir -p /Storage/cluster_config/samba
cp /etc/samba/* /Storage/cluster_config/samba/
mv /etc/samba /etc/samba.old
ln -s /Storage/cluster_config/samba /etc/samba

I have migrated the resources back and forward a couple of times and they
seem to be OK with this,

that said it will remain to be seen what happens with winbind

Jay

2009/6/25 <jayfitzpatrick[at]gmail.com>

> Hi all
>
> I have a simple 2 node heartbeat 2.99 cluster with a shared IP Address,
> samba (with a DRBD backend), cups, and winbind running for AD integration
>
> I am hoping to move my samba conf file from /etc/samba/smb.conf to
> /DRBD_Storage/config_files/smb.conf so that the config travels with the
> resources, and was wondering what options I need to enable in crm to tell
> smbd to read a different config file location? the option within fedora is
> smbd -s /DRBD_Storage/config_files/smb.conf
>
> and while I am at it I would also like to move the cache location for
> winbind as I am running into problems with file / folder permissions being
> changed when I failover nodes. the server is integrated into AD and as a
> result winbind has 2 different databases of unix user ID to AD accounts,
>
> I have been getting around this by syncing up the databases and config
> files using cron, but this is becoming more complicated as the system usage
> increases
>
> any help would be greatly appreciated!
>
> Thanks
>
> Jay
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


jayfitzpatrick at gmail

Jun 26, 2009, 2:45 AM

Post #3 of 4 (398 views)
Permalink
Re: Shared Samba Config file [In reply to]

Ok I have moved winbind in the same manner as below

mkdir -p /Storage/cluster_config/winbind/cache
service winbind stop
cp /var/cache/samba/* /Storage/cluster_config/winbind/cache
mv /var/cache/samba/ /var/cache/samba.old
ln -s /Storage/cluster_config/winbind/cache /var/cache/samba
service winbind start

it is not perfect as I have rejoin the node to the domain every time that I
fail over, but it does keep my ACL's correct,

is there anyone out there who has done this before? I find it hard to
believe that no one out there has an AD integrated HA Fileserver.

Jay

2009/6/25 Jason Fitzpatrick <jayfitzpatrick[at]gmail.com>

> all righty then,
>
> I have done the following to try and get around this and it seems to be
> working
>
> mkdir -p /Storage/cluster_config/samba
> cp /etc/samba/* /Storage/cluster_config/samba/
> mv /etc/samba /etc/samba.old
> ln -s /Storage/cluster_config/samba /etc/samba
>
> I have migrated the resources back and forward a couple of times and they
> seem to be OK with this,
>
> that said it will remain to be seen what happens with winbind
>
> Jay
>
> 2009/6/25 <jayfitzpatrick[at]gmail.com>
>
> Hi all
>>
>> I have a simple 2 node heartbeat 2.99 cluster with a shared IP Address,
>> samba (with a DRBD backend), cups, and winbind running for AD integration
>>
>> I am hoping to move my samba conf file from /etc/samba/smb.conf to
>> /DRBD_Storage/config_files/smb.conf so that the config travels with the
>> resources, and was wondering what options I need to enable in crm to tell
>> smbd to read a different config file location? the option within fedora is
>> smbd -s /DRBD_Storage/config_files/smb.conf
>>
>> and while I am at it I would also like to move the cache location for
>> winbind as I am running into problems with file / folder permissions being
>> changed when I failover nodes. the server is integrated into AD and as a
>> result winbind has 2 different databases of unix user ID to AD accounts,
>>
>> I have been getting around this by syncing up the databases and config
>> files using cron, but this is becoming more complicated as the system usage
>> increases
>>
>> any help would be greatly appreciated!
>>
>> Thanks
>>
>> Jay
>
>
>
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


jayfitzpatrick at gmail

Jul 2, 2009, 4:05 PM

Post #4 of 4 (340 views)
Permalink
Re: Shared Samba Config file [In reply to]

Hi all,

don't know if this one has been making it to the newsgroups or not, but have
finaly found a working answer to my problems for clustering samba services
with AD integration,

simply follow the link below


Topic: How can I configure winbind to synchronize user and group id's across
multiple Red Hat Enterprise Linux hosts on Active Directory accounts?

http://kbase.redhat.com/faq/docs/DOC-2342
Job done!


Jay

2009/6/26 Jason Fitzpatrick <jayfitzpatrick[at]gmail.com>

> Ok I have moved winbind in the same manner as below
>
> mkdir -p /Storage/cluster_config/winbind/cache
> service winbind stop
> cp /var/cache/samba/* /Storage/cluster_config/winbind/cache
> mv /var/cache/samba/ /var/cache/samba.old
> ln -s /Storage/cluster_config/winbind/cache /var/cache/samba
> service winbind start
>
> it is not perfect as I have rejoin the node to the domain every time that I
> fail over, but it does keep my ACL's correct,
>
> is there anyone out there who has done this before? I find it hard to
> believe that no one out there has an AD integrated HA Fileserver.
>
> Jay
>
> 2009/6/25 Jason Fitzpatrick <jayfitzpatrick[at]gmail.com>
>
> all righty then,
>>
>> I have done the following to try and get around this and it seems to be
>> working
>>
>> mkdir -p /Storage/cluster_config/samba
>> cp /etc/samba/* /Storage/cluster_config/samba/
>> mv /etc/samba /etc/samba.old
>> ln -s /Storage/cluster_config/samba /etc/samba
>>
>> I have migrated the resources back and forward a couple of times and they
>> seem to be OK with this,
>>
>> that said it will remain to be seen what happens with winbind
>>
>> Jay
>>
>> 2009/6/25 <jayfitzpatrick[at]gmail.com>
>>
>> Hi all
>>>
>>> I have a simple 2 node heartbeat 2.99 cluster with a shared IP Address,
>>> samba (with a DRBD backend), cups, and winbind running for AD integration
>>>
>>> I am hoping to move my samba conf file from /etc/samba/smb.conf to
>>> /DRBD_Storage/config_files/smb.conf so that the config travels with the
>>> resources, and was wondering what options I need to enable in crm to tell
>>> smbd to read a different config file location? the option within fedora is
>>> smbd -s /DRBD_Storage/config_files/smb.conf
>>>
>>> and while I am at it I would also like to move the cache location for
>>> winbind as I am running into problems with file / folder permissions being
>>> changed when I failover nodes. the server is integrated into AD and as a
>>> result winbind has 2 different databases of unix user ID to AD accounts,
>>>
>>> I have been getting around this by syncing up the databases and config
>>> files using cron, but this is becoming more complicated as the system usage
>>> increases
>>>
>>> any help would be greatly appreciated!
>>>
>>> Thanks
>>>
>>> Jay
>>
>>
>>
>
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.