Hi all,
I have install all vector layer, raster layer and style layer description on Geoserver 1.5.4.
I have just installed Geoserver 1.7.2, It is take a long time to register again all layer, sld… So, Please tell me how to migrate all data from old Geoserver to new one.
I use war file to run Geoserver.
Thank you so much.
–
Nguyễn Đình Toán
Neu khong doc duoc tieng Viet, vui long chon Encoding là Unicode (UTF-8). Cam on.
Toan Nguyen wrote:
Hi all,
I have install all vector layer, raster layer and style layer description on Geoserver 1.5.4.
I have just installed Geoserver 1.7.2, It is take a long time to register again all layer, sld.... So, Please tell me how to migrate all data from old Geoserver to new one.
I use war file to run Geoserver.
There is no special recipe, you just point GeoServer 1.7.2
to the same data directory as GeoServer 1.5.4.
Why it's taking so long, I don't know, as you did not provide any
information about what exactly is taking long (any specific layer,
or was it loading styles... did you look at the logs scroll by,
and saw where it was taking more time?)
The only thing that comes to mind right now is that you might
not have native bounding boxes set for some big database tables,
and GeoServer is computing them on the fly during startup.
If this is your problem, you'll see the catalog loading logs
stuck when trying to load those big tables, and fly by with the
other data sets.
This issue has been solved recently and the fix will be integrated
into GeoServer 1.7.3.
If you want to try the change out you can download a nightly
GeoServer build from here:
http://gridlock.openplans.org/geoserver/1.7.x/
Cheers
Andrea
thank you,
I usually delete old Geoserver, and extract new Geoserver war file, then register all layer again.
I will try extract new Geoserver to the same folder with old one.
–
Nguyễn Đình Toán
Neu khong doc duoc tieng Viet, vui long chon Encoding là Unicode (UTF-8). Cam on.
Toan Nguyen wrote:
thank you,
I usually delete old Geoserver, and extract new Geoserver war file, then register all layer again.
I will try extract new Geoserver to the same folder with old one.
Actually, better if you don't do that. Let me provide a better approach.
I assume you're using the windows installer or the -bin package:
- install the new geoserver in its own folder
- wipe out the data_dir folder of the new geoserver
- copy the data_dir from the old GeoServer to the new GeoServer folder
so that it takes the place of the data_dir you removed in the
previous step
- start GeoServer, check everything still works. If it does, you
can safely remove the old one
Cheers
Andrea
PS: more information about the data directory here:
http://geoserver.org/display/GEOSDOC/2.5+GeoServer+Data+Directory