BackupPC-users

Re: [BackupPC-users] moving the pool disk to another computer -- file ownership

2016-04-25 20:27:25
Subject: Re: [BackupPC-users] moving the pool disk to another computer -- file ownership
From: Rob Owens <rowens AT ptd DOT net>
Date: Mon, 25 Apr 2016 20:10:18 -0400
On Mon, Apr 25, 2016 at 05:21:38PM -0400, Christophe Gouinaud wrote:
> Helo,
> 
> > Le 25 avr. 2016 à 16:28, Rob Owens <rowens AT ptd DOT net> a écrit :
> > 
> > I had an issue with the root filesystem of my backuppc server (system A) 
> > which 
> > required a restore.  So I moved the pool disk to another computer (system 
> > B), 
> > installed backuppc on that computer, booted system A off of a live CD, and 
> > prepared for a restore.
> > 
> > However, system B assigned a different UID to the backuppc user than system 
> > A
> > did, so all of the files in the backuppc pool (now attached to system B) 
> > did 
> > not have the proper ownership.  As a result, backuppc would not start.  I 
> > got
> > the "test hardlink failed" message.
> > 
> > I considered changing the UID of the backuppc user (using the usermod 
> > command)
> > but the UID I needed to change it to was already in use.  So I did 
> > 'chown -R backuppc.backuppc /var/lib/backuppc'.  This took several hours, 
> > as 
> > there were 59 million files (mostly hard links).  But it worked and I got my
> > restore done.  (Note:  I also chown'd my /etc/BackupPC files).
> > 
> > So I'm trying to figure out the best way to avoid this in the future.  Here
> > are some ideas I had.  I'm looking for critiques and advice.
> > 
> 
> In case of emergency, you can mount the pool with bindfs and the appropriate 
> uid.
> 
Thanks!  I didn't know about bindfs.  I will look into it.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/