Gentoo Archives: gentoo-user

From: reader@×××××××.com
To: gentoo-user@l.g.o
Cc: rsnapshot-discuss@×××××××××××××××××.net
Subject: [gentoo-user] rsnap failure in cp -al leads to deletion of all but one Hourly*
Date: Mon, 19 Dec 2005 14:08:36
Message-Id: 87vexlta8m.fsf@newsguy.com
1 Cross post alert! => posted on gentoo and rsnapshot
2
3 Gentoo linux kernel-2.6.14
4 rsnapshot-1.2.1-r1
5 rsync-2.6.6-r1
6
7
8 Failure of cp -al doesn't leave enough log info to id what is wrong.
9 Some kind of failure happened from one day to the next:
10
11 Dec 15
12 /bin/rm -rf /bk/rsnap/hourly.5/
13 mv /bk/rsnap/hourly.4/ /bk/rsnap/hourly.5/
14 mv /bk/rsnap/hourly.3/ /bk/rsnap/hourly.4/
15 mv /bk/rsnap/hourly.2/ /bk/rsnap/hourly.3/
16 mv /bk/rsnap/hourly.1/ /bk/rsnap/hourly.2/
17 /bin/cp -al /bk/rsnap/hourly.0/ /bk/rsnap/hourly.1/
18 /usr/bin/rsync -a --delete --numeric-ids --links --delete-excluded --stats \
19 --exclude-from=/mnt/pack/rc/rsnap_Reader_exclude /home/ \
20 /bk/rsnap/hourly.0/reader_home/
21
22 [...]
23
24 No problems above..
25
26 ===============================================
27 Now Dec 16
28
29 /bin/rm -rf /bk/rsnap/hourly.5/
30 mv /bk/rsnap/hourly.4/ /bk/rsnap/hourly.5/
31 mv /bk/rsnap/hourly.3/ /bk/rsnap/hourly.4/
32 mv /bk/rsnap/hourly.2/ /bk/rsnap/hourly.3/
33 mv /bk/rsnap/hourly.1/ /bk/rsnap/hourly.2/
34 /bin/cp -al /bk/rsnap/hourly.0/ /bk/rsnap/hourly.1/
35 /bin/cp: target `/bk/rsnap/hourly.1/' is not a directory: No such file or directory
36 ----------------------------------------------------------------------------
37 rsnapshot encountered an error! The program was invoked with these options:
38 /usr/bin/rsnapshot -c /etc/rsnap_Reader.conf hourly
39
40 ----------------------------------------------------------------------------
41 ERROR: /bin/cp failed. Perhaps this is not GNU cp?
42 ERROR: Error! cp_al("/bk/rsnap/hourly.0/", "/bk/rsnap/hourly.1/")
43
44 ====================================
45
46 Well of coures hourly.1 is not present, it was just moved to
47 hourly.2..
48
49 It is gnu cp and running cp -al hourly.0 hourly.1 there does work.
50
51 hourly.0 is currently 1.9G, is that big enough to cause a timeout?
52
53 I just can't spot a problem in the /bk directory...
54
55 I have been doing lots of installing since it is a new install and
56 being brought up to speed. I can't imagine what would have changed in
57 gnu cp to cause this. More likely rsnaphot I guess but I see no
58 traffic here like that.
59
60 --
61 gentoo-user@g.o mailing list