I'm trying to install and run intermezzo. On the server, I've done the following: 1) built intermezzo support as a kernel module 2) ran modprobe intermezzo 3) ran emerge intersync Then, following the "Quick Start" instructions in /usr/share/doc/intersync/InterSync-HOWTO.html, I: 4) formatted /dev/hdb1 as an ext3 partition 5) created /export/intermezzo as mount point 6) put "/dev/hdb1 /export/intermezzo intermezzo" in fstab 7) mounted /export/intermezzo So far so good. But when I first ran "/etc/init.d/intersync start" it complained about the CACHE value in /etc/conf.d/intersync. So, 8) Set CACHE="/export/intermezzo" in /etc/conf.d/intersync Now when I run "/etc/init.d/intersync start" (or restart) I get the message ---------- * Starting intersync... sh: line 1: /usr/sbin/apache: No such file or directory ** ERROR **: Cannot start apache with config file /var/intermezzo-2/intersync-httpd.conf: error code 0x7f00 aborting... /sbin/runscript.sh: line 527: 5553 Aborted start-stop-daemon --start --pidfile /var/run/intersync.pid --startas /usr/bin/intersync -- $CLIENT_OPTS $CACHE * Failed to start intersync ---------- I'm guessing there is a misconfiguration (or missing user instructions) for getting intersync to recognize/use the libghttp that the ebuild installs. Further info: skipper proc # uname -a Linux skipper 2.4.20-gentoo-r5 #11 Wed Aug 6 20:46:21 EDT 2003 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux skipper proc # lsmod Module Size Used by Not tainted intermezzo 252424 0 (autoclean) snd-pcm-oss 39940 0 (autoclean) snd-mixer-oss 13848 1 (autoclean) [snd-pcm-oss] sg 29164 0 (autoclean) (unused) sr_mod 16696 0 (autoclean) (unused) sd_mod 11276 0 (autoclean) (unused) scsi_mod 58996 3 (autoclean) [sg sr_mod sd_mod] parport_pc 27976 1 (autoclean) lp 6880 0 (autoclean) parport 26336 1 (autoclean) [parport_pc lp] snd-cmipci 20320 1 snd-pcm 65024 0 [snd-pcm-oss snd-cmipci] snd-page-alloc 5228 0 [snd-pcm] snd-opl3-lib 6756 0 [snd-cmipci] snd-timer 15880 0 [snd-pcm snd-opl3-lib] snd-hwdep 5280 0 [snd-opl3-lib] snd-mpu401-uart 3776 0 [snd-cmipci] snd-rawmidi 15072 0 [snd-mpu401-uart] snd-seq-device 4448 0 [snd-opl3-lib snd-rawmidi] snd 32644 0 [snd-pcm-oss snd-mixer-oss snd-cmipci snd-pcm snd-opl3-lib snd-timer snd-hwdep snd-mpu401-uart snd-rawmidi snd-seq-device] soundcore 4164 7 [snd] skipper proc # emerge -s intersync Searching... [ Results for search key : intersync ] [ Applications found : 1 ] * net-fs/intersync Latest version available: 0.9.5 Latest version installed: 0.9.5 Size of downloaded files: 481 kB Homepage: http://www.inter-mezzo.org Description: Intermezzo is an advanced replicating networked filesystem. skipper proc # grep inter /etc/fstab /dev/hdb1 /export/intermezzo intermezzo skipper proc # mount | grep inter /dev/hdb1 on /export/intermezzo type intermezzo (rw) skipper proc # grep CACHE /etc/conf.d/intersync CACHE="/export/intermezzo" skipper proc # ls -l /var/intermezzo-2/ total 4 lrwxrwxrwx 1 root root 18 Aug 8 13:13 cache -> /export/intermezzo -rw-r--r-- 1 root root 724 Aug 8 13:13 intersync-httpd.conf skipper proc # cat /var/intermezzo-2/intersync-httpd.conf Listen *:370 Port 370 User intermezzo Group intermezzo LoadModule alias_module /etc/httpd/modules/mod_alias.so LoadModule cgi_module /etc/httpd/modules/mod_cgi.so LoadModule config_log_module /etc/httpd/modules/mod_log_config.so ErrorLog "/var/intermezzo-2/apache_error_log" LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog "/var/intermezzo-2/apache_access_log" combined PidFile /var/intermezzo-2/httpd.pid <Directory /> AllowOverride None </Directory> <Directory /usr/lib/intermezzo/> Options ExecCGI </Directory> ScriptAlias /cgi-bin/ /usr/lib/intermezzo/ <VirtualHost _default_:*> DocumentRoot "/var/intermezzo-2" </VirtualHost>
1) We should add an intermezzo user and an intermezzo group 2) By default, intersync depends on apache. Dunno if we can remove that dep by doing some configuration tricks. 3) Perhaps a Guide would be in order?
It won't work (last I tried) with the stock kernel module. The kernel module and the userland daemon (intersync) are so tightly knit, they _have_ to be an identical version. I haven't tested it yet, but what you need to do is: 1) Install apache with intersync. Should be a dep. Apache isn't all that big, but it might be nice if it could use something smaller. I'm happy with apache. 2) It uses an absolute path to apache. Find out where it looks (the first time you run intersync it will fail, and tell you where it wants apache) and symlink that to the apache2 binary. 3) Download the intersync binary rpm that corresponds to the version the ebuild installs. Unpack that however you want (probably rpm2targz), and install only the directory in there for /usr/src/intermezzo-<version>. 4) Go into the intermezzo source dir and run "./configure --with-linuxdir=/usr/src/linux". Then run "make", then "make install". This step may have to be done after each kernel build. It will automagically create an Apache config file and start its own apache with that config file. Also, you may want to use mkizofs. If there is a version mismatch, you will get a kernel oops. If not, this might work.
had to change location of intersync executable to /sbin/intersync in /etc/init.d.intersync also had to edit the following lines in /var/intermezzo-0/intersync-httpd.conf: LoadModule alias_module /etc/apache/modules/mod_alias.so LoadModule cgi_module /etc/apache/modules/mod_cgi.so LoadModule log_config_module /etc/apache/modules/mod_log_config.so Then got this far: 72 $ /etc/init.d/intersync start * Starting intersync... Syntax error on line 9 of /var/intermezzo-0/intersync-httpd.conf: Can't locate API module structure `log_config_module' in file /etc/apache/modules/mod_log_config.so: /usr/sbin/apache: undefined symbol: log_config_module ** ERROR **: Cannot start apache with config file /var/intermezzo-0/intersync-httpd.conf: error code 0x100 aborting... /sbin/runscript.sh: line 526: 22055 Aborted start-stop-daemon --start --pidfile /var/run/intersync.pid --startas /sbin/intersync -- $CLIENT_OPTS $CACHE * Failed to start intersync [ !! ] This is with apache 2 BTW.
I hear from our kernel developers that intermezzo is mostly abandonded upstream. At least there has been no new release in almost six months. If you really want me to try to squeeze in some time on this, please repoen the bug. If not, I'll tackle bugs related to more active projects:)