Re: [Vserver] Replication

2004-10-20 Thread Konrad Korzeniowski
Mike Fischer wrote(a):
Thanks a bundle guys!
I didn't know of drbd until today. Looks neat to me, maybe just what
I need to rest easy.
I'll probably go for rsync in the short term and plan to drbd as much
as possible in the long term.
Are there any issues running a vserver over a drbd'd filsystem?
Or how about making the whole /vserver partition drbd'd?
Anyone ever try something like that?
As I said - I did :)
Whole vservers over drbd partitions.
rgrds.,
KK
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] eth0 + dummy0

2004-09-21 Thread Konrad Korzeniowski
Brian napisa(a):
I cannot understand.. 

I have a Hostsystem with 

eth0 = Internet address
dummy0 = Privat address
1 Vserver with Privat address bind on dummy0
2 Vserver with Internet and Privat address.
its running well, fast and stable. 

yesterday I install Vserver number 4 with Internet and Privat address too. It's running well too.. I install apache and mail ... I go to the Webinterface of my software in this new vServer. everything running well. 5 minutes later the 4. Vserver are offline .. I try to ping but nothing is go .. restart vserver ...  nothing changed... 

I go to the Host system and ping the IP ..
ping 83.xxx.yy.zz
PING 83.xxx.yy.zz (83.xxx.yy.zz): 56 data bytes
64 bytes from 10.49.0.1: icmp_seq=0 ttl=64 time=0.0 ms
64 bytes from 10.49.0.1: icmp_seq=1 ttl=64 time=0.0 ms
64 bytes from 10.49.0.1: icmp_seq=2 ttl=64 time=0.0 ms
64 bytes from 10.49.0.1: icmp_seq=3 ttl=64 time=0.0 ms
10.49.0.1 is the dummy0 of the host system .. 

why !!??
when the server are down, it's the same .. 

I don't know whats rong .. 
My solution was changing order of IP addresses in config file
(IPROOT) - first one should be public address. But my problem occurs
only with such applications as razor2, pyzor... with iptraf I've
discoverd that tcp packets with private source address are trying
to get out trough 'public' interface (ip_forwarding = 0, no iptables)
Looks like this setting influences somehow routing - is it possible?
(2.4.26-vs1.27)
pzdr.,
Konrad
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] HA+Vserver [Was :(no subject)]

2004-08-04 Thread Konrad Korzeniowski
Lucas Albers napisa(a):
Could you post all your conf files:
drbd.conf, haresource and any changes you made to your vserver pre startup
or post shutdown script?
Your vserver.conf or vserver.sh files if you made any big changes.
Thanks.
Between the two of you I'll get enough information to write it up in english.
Description of my configuration (poor English):
-. two PCs with 2 NICs each (one 100Mbit, one 1000Mbit).
-. I've used Debian (unstable).
-. partitioned HDD: 8GB node OS, swap, 14GB for vserver #1(V1),
   14GB for vserver #2 (V2)
-. configured NICs:
   on external (100Mbit) public IP - connected through switch to router,
   on internal (1000Mbit) private IPs
 - crossover cabel connecting nodes.
-. installed:
http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.26.tar.bz2
http://www.13thfloor.at/vserver/s_release/v1.27/patch-2.4.26-vs1.27.diff
http://www.13thfloor.at/vserver/s_release/v1.27/util-vserver-0.29.4.tar.bz2
and from debian packages (apt-get):
apt-get install ssh gcc g++ less wget tar bzip2 patch make autoconf \
automake libtool flex bison gdb kernel-package \
libncurses5-dev debhelper initrd-tools genromfs e2fslibs-dev \
debootstrap heartbeat drbd drbd-source
-. compiled kernel with vserver patch applied
   with option: Virtual Root device support (NEW) checked.
-. compiled drbd module using: make-kpkg modules_image
-. compiled  installed util-vserver
   cd /usr/src/util-vserver-0.29.4
   ./configure --prefix=
   make; make install
-. configured drbd on both nodes (D1 and D2) (attached file drbd.conf)
   and made ext3 partition on top of two devices (drbd0/nb0  drbd1/nb1)
-. two folders created (on both nodes): /vservers/V1 and /vservers/V2
-. changed /etc/fstab (both nodes)
   /dev/nb0/vserver/V1 ext3noauto  0 0
   /dev/nb1/vserver/V1 ext2noauto  0 0
-. mounted (D1) drbd0 on /vservers/V1,
   mounted (D2) drbd1 on /vservers/V2
-. installed vservers using slightly modified newserver.sh script
   for debian (attached)
-. set up /etc/heartbeat/ha.cf (attached)
-. added hacluster user - missed during deb package installation:
   adduser --system --shell /bin/false --no-create-home hacluster
-. created links:
   ln -s /etc/init.d/drbd /etc/heartbeat/resource.d/datadisk
   (this is for HA - 'datadisk' is a must)
   ln -s /sbin/vserver /etc/init.d/vserver
   (for HA too)
   ln -s /sbin/util-vserver-vars /etc/init.d/util-vserver-vars
   (for /etc/init.d/vserver above)
-. after 3 days of digging: changed every 'not running' in /sbin/vserver
   to 'down'. 'not running' was confusing heartbeat while its grepping
   'vserver name status' for 'running' 8-O.
-. configured /etc/heartbeat/haresources (attached)
   where:
   d1 - is a node name of cluster
   193.x.x.2/28/eth0 - is a public IP of V1
   IPaddr::10.10.10.100/24/eth1 - is a private IP used by v1 daemons
 as loopback, it can't be lo because when d1 is hosting both
 vservers it can be occupied only by one of them. I had to
 reconfigure each daeomon (postfix, amavis, etc) to use
 this as loopback.
   datadisk::drbd0 - to mount drbd0 as 'primary'
   vserver::V1 - to start vserver after all previous...
-. removed some stop scripts in /etc/init.d/rc6.d
   rm -f !K25hwclock.sh
   rm -f S90reboot
-. creaded dir (I can't remember why - but for vservers):
   mkdir -p /var/lock/subsys/
-. entered vserver V1  V2 ... configured as mail servers
   (postfix, amavisd, courier-pop3, clamav, sals, mysql...)
I think thats all.
Hope will help someone,
once again sorry for poor English,
rgrds.,
Konrad
BTW. Someone knows why and in what situation are created
 /proc, /dev folders inside of vseerver folder...
 while it is not mounted? How to prevent this creation?
resource drbd0 {
  inittimeout = -1
  protocol = C
  fsckcmd  = /bin/true

  disk {
do-panic
disk-size = 1400k
  }


  net {
# -max has to be larger than -min, obviously
sync-min= 500k
sync-max= 1M# maximal average syncer bandwidth
tl-size = 5000  # transfer log size, ensures strict write ordering
timeout = 60# unit: 0.1 seconds
connect-int = 10# unit: seconds
ping-int= 10# unit: seconds
ko-count= 4 # if some block send times out this many times,
# the peer is considered dead, even if it still
# answeres ping requests
  }

  on d1 {
device  = /dev/nb0
disk= /dev/hda3
address = 192.168.0.101
port= 7788
  }

  on d2 {
device  = /dev/nb0
disk= /dev/hda3
address = 192.168.0.102
port= 7788
  }
}

resource drbd1 {
  inittimeout = -1
  protocol = C
  fsckcmd  = /bin/true

  disk {
do-panic
disk-size = 1400k
  }


  net {
# -max has to be larger than -min, obviously
sync-min= 500k
sync-max= 1M# maximal average syncer bandwidth

Re: [Vserver] [Survey] Vserver Hosting

2004-05-26 Thread Konrad Korzeniowski
Franck napisa(a):
The questions are in french because i'm french :) and english are not the only 
language all around the world.
You ARE kidding, right?
If not:
1. Why don't you ask in french?
2. This list is in english...
3. My knowledge of english is poor, but my french is worse, everythig 
because I'm IT guy... which is reading lot of documentation written 
mostly in TADA english :-)

4. I'm from Poland - I would not even try to post some message or survey 
in my language... I know, I know french is much wider spoken, and for 
some people (especially french) is the only true language ;-)

Don't bother changing your survey - it will have wide response.
rgrds.,
Konrad
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver