1 |
If files have gone missing first step is fsck the disk just in case. |
2 |
Next emerge sync if it works. (dont use the fancy options until its |
3 |
working again.) Whats "esync" ?? I wouldnt trust it until you know |
4 |
what happened. |
5 |
|
6 |
You can copy the complete portage from another machine over the top |
7 |
without problems - the rsync part of emerge does just that. If its not |
8 |
to old, just change the profile link if necessary and emerge sync to |
9 |
upgrade. |
10 |
|
11 |
I upgrade portage as the first step after the sync whenever it appears: |
12 |
portage upgrades often change some of the underlying structure (as well |
13 |
as break things ...) |
14 |
|
15 |
There is also a rescue portage hidden somewhere in portage that can also |
16 |
be downloaded - its a tarball of a basic portage with enough "bits" to |
17 |
rescue a system thats lost its portage all together (I did this once |
18 |
with rm -rf * in /usr/portage !) |
19 |
|
20 |
BillK |
21 |
|
22 |
|
23 |
|
24 |
On Sat, 2005-07-16 at 11:16 -0400, Allan Gottlieb wrote: |
25 |
> This fine morning I awoke to find that in my fairly new gentoo install |
26 |
> nearly all of /usr/portage is gone. |
27 |
> |
28 |
> bash-2.05b# ls -lA /mnt/gentoo-new/usr/portage |
29 |
> total 20 |
30 |
> drwxrwsr-x 4 root portage 16384 Jul 12 22:10 distfiles |
31 |
> drwxr-xr-x 4 root root 4096 Jul 11 23:04 packages |
32 |
> bash-2.05b# |
33 |
> |
34 |
> The distfiles directory has many (appropriate) files and packages has |
35 |
> the one package it should. The partition has plenty of room (almost |
36 |
> 7GB). |
37 |
> |
38 |
> I run esync from cron (anacron) when I boot and it failed (see below |
39 |
> for the mail sent by anacron) telling me to see emerge-sync.log. Here |
40 |
> I see some failures and a statement that a new version of portage is |
41 |
> available (again see below). |
42 |
> |
43 |
> I still have my previous gentoo (using it right now) on a different |
44 |
> partition. It started from one of the 2004 profiles, but has been |
45 |
> kept up to date until a very few weeks ago when I started cutting over |
46 |
> to my new system. I can certainly run an |
47 |
> emerge --tree --ask --verbose --newuse --update --deep world |
48 |
> but wanted to do as little as possible before asking for advice. |
49 |
> |
50 |
> My main question is whether I should copy files from the old |
51 |
> /usr/portage to the new one or is there better method to proceed. |
52 |
> I keep extensive backups of all my files and all of /etc, but do not |
53 |
> backup the system files (other than having an older version of gentoo |
54 |
> that is kept reasonably up to date). |
55 |
> |
56 |
> Thanks for any help. |
57 |
> allan |
58 |
> |
59 |
> ================ Mail from anacron concerning today's esync ================ |
60 |
> |
61 |
> From root@×××××××××.localdomain Sat Jul 16 09:27:45 2005 |
62 |
> Return-Path: <root@×××××××××.localdomain> |
63 |
> X-Original-To: root |
64 |
> Delivered-To: root@×××××××××.localdomain |
65 |
> Received: by localhost.localdomain (Postfix, from userid 0) |
66 |
> id 5E33E544B5; Tue, 12 Jul 2005 11:49:51 -0400 (EDT) |
67 |
> From: root@×××××××××.localdomain (Anacron) |
68 |
> To: root@×××××××××.localdomain |
69 |
> Subject: Anacron job 'anacron-daily-2' |
70 |
> Message-Id: <20050712154951.5E33E544B5@×××××××××.localdomain> |
71 |
> Date: Tue, 12 Jul 2005 11:49:51 -0400 (EDT) |
72 |
> |
73 |
> * Importing old portage tree |
74 |
> * Doing '/usr/bin/emerge sync' now |
75 |
> * Error: '/usr/bin/emerge sync' failed, see /var/log/emerge-sync.log for errors |
76 |
> run-parts: /local/etc/anacron-daily-2/esync-cron exited with return code 1 |
77 |
> |
78 |
> From root@×××××××××.localdomain Sat Jul 16 09:34:29 2005 |
79 |
> Return-Path: <root@×××××××××.localdomain> |
80 |
> X-Original-To: root |
81 |
> Delivered-To: root@×××××××××.localdomain |
82 |
> Received: by localhost.localdomain (Postfix, from userid 0) |
83 |
> id 869A7544B7; Sat, 16 Jul 2005 09:34:26 -0400 (EDT) |
84 |
> From: root@×××××××××.localdomain (Anacron) |
85 |
> To: root@×××××××××.localdomain |
86 |
> Subject: Anacron job 'anacron-daily-2' |
87 |
> Message-Id: <20050716133426.869A7544B7@×××××××××.localdomain> |
88 |
> Date: Sat, 16 Jul 2005 09:34:26 -0400 (EDT) |
89 |
> |
90 |
> * Importing old portage tree |
91 |
> * Doing '/usr/bin/emerge sync' now |
92 |
> |
93 |
> * Doing 'eupdatedb' now |
94 |
> |
95 |
> |
96 |
> * esearch-index generated in 1 second(s) |
97 |
> * indexed 0 ebuilds |
98 |
> * size of esearch-index: 0 kB |
99 |
> |
100 |
> * Importing new portage tree |
101 |
> * Preparing databases |
102 |
> * Searching for changes |
103 |
> |
104 |
> * No updates found |
105 |
> |
106 |
> ================ Contents of emerge-sync.log ================ |
107 |
> |
108 |
> rsync: failed to connect to 128.118.99.31: Connection timed out |
109 |
> rsync error: error in socket IO (code 10) at clientserver.c(88) |
110 |
> ============================== |
111 |
> CLARKSON OPEN SOURCE INSTITUTE |
112 |
> http://cosi.clarkson.edu |
113 |
> ============================== |
114 |
> IP: mirror.clarkson.edu |
115 |
> rsync10.us.gentoo.org |
116 |
> Specs: Sun Ultra60 |
117 |
> 2 x 296Mhz CPUs |
118 |
> 1796 MB RAM |
119 |
> 250 GB RAID Storage |
120 |
> Bandwidth: 10 Mbit (when limited) |
121 |
> User Limit: 35 off-campus connections |
122 |
> Location: Clarkson University |
123 |
> http://www.clarkson.edu |
124 |
> Potsdam, NY USA |
125 |
> Contact: mirror@×××××××××××××.edu |
126 |
> ============================== |
127 |
> Welcome to our rsync server. |
128 |
> |
129 |
> receiving file list ... |
130 |
> 1 file to consider |
131 |
> |
132 |
> Number of files: 1 |
133 |
> Number of files transferred: 0 |
134 |
> Total file size: 32 bytes |
135 |
> Total transferred file size: 0 bytes |
136 |
> Literal data: 0 bytes |
137 |
> Matched data: 0 bytes |
138 |
> File list size: 32 |
139 |
> Total bytes written: 203 |
140 |
> Total bytes read: 550 |
141 |
> |
142 |
> wrote 203 bytes read 550 bytes 301.20 bytes/sec |
143 |
> total size is 32 speedup is 0.04 |
144 |
> ============================== |
145 |
> CLARKSON OPEN SOURCE INSTITUTE |
146 |
> http://cosi.clarkson.edu |
147 |
> ============================== |
148 |
> IP: mirror.clarkson.edu |
149 |
> rsync10.us.gentoo.org |
150 |
> Specs: Sun Ultra60 |
151 |
> 2 x 296Mhz CPUs |
152 |
> 1796 MB RAM |
153 |
> 250 GB RAID Storage |
154 |
> Bandwidth: 10 Mbit (when limited) |
155 |
> User Limit: 35 off-campus connections |
156 |
> Location: Clarkson University |
157 |
> http://www.clarkson.edu |
158 |
> Potsdam, NY USA |
159 |
> Contact: mirror@×××××××××××××.edu |
160 |
> ============================== |
161 |
> Welcome to our rsync server. |
162 |
> |
163 |
> receiving file list ... |
164 |
> 1 file to consider |
165 |
> 0 files... |
166 |
> Number of files: 1 |
167 |
> Number of files transferred: 0 |
168 |
> Total file size: 0 bytes |
169 |
> Total transferred file size: 0 bytes |
170 |
> Literal data: 0 bytes |
171 |
> Matched data: 0 bytes |
172 |
> File list size: 20 |
173 |
> Total bytes written: 181 |
174 |
> Total bytes read: 538 |
175 |
> |
176 |
> wrote 181 bytes read 538 bytes 287.60 bytes/sec |
177 |
> total size is 0 speedup is 0.00 |
178 |
> >>> starting rsync with rsync://128.118.99.31/gentoo-portage... |
179 |
> >>> checking server timestamp ... |
180 |
> >>> retry ... |
181 |
> |
182 |
> |
183 |
> >>> Starting retry 1 of 3 with rsync://128.153.144.22/gentoo-portage |
184 |
> >>> checking server timestamp ... |
185 |
> |
186 |
> |
187 |
> * An update to portage is available. It is _highly_ recommended |
188 |
> * that you update portage now, before any other packages are updated. |
189 |
> * Please do so and then update ALL of your configuration files. |
190 |
> |
191 |
-- |
192 |
William Kenworthy <billk@×××××××××.au> |
193 |
Home! |
194 |
|
195 |
-- |
196 |
gentoo-user@g.o mailing list |