Re: [BackupPC-users] cannot cleanup /var/lib/backuppc/trash

2007-02-19 Thread Holger Parplies
Hi,

Tony Del Porto wrote on 05.02.2007 at 17:49:49 [Re: [BackupPC-users] cannot 
cleanup /var/lib/backuppc/trash]:
> 
> I'm having a similar issue:
> 
> [...]
> 
> Looking at the trash directory, there are a bunch of directories of  
> varying ages. There are no files in the directories, but they can't  
> be removed because their link count isn't 2. For example:
> 
> [...]
>
> [nebula]$ ls -la f%2f/fusr/fshare/femacs/f21.4/flisp/fobsolete
> total 8
> drwxr-x---  5 backuppc  backuppc   512 Oct 17 00:53 .
> drwxr-x---  3 backuppc  backuppc  6144 Oct 17 00:53 ..
> 

I can't really imagine how that would happen aside from file system
corruption. You can't usually create hard links to directories, though I
believe some UNIX systems *might* allow root to do such a thing. Have you
run an fsck on the file system in question? Can you actually find other
directory entries pointing to the same inode ('ls -li fobsolete' and 'find
-inum ...')?

Chantal Rosmuller wrote on 13.02.2007 at 12:41:55 [Re: [BackupPC-users] cannot 
cleanup /var/lib/backuppc/trash]:
> 
> On Saturday 03 February 2007 01:26, Holger Parplies wrote:
> > [...]
> > - immutable bit set on a file (presuming it's an ext2/ext3)?
> 
> Yes the immutable bit is set on some directories below /var/lib/backuppc/trash
> but the question is: how did that happen?

I have no idea how that would happen, but *as root* you can remove them with
'chattr -i ' (or even 'chattr -R -i trash'). Since the attribute
can only be set or cleared as root, it seems unlikely that BackupPC set it.
Maybe file system corruption? I'd run an fsck just in case. Did this happen
only once or are you constantly getting more and more immutable directories?

Talking about fsck, does anyone know if fsck has problems with BackupPC-pool-
type file systems (large link counts, links spread across many directories)?

Regards,
Holger

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] cannot cleanup /var/lib/backuppc/trash

2007-02-13 Thread Chantal Rosmuller
Hi Tony,


>
> I'm having a similar issue:
>
> 007-02-05 16:57:21 BackupPC_trashClean failed to empty /usr/local/
> backuppc/data/trash
> 2007-02-05 17:02:21 BackupPC_trashClean failed to empty /usr/local/
> backuppc/data/trash
> 2007-02-05 17:07:22 BackupPC_trashClean failed to empty /usr/local/
> backuppc/data/trash
> 2007-02-05 17:12:22 BackupPC_trashClean failed to empty /usr/local/
> backuppc/data/trash
> 2007-02-05 17:17:22 BackupPC_trashClean failed to empty /usr/local/
> backuppc/data/trash
> 2007-02-05 17:22:22 BackupPC_trashClean failed to empty /usr/local/
> backuppc/data/trash
>

>
> I haven't figured out how to remedy this yet. The above is a UFS
> filesystem under FreeBSD 5.4, BackupPC 2.1.2.
>
> HTH,
>
>
> Tony Del Porto


On our server some directories are immutable, but that is something very 
specific for ext2 and ext3 filesystems I wonder whether it is caused 
by the same issue though..

Regards Chantal

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] cannot cleanup /var/lib/backuppc/trash

2007-02-13 Thread Chantal Rosmuller
Hi,

On Saturday 03 February 2007 01:26, Holger Parplies wrote:
> Hi,
>
> Chantal Rosmuller wrote on 02.02.2007 at 20:08:46 [[BackupPC-users] cannot 
cleanup /var/lib/backuppc/trash]:
> > If I want to clean up /var/lib/backuppc/trash I get the following error:
> >
> > [EMAIL PROTECTED]:~$ /usr/share/backuppc/bin/BackupPC_trashClean
> > processState running
> > log BackupPC_trashClean failed to empty /var/lib/backuppc/trash
> > processState idle
>
> first of all, I don't think you're actually supposed to run
> BackupPC_trashClean from the command line. BackupPC will run it for you.

I know, but I get the following error in the logfiles: BackupPC_trashClean 
failed to empty /var/lib/backuppc/trash So I did a test on the commandline
>
> BackupPC_trashClean (and BackupPC::Lib::RmTreeTrashEmpty() aren't exactly
> explicit about what is failing. There are a few possibilities that spring
> to mind:
>
> - file system mounted read-only?

No that is not the case

> - immutable bit set on a file (presuming it's an ext2/ext3)?

Yes the immutable bit is set on some directories below /var/lib/backuppc/trash 
but the question is: how did that happen?

> - directory permissions messed up (however that happened)
>   find /var/lib/backuppc/trash -type d \! \( -perm -0200 -a -user backuppc
> \) -ls should show you what's wrong, if anything is
>
> If that doesn't help:
> - what sort of filesystem is /var/lib/backuppc on?

ext3

> - Debian? BackupPC 3.0.0?
backuppc 2.1.1 on debian 3.1

> - du -s /var/lib/backuppc/trash   (after running BackupPC_trashClean)?
> - are any files removed at all?
Yes the non-immutable files are removed

> Is there a pause between 'processState 
>   running' and 'log BackupPC_trashClean failed ...'?

I'm not sure, can this be tested form the commandline?

> - You *are* running that as 'backuppc' (as your prompt indicates), and that
>   *is* the BackupPC user? [Yes, I know, otherwise there should be a warning
>   about running with an incorrect UID]

yes backuppc is the correct user

>
> Regards,
> Holger

Thanks, regards Chantal

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] cannot cleanup /var/lib/backuppc/trash

2007-02-05 Thread Tony Del Porto
On Feb 2, 2007, at 4:26 PM, Holger Parplies wrote:

> Hi,
>
> Chantal Rosmuller wrote on 02.02.2007 at 20:08:46 [[BackupPC-users]  
> cannot cleanup /var/lib/backuppc/trash]:
>> If I want to clean up /var/lib/backuppc/trash I get the following  
>> error:
>>
>> [EMAIL PROTECTED]:~$ /usr/share/backuppc/bin/BackupPC_trashClean
>> processState running
>> log BackupPC_trashClean failed to empty /var/lib/backuppc/trash
>> processState idle

I'm having a similar issue:

007-02-05 16:57:21 BackupPC_trashClean failed to empty /usr/local/ 
backuppc/data/trash
2007-02-05 17:02:21 BackupPC_trashClean failed to empty /usr/local/ 
backuppc/data/trash
2007-02-05 17:07:22 BackupPC_trashClean failed to empty /usr/local/ 
backuppc/data/trash
2007-02-05 17:12:22 BackupPC_trashClean failed to empty /usr/local/ 
backuppc/data/trash
2007-02-05 17:17:22 BackupPC_trashClean failed to empty /usr/local/ 
backuppc/data/trash
2007-02-05 17:22:22 BackupPC_trashClean failed to empty /usr/local/ 
backuppc/data/trash

Looking at the trash directory, there are a bunch of directories of  
varying ages. There are no files in the directories, but they can't  
be removed because their link count isn't 2. For example:

[nebula]$ cd 1161071499_918_0/
[nebula]$ ls
f%2f
[nebula]$ sudo rm -rf f%2f
Password:
rm: f%2f/fusr/fshare/femacs/f21.4/flisp/fobsolete: Directory not empty
rm: f%2f/fusr/fshare/femacs/f21.4/flisp: Directory not empty
rm: f%2f/fusr/fshare/femacs/f21.4: Directory not empty
rm: f%2f/fusr/fshare/femacs: Directory not empty
rm: f%2f/fusr/fshare/fthemes/fBluecurve: Directory not empty
rm: f%2f/fusr/fshare/fthemes: Directory not empty
rm: f%2f/fusr/fshare: Directory not empty
rm: f%2f/fusr: Directory not empty
rm: f%2f: Directory not empty
[nebula]$ ls -la f%2f/fusr/fshare/femacs/f21.4/flisp/fobsolete
total 8
drwxr-x---  5 backuppc  backuppc   512 Oct 17 00:53 .
drwxr-x---  3 backuppc  backuppc  6144 Oct 17 00:53 ..

[nebula]$ ls -la f%2f/fusr/fshare/femacs/f21.4/flisp/
total 10
drwxr-x---  3 backuppc  backuppc  6144 Oct 17 00:53 .
drwxr-x---  3 backuppc  backuppc   512 Oct 17 00:53 ..
drwxr-x---  5 backuppc  backuppc   512 Oct 17 00:53 fobsolete

Whereas an empty directory looks like:

[nebula]$ mkdir test
[nebula]$ cd test
[nebula]$ ls -al .
total 4
drwxr-xr-x  2 tony  tony   512 Feb  5 17:25 .
drwxr-xr-x  5 tony  tony  1536 Feb  5 17:25 ..

Someone with a better understanding of hardlinks and BackupPC can  
probably expand on this, but it is my guess that something happened  
out of order or was interrupted preventing the correct unlinking of  
the directories. You might take a look at what is in the trash  
directory to see if you have a similar situation.

I haven't figured out how to remedy this yet. The above is a UFS  
filesystem under FreeBSD 5.4, BackupPC 2.1.2.

HTH,


Tony Del Porto
SysAdmin
USENIX Association
2560 9th Street, Suite 215, Berkeley CA 94710
[EMAIL PROTECTED] | www.usenix.org | www.sage.org
http://www.usenix.org/about/tonyd.gpgkey


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] cannot cleanup /var/lib/backuppc/trash

2007-02-02 Thread Holger Parplies
Hi,

Chantal Rosmuller wrote on 02.02.2007 at 20:08:46 [[BackupPC-users] cannot 
cleanup /var/lib/backuppc/trash]:
> If I want to clean up /var/lib/backuppc/trash I get the following error:
> 
> [EMAIL PROTECTED]:~$ /usr/share/backuppc/bin/BackupPC_trashClean
> processState running
> log BackupPC_trashClean failed to empty /var/lib/backuppc/trash
> processState idle

first of all, I don't think you're actually supposed to run
BackupPC_trashClean from the command line. BackupPC will run it for you.

BackupPC_trashClean (and BackupPC::Lib::RmTreeTrashEmpty() aren't exactly
explicit about what is failing. There are a few possibilities that spring to
mind:

- file system mounted read-only?
- immutable bit set on a file (presuming it's an ext2/ext3)?
- directory permissions messed up (however that happened)
  find /var/lib/backuppc/trash -type d \! \( -perm -0200 -a -user backuppc \) 
-ls
  should show you what's wrong, if anything is

If that doesn't help:
- what sort of filesystem is /var/lib/backuppc on?
- Debian? BackupPC 3.0.0?
- du -s /var/lib/backuppc/trash   (after running BackupPC_trashClean)?
- are any files removed at all? Is there a pause between 'processState
  running' and 'log BackupPC_trashClean failed ...'?
- You *are* running that as 'backuppc' (as your prompt indicates), and that
  *is* the BackupPC user? [Yes, I know, otherwise there should be a warning
  about running with an incorrect UID]

Regards,
Holger

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/