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

Lars Ellenberg lars.ellenberg at linbit.com
Thu Dec 13 10:03:28 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 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.



More information about the drbd-user mailing list