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

Amos Shapira amos.shapira at gmail.com
Thu Dec 13 03:33:36 CET 2007

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


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



More information about the drbd-user mailing list