Hi Johansen,
I think I have the content filed right, now. Thank you for pointing out that I had my rsync path off. Unfortunately, even after restarting the depo, I still don't have anything showing up on my statistics page (all three are 0). Do you have anyother ideas on why this is being fickle?
                                                                Thank you,
                                                                Clay

My directory structure now looks like:
bash-3.2$ ls -l /export/pkg_mirror/
total 30
drwxr-xr-x   2 root     root           2 Mar  3 15:39 catalog
-rw-r--r--   1 root     root         454 Mar  6 14:50 cfg_cache
drwxr-xr-x 258 root     root         258 Apr 22  2008 file
drwxr-xr-x   2 root     root           2 Mar  3 15:39 index
drwxr-xr-x   2 root     root           2 Mar  3 15:39 pkg
drwxr-xr-x   2 root     root           2 Mar  3 15:39 trans
drwxr-xr-x   2 root     root           2 Mar  3 15:39 updatelog
bash-3.2$ ls -l file/|wc -l
     257
bash-3.2$ ls -l file/|head
total 109520
drwxr-xr-x 2813 root     root        2813 Feb 17 23:01 00
drwxr-xr-x 2911 root     root        2911 Feb 17 23:00 01
drwxr-xr-x 2961 root     root        2961 Feb 17 23:01 02
drwxr-xr-x 2914 root     root        2914 Feb 17 23:01 03
drwxr-xr-x 2833 root     root        2833 Feb 17 23:01 04
drwxr-xr-x 2945 root     root        2945 Feb 17 23:01 05
drwxr-xr-x 2872 root     root        2872 Feb 17 23:01 06
drwxr-xr-x 2892 root     root        2892 Feb 17 23:01 07
drwxr-xr-x 2845 root     root        2845 Feb 17 23:01 08
bash-3.2$ ls -l file/|tail
drwxr-xr-x 3017 root     root        3017 Feb 17 23:01 f6
drwxr-xr-x 2897 root     root        2897 Feb 17 23:01 f7
drwxr-xr-x 2801 root     root        2801 Feb 17 23:01 f8
drwxr-xr-x 2879 root     root        2879 Feb 17 23:01 f9
drwxr-xr-x 2855 root     root        2855 Feb 17 23:01 fa
drwxr-xr-x 2818 root     root        2818 Feb 17 23:01 fb
drwxr-xr-x 2839 root     root        2839 Feb 17 23:01 fc
drwxr-xr-x 2831 root     root        2831 Feb 17 23:01 fd
drwxr-xr-x 2932 root     root        2932 Feb 17 23:01 fe
drwxr-xr-x 2899 root     root        2899 Feb 17 23:00 ff

On Thu, 5 Mar 2009, [email protected] wrote:

It looks like you have your file content in the wrong place.  If you
move all of the two character directories in /export/pkg_mirror, from 00
to ff, into /export/pkg_mirror/file/ and restart, this ought to solve
your problem.

-j

On Thu, Mar 05, 2009 at 08:44:08PM -0700, Clay Baenziger wrote:
Hi all,
        I'm a newbie to mirroring an IPS repo but I've inherited one which I'm
tasked with maintaining and it's not seeming to update correctly. I've
tried my best to follow the directions on OpenSolaris.ORG[1], but have
had some issues. I'm not sure how to get it to actually serve files, any
suggestions?
        I have done an rsync between my server and ipkg.sfbay but unlike in the
directions, I'm using ::main_files as ::osol_dev_files provides me:
[Banner, etc...]
@ERROR: Unknown module 'osol_dev_files'
rsync error: error starting client-server protocol (code 5) at main.c(1383) 
[receiver=2.6.9]

So, after getting ::main_files I have 19.9GB on my zpool:
mypool/pkg_mirror                        19.9G  72.6G  19.9G  /export/pkg_mirror

But, statistics on my server usually has filelist being a small number (2
or 6, so far) after the rsync and after rfreshing and restarting the
service that drops to 0.

My SMF properties look like:
pkg                                application
pkg/threads                        count    50
pkg/port                           astring  8000
pkg/mirror                         boolean  true
pkg/proxy_base                     astring  http://indiana-build.central:8000
pkg/inst_root                      astring  /export/pkg_mirror
general                            framework
general/enabled                    boolean  true
start                              method
start/exec                         astring  "/usr/lib/pkg.depotd --mirror
-p %{pkg/port} -d %{pkg/inst_root} -t %{pkg/socket_timeout} -s
%{pkg/threads} --proxy-base=%{pkg/proxy_base}
--log-access=%{pkg/log_access} --log-errors=%{pkg/log_errors}"
[... restarter properties below ...]

My SMF log looks like the below for a typical start-up:
[ Mar  5 19:26:04 Method "stop" exited with status 0. ]
[ Mar  5 19:26:04 Executing start method ("/usr/lib/pkg.depotd --mirror
-p 8000 -d /export/pkg_mirror -t 60 -s 50
--proxy-base=http://indiana-build.central:8000 --log-access=none
--log-errors=stderr"). ]
[05/Mar/2009:19:26:05] ENGINE Listening for SIGHUP.
[05/Mar/2009:19:26:05] ENGINE Listening for SIGTERM.
[05/Mar/2009:19:26:05] ENGINE Listening for SIGUSR1.
[05/Mar/2009:19:26:05] ENGINE Bus STARTING
[05/Mar/2009:19:26:05] ENGINE Started monitor thread '_TimeoutMonitor'.
[05/Mar/2009:19:26:06] ENGINE Serving on 0.0.0.0:8000
[05/Mar/2009:19:26:06] ENGINE Bus STARTED


                                                        Thank you,
                                                        Clay

[1]:http://www.opensolaris.org/os/project/pkg/Mirroring/
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to