[DRBD-user] file owner and group changing after switch over

Martin Gombac martin at isg.si
Fri Feb 29 15:07:29 CET 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


http://oss.linbit.com/csync2/ ?

On 2008.2.29, at 12:40, Rui Meireles wrote:

> Hello,
> I have the same problem, but since I have /home directories in the / 
> drbd
> partition, I have lots of users to sincronize by hand...
>
> Is there a better way for me to sincronize these files in both  
> servers?
> /etc/passwd
> /etc/shadow
> /etc/group
> /etc/samba/smbpasswd
> /etc/samba/smbusers
> ...
>
> And, if possible:
>  - create a user/group in the secondary (with same UID/GID) when I  
> create it
> in the primary
>  - change the password in the secondary when I change it in the  
> primary
>  ...
>
> Thanks!
>
> -----Original Message-----
> From: drbd-user-bounces at linbit.com [mailto:drbd-user- 
> bounces at linbit.com] On
> Behalf Of Lars Ellenberg
> Sent: quinta-feira, 13 de Dezembro de 2007 9:03
> To: drbd-user at linbit.com
> Subject: Re: [DRBD-user] file owner and group changing after switch  
> over
>
> On Thu, Dec 13, 2007 at 11:16:38AM +0800, David Hansel wrote:
>> On Dec 13, 2007 10:33 AM, Amos Shapira <amos.shapira at gmail.com>  
>> wrote:
>>>
>>> On 13/12/2007, David Hansel <hanselzen at gmail.com> wrote:
>>>> Hi All,
>>>>
>>>> I have a problem when i testing DRBD. Everytime the drbd switch  
>>>> over
>>>> the file owner and group will be change.
>>>> This is the chown in box 1:
>>>>
>>>> -rw-r--r-- 1 mysql mysql        0 2007-12-12 18:47 debian-5.0.flag
>>>> -rw-r----- 1 mysql mysql 10485760 2007-12-12 18:54 ibdata1
>>>> -rw-r----- 1 mysql mysql  5242880 2007-12-12 18:54 ib_logfile0
>>>> -rw-r----- 1 mysql mysql  5242880 2007-12-05 11:32 ib_logfile1
>>>> drwxr-xr-x 2 mysql mysql     4096 2007-12-05 11:32 mysql
>>>>
>>>>
>>>>
>>>> then after switch over to box 2. The file owner and group changing
> become this
>>>>
>>>> -rw-r--r-- 1 60 crontab        0 Dec 12 18:47 debian-5.0.flag
>>>> -rw-r----- 1 60 crontab  5242880 Dec 13 10:05 ib_logfile0
>>>> -rw-r----- 1 60 crontab  5242880 Dec  5 11:32 ib_logfile1
>>>> -rw-r----- 1 60 crontab 10485760 Dec 13 10:05 ibdata1
>>>> drwxr-xr-x 2 60 crontab     4096 Dec  5 11:32 mysql
>>>>
>>>> The file owner and group right now it 60 and crontab.
>>>>
>>>> Anyone know how to fix this problem?
>>>
>>> Synchronize the user id's in /etc/passwd on both machines (i.e. make
>>> sure that the user you want to own the files has the same uid in
>>> /etc/passwd).
>>>
>>> --Amos
>>>
>> Thank you so much. Problem is solved :)
>
> 	;-)
>
> -- 
> : Lars Ellenberg                           http://www.linbit.com :
> : DRBD/HA support and consulting             sales at linbit.com :
> : LINBIT Information Technologies GmbH      Tel +43-1-8178292-0  :
> : Vivenotgasse 48, A-1120 Vienna/Europe     Fax +43-1-8178292-82 :
> __
> please use the "List-Reply" function of your email client.
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user




More information about the drbd-user mailing list