Constant rebooting after power loss

2011-04-01 Thread Marko Lerota
Today one of my home servers lost power two times in a short
period of time. After that, the system just couldn't get up. 
Background checks couldn't get started. The messages was how 
/ /tmp /var etc...had to much errors. And at the end, always 
got this: automatic reboot will start in 15sec.

I went to single user mode, and ran FSCK manually. That solved 
the problem. But the server was down for 2 hours.

This is not the first time that I had to do this. Every now 
and then I have seen this on BSD servers without UPS. 

My question is:

Would it happen if I had ZFS as a file system on all partitions
including root? 

The setup was FreeBSD 8.1, with two disks in raid 1 with gmirror. 

-- 
Marko Lerota
Sent from my Gnus Mailer
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Constant rebooting after power loss

2011-04-01 Thread Marko Lerota
George Kontostanos gkontos.m...@gmail.com writes:

 Not with the same behavior and it depends on what your server is doing at
 the time of the power interruption. 

It was in stage of booting after first power loss. 

 but ZFS is not the solution to your problem. ZFS is not designed to replace
 the needs of a UPS.

I'm just asking if this wouldn't happen if I used ZFS. I read that ZFS
don't need fsck because the files are always consistent on filesystem 
regardless of power loses. That the corruption can occur only if disks
are damaged. But not when power goes down. I'm not planing to buy UPS 
for home use. 

-- 
Marko Lerota
Sent from my Gnus Mailer
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: WANTED: good server tutorial

2011-03-30 Thread Marko Lerota
Jason Hsu jhsu802...@jasonhsu.com writes:

 I'm looking for a good step-by-step quick-and-dirty FreeBSD server
 tutorial for the current stable version.  Most of the tutorials I've
 seen are for outdated versions of FreeBSD.

 My setup is: Internet - Modem - Firewall/server computer - Ethernet
 switch - Other computers

I wrote some tutorial/article about this topic. Feel free to comment.

http://www.techaddictive.com/linux-unix/freebsd-router-firewall-howto/

 
-- 
Marko Lerota
Sent from my Gnus Mailer
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Best way to switch from Linux to BSD

2011-03-30 Thread Marko Lerota
Doug Barton do...@freebsd.org writes:

 Are there any good tutorials for using BSD on the desktop?

 Simple answer, if your only goal is to have a Unix-like desktop,
 you're better off sticking with Linux. FreeBSD is not really focused
 on desktop use, whereas a lot of the Linux distributions are, and if
 you're happy with the ones you are using there is no good reason to
 switch.

I agree with that. I had problems with Flash on AMD64 so sometimes
I couldn't watch Youtube videos :-). And that's not good at all :-). 
I'm now using Linux as a desktop, and I'm not completely satisfied 
with it. But all the servers are on FreeBSD, and I'm completely 
satisfied with this.

-- 
Marko Lerota
Sent from my Gnus Mailer
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Best way to switch from Linux to BSD

2011-03-30 Thread Marko Lerota
Pete French petefre...@ingresso.co.uk writes:

 Am impressed - I didnt realise it was possible at all under amd64! I
 ended up using 'gnash' which doesnt really do the job to be honest,
 but it better than nothing. These days I find the best solution is
 keeping a copy of Windows inside VirtualBox for those moments
 when I need stuff that freeBSD can't do (primarily talking to HP iLo's
 these days, since I can't make Java work in Firefox)

Now you reminded me how pissed I was as a sysadmin :-). I had to deal
with IBM RSA's and Dell DRAC's. They all use Java. Use to hate everything
that came with Java :-). 

-- 
Marko Lerota
Sent from my Gnus Mailer
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Upgrading to 7.0 - stupid requirements

2008-03-19 Thread Marko Lerota
Kris Kennaway [EMAIL PROTECTED] writes:

 Are you connected via a modem or something?  2-3 days to download some
 packages cannot be right if you have a decent internet connection.

No I have 5Mbps link. It's not the link issue. It's the compilation
time from ports because there are only small portion of precompiled 
packages. And some of my apps need special switches like to tell 
PHP to build module for apache. I cant do that just from portupgrade -faP.

If you use BSD system only for few apps like PHP/Apache/MySQL it would 
be easy. But if you have lots of stuff for desktop machine (gnome,xfce etc.) 
it's very painful, long, and waste of time. (I don't have x386 33MHz CPU) 

This thing should be solved. I liked the way that my OS have independance
from ports. So no metter what I do with ports, my OS and his apps will work.
And If I upgrade the OS I dont want to recompile ports for that.
If this thing can be solved (I'm not programmer so I don't know) I can
donate some amount of $ for development. I think that this would make
lots of people happy.

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Upgrading to 7.0 - stupid requirements

2008-03-18 Thread Marko Lerota
Kris Kennaway [EMAIL PROTECTED] writes:

 Then the servers. Why should I reinstall all my databases and such?
 I always
 liked that FreeBSD base (OS) is separated from packages. And no
 matter what I do with the packages, my OS will always work. I don't
 want dependency
 hell like in Linux. Now you are telling me that my database might not work
 after upgrade to a new version. Is that it?

 First, try to relax.

Sorry, but I'm pissed off now, not relax any more.

 portupgrade -faP requests to reinstall everything from precompiled
 packages.  It will only fall back to compiling them locally if the
 package is unavailable (e.g. for legal reasons).

It passed two days from portupgrade -faP, and it didn't finished yet.
To be worse, I have to do it again because the PC had to be rebooted.
So in the next 2-3 days I can sit with my PC and wait with him to 
finish the upgrade. It will be three days because of [EMAIL PROTECTED]@[EMAIL 
PROTECTED]
And I have to pray the god that I don't have the power loss.
Now apache and acroread doesn't work any more and I'm afraid that 
I'll find some other stuff that don't work too.

So can anyone tell me this is not stupid??? Reinstalling all 
applications because of upgrade? This can be called new 
installation. Not upgrade.

Now I'm thinking that It would be much easier that I backup my files,
databases and other stuff and do fresh installation. But why
So I can do the same thing when 8_0 comes out? 

This is the worst thing that I found about FreeBSD for now.
This have to be changed or fixed somehow, because the upgrade
is not possible if you have lots of ports installed, and 
certainly can't be called upgrade!

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: broken MBR

2008-03-14 Thread Marko Lerota
Torfinn Ingolfsen [EMAIL PROTECTED] writes:

 But unless the OP wants the specific boot loader from and MS-DOS disk,
 he can get the same effect _without_ usinf non-FreeBSD tools by using 
 fdisk -B diskname

I used the FreeBSD livefs fixit mode and executed this 

fdisk -B /dev/ad4 
it complained that no geom found but it worked 

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


broken MBR

2008-03-12 Thread Marko Lerota
Insted of F1 I get F-| on boot menu and system won't boot.
How do I remove FreeBSD boot manager from MBR? I didn't 
find any docs in man fdisk or boot0cfg.

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Upgrading to 7.0 - stupid requirements

2008-02-28 Thread Marko Lerota
In http://www.freebsd.org/releases/7.0R/announce.html says 

Updating Existing Systems

 An upgrade of any existing system to FreeBSD 7.0-RELEASE constitutes 
 a major version upgrade, so no matter which method you use to update 
 an older system you should reinstall any ports you have installed on 
 the machine. This will avoid binaries becoming linked to inconsistent 
 sets of libraries when future port upgrades rebuild one port but not 
 others that link to it. This can be done with:

# portupgrade -faP

etc...

Why!!! Do you know how much time I have to spend with my PC to reinstall
all of this programs from ports? Only openoffice takes one day! And where 
is Gnome and such...There must be other way...I would not reinstall my 
packages ;)

Then the servers. Why should I reinstall all my databases and such? I always
liked that FreeBSD base (OS) is separated from packages. And no matter what I 
do with the packages, my OS will always work. I don't want dependency
hell like in Linux. Now you are telling me that my database might not work
after upgrade to a new version. Is that it?

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.3 or FreeBSD 7.0

2007-11-15 Thread Marko Lerota
Jimmy Lim [EMAIL PROTECTED] writes:

 But if you are using 1 server for production use FreeBSD-6.3-R.

 My 2 cents for FreeBSD-7.0-R.

For my personal servers I'll jump to 7.0-R, but for some customers,
will wait for 7.1-R. 

TNX

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 6.3 or FreeBSD 7.0

2007-11-14 Thread Marko Lerota
I see that 6.3 and 7.0 is comming. Now I'm using 6.2-RELEASE for 
my servers. To what should I upgrade? Which of them will be stable 
or production release?

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: System hangs up every day

2007-11-06 Thread Marko Lerota
Дмитрий Комалеев [EMAIL PROTECTED] writes:

 I have written already, that I tried to plug a system HDD to another sever 
 with the same configuration; on the new platform the system hanging didn't 
 stop. The  RAID controller remained the same, but it has the own error log 
 and it is clear.


 em0: Intel(R) PRO/1000 Network Connection Version - 6.6.6 

:))

  options MP_WATCHDOG
  options SW_WATCHDOG

Try to compile the GENERIC SMP kernel with all ALTQ options but without 
watchdog options. Maybe this will work. 

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


CARP make panics after upgrade

2007-05-16 Thread Marko Lerota
From FreeBSD 5.4 to FreeBSD 6.2. 

I had two old FreeBSD 5.4 servers, and when I upgraded one of them 
CARP was crashing that upgraded machine which was in backup mode. 
I had to shutdown the carp interface so I can work. Later I figured 
out that in new versions of FreeBSD configuration was changed, so 
when I switched to new configuration everything worked fine.

I think it's worth mentioning it here. 

Here is the old config that panics, man pfsync(4) from 5.4

cloned_interfaces=carp0 carp1
network_interfaces=lo0 sis0 sis1 sis2 carp0 carp1 pfsync0
ifconfig_sis0=10.0.0.254/24
ifconfig_sis1=192.168.0.254/24
ifconfig_sis2=192.168.254.254/24
ifconfig_carp0=vhid 1 pass foo 10.0.0.1/24
ifconfig_carp1=vhid 2 pass bar 192.168.0.1/24
ifconfig_pfsync0=up syncif sis2

And here is the new config that doesn't

network_interfaces=lo0 sis0 sis1 sis2
cloned_interfaces=carp0 carp1
ifconfig_sis0=10.0.0.254/24
ifconfig_sis1=192.168.0.254/24
ifconfig_sis2=192.168.254.254/24
ifconfig_carp0=vhid 1 pass foo 10.0.0.1/24
ifconfig_carp1=vhid 2 pass bar 192.168.0.1/24
pfsync_enable=YES
pfsync_syncdev=sis2


-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


question about CARP

2007-05-16 Thread Marko Lerota
In handbook at:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/carp.html
is written that two machines should have different VHIDs.

But man page of carp says VHIDs should be the same. 
Which is wright configuration? From handbook or from man page?

6.2-RELEASE-p4

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: question about CARP

2007-05-16 Thread Marko Lerota
Scott Ullrich [EMAIL PROTECTED] writes:

 Each shared CARP IP should have the same VHID.  The example in the
 handbook lists two CARP IP addresses.

Now I get it. I didn't saw different IP's. 

TNX

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Clamav-90_2 Lockup with freebsd 6.2

2007-03-19 Thread Marko Lerota
Martin Blapp [EMAIL PROTECTED] writes:

 Hi,

 I just fixed those issues with the port.

 Thanks for reporting !

So we can safely use libpthread.so again? No need to use libmap.conf?

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Clamav-90_2 Lockup with freebsd 6.2

2007-03-08 Thread Marko Lerota
Renato Botelho [EMAIL PROTECTED] writes:

 I found the problem, a bad REINPLACE_CMD was changing wrong var on configure
 scripts, don't respecting PTHREAD_LIBS.

 It's fixed now on 0.90_3.

No, It's not. Today I added a new server with fresh clamav-0.90_3
package. Sockstat again started to jump to the sky. 

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Clamav-90_2 Lockup with freebsd 6.2

2007-03-01 Thread Marko Lerota
Chris [EMAIL PROTECTED] writes:

 I dont use simscan but use clamav for scanning emails passed from
 exim.  I noticed that cpu usage went through the roof and there was
 dozens of clamd in sockstat.  On a dual xeon it did cause some smtp
 lag but on weaker specs it caused the smtp to completely backlog and
 stopped emails arriving.

 I downgraded back to 0.88.7 again and all is fine again.

Dozens? Lucky you. I had 600 of them. OK, now we know that simscan 
is not the problem.

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Clamav-90_2 Lockup with freebsd 6.2

2007-02-28 Thread Marko Lerota
Martin Blapp [EMAIL PROTECTED] writes:

 Even with libthr the CPU usage is still far too high ...
 I'm currently looking at the code.

Take a look at this post. I also have CPU usage problems and simscan 
installed. 

http://www.mail-archive.com/toaster@shupp.org/msg04119.html

 Re: [toaster] clamav 0.90 patches up

 Tom Collins
 Fri, 16 Feb 2007 11:33:52 -0800

 On Feb 15, 2007, at 2:12 PM, Rick Macdougall wrote:

  One thing to keep in mind, if you are not using the :attach in simcontrol, 
 do NOT enable rip mime in simscan as that will cause clamdscan to basically 
 scan the message and the attachment twice.

  Clamav does a very good job of scanning encoded content and attachments 
 all by itself. No need to duplicate effort. 

 I recently took a look at ripmime to see if it had a setting that would 
 simply 
 dump the attachment filenames without actually creating the attachments. It, 
 unfortunately, does not. I haven't looked at the source to see if it would be 
 possible to build a modified version to accomplish my goals or not.

 I guess I could modify my simscan to run ripmime, look at the attachment 
 filenames, and then delete them all before calling clamav. OR, I could 
 simply pass the message file to clamav instead of having it scan the 
 entire directory.

 In the case of large attachments, it's a big waste of CPU cycles to scan 
 the entire message twice. I might just skip attachment blocking at this 
 point, 
 and hope that clamav will catch all of the scr and pif crap.

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stable on Blade server

2007-02-27 Thread Marko Lerota
Martin [EMAIL PROTECTED] writes:

 We're 100% FreeBSD-only and i was looking to buy IBM blade servers: can
 anyone reccomend any of them? models? particular hw/firmware/misc

If you use FreeBSD don't look upon IBM blades at all. I've installed few 
freebsd 5.4 on IBM HS20 blades. If you need console, the only way to 
get there is through java web interface that sucks, brakes and crashes 
constantly. Because the keyboard is not supported you have to use it. 
Everything else also sucked. We had two blade chassis with 28 blade servers
and I have never been so frustrated like I was with them and IBM people 
that did not solve our problem. 

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Downgrade to 5.5

2006-11-09 Thread Marko Lerota
Albert Shih [EMAIL PROTECTED] writes:

 Well after this thing I want to downgrade to 5.x. Can I use this process:

   I make buildworld  buildkernel on a FreeBSD 5.x server. 
   I make a tar.gz of /usr/obj and /usr/src
   I tranfert this two tar.gz on my 6-stable server.
   Untar on right place
   make installkernel on /usr/src from 5.x
   reboot
   make installworld.

I tried regularly like it was upgrade but it was downgrade from 6-STABLE 
to 5.4-RELEASE and it didn't worked.

 I don't really care if the 6-stable-/usr/local/bin running on my downgrade
 server. Because this server running only nfsd.

I had the same problems, it happened only if you have QUOTA option in kernel. 
Other-ways it worked OK. They said it would be fixed long time ago, but they 
didn't.

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Downgrade to 5.5

2006-11-09 Thread Marko Lerota
Albert Shih [EMAIL PROTECTED] writes:

 I tried regularly like it was upgrade but it was downgrade from 6-STABLE 
 to 5.4-RELEASE and it didn't worked.

 Event you build on a different server (a server running 5.x) ?

No, on the same. It was disaster. It was in pre production :)
Easier and quicker would be a clean installation. Down time could 
be only 30min. With downgrade you only might get in trouble. 

 I don't running QUOTA

FreeBSD was once known for good NFS performance :( 
I had to downgrade two clusters with nfs to 5.4 Release

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Downgrade to 5.5

2006-11-09 Thread Marko Lerota
Albert Shih [EMAIL PROTECTED] writes:

 WellI known but I can do that now. Because I can reboot the server, but
 I can re-install (I don't have access to the console).

Good luck to you. It's very possible that after reboot you don't get ssh 
prompt :) Most servers have console and remote cdrom through java. IBM call 
it RSA adapter, HP and Sun ILO(M) cards. Maybe the server have these cards. 

 FreeBSD was once known for good NFS performance :( 

 Yes...the same server running with 0 crash during 3.5 years in same
 configuration. 

 After I pass to 6.x (01/2006) I loose the count of crash

 FreeBSD is the best NFS server (and best OS I known)...long time ago 
 :-((

 Personnaly I prefer to have a very stable NFS server, and I don't really
 care to have wpa or something like that.

Someone said on this list, that priority now are new features, so developers
have no time to fix bugs. I prefer stability over the new features also, and 
most of the people on this list I think. That's one of the reasons that 
I escaped from Penguins.

 I'm not developper, then I don't known the problem of FreeBSD, but I'm very
 sad to see the situation of 6.x (em problem, watchdog, crash etc...). Now
 I'm looking of OpenBSD

I'm not developer also, but I think that OpenBSD and FreeBSD developers
share the code. At least for scsi controllers and ethernet cards. So it's 
possible to have the same problem on OpenBSD. Could someone enlighten me?

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: carp0 interface goes down on 6.2-PRERELEASE

2006-10-12 Thread Marko Lerota
Ari Suutari [EMAIL PROTECTED] writes:

 carp0: flags=49UP,LOOPBACK,RUNNING mtu 1500
 inet 192.168.5.59 netmask 0xff00
 carp: BACKUP vhid 55 advbase 1 advskew 0
 + sleep 5
 + ifconfig carp0
 carp0: flags=8LOOPBACK mtu 1500
 carp: INIT vhid 55 advbase 1 advskew 0

 See, here the interface is up, but after 5 seconds it has gone
 down. Could anybody give a hint why this happens ? There are
 messages on console about promiscuous mode being enabled/disabled,
 but nothing else.

I think the interface didn't get sync from other carp interface,
so it doesn't know that he is the MASTER or BACKUP, and because 
of that goes into the INIT state. 

Setup at least 2 interfaces like in this example and try it out.

Example

So on cluster1 put this in rc.conf

 NETWORK ###
defaultrouter=10.0.0.1
hostname=cluster1.somehost.net
ifconfig_bge0=inet 10.0.0.101  netmask 255.255.255.0
ifconfig_bge1=inet 192.168.0.1 netmask 255.255.255.0

cloned_interfaces=carp0   
network_interfaces=carp0 pfsync0 bge0 bge1 lo0  
ifconfig_carp0=vhid 1 pass ugly_password 10.0.0.103/24  
ifconfig_pfsync0=up syncif bge1  
pfsync_enable=YES
pfsync_syncdev=bge1


on cluster2 put this in rc.conf 

 NETWORK ###
defaultrouter=10.0.0.1
hostname=cluster2.somehost.net
ifconfig_bge0=inet 10.0.0.102  netmask 255.255.255.0
ifconfig_bge1=inet 192.168.0.2 netmask 255.255.255.0

cloned_interfaces=carp0  
network_interfaces=carp0 pfsync0 bge0 bge1 lo0 
ifconfig_carp0=vhid 1 pass ugly_password advskew 100 10.0.0.103/24 
ifconfig_pfsync0=up syncif bge1 
pfsync_enable=YES
pfsync_syncdev=bge1


-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: carp0 interface goes down on 6.2-PRERELEASE

2006-10-12 Thread Marko Lerota
Vivek Khera [EMAIL PROTECTED] writes:

 On Oct 12, 2006, at 1:20 PM, Marko Lerota wrote:

 I think the interface didn't get sync from other carp interface,
 so it doesn't know that he is the MASTER or BACKUP, and because
 of that goes into the INIT state.

 Shouldn't it then move to MASTER since the other server could
 possibly be dead?

Yes, but if interface had _never_ received any pfsync packet,
and sysctl is set to net.inet.carp.preempt=0 ?
Maybe it's because of that. Don't know really. Documentation for 
this is not so good. Someone who knows this code and how this really
works, should write handbook like documentation. Clusters are 
always complex, and for that, docs should be *very* detailed.
If someone does that, I'll buy him a beer. 

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: carp0 interface goes down on 6.2-PRERELEASE

2006-10-12 Thread Marko Lerota
Marko Lerota [EMAIL PROTECTED] writes:

 Shouldn't it then move to MASTER since the other server could
 possibly be dead?

 Yes, but if interface had _never_ received any pfsync packet,
 and sysctl is set to net.inet.carp.preempt=0 ?
 Maybe it's because of that. Don't know really. Documentation for 
 this is not so good. Someone who knows this code and how this really
 works, should write handbook like documentation. Clusters are 
 always complex, and for that, docs should be *very* detailed.
 If someone does that, I'll buy him a beer. 

I meant: 
Maybe first they have to talk to each other and say: 
OK, I will be the master first, and you wait. And if I don't send 
you any more sync packets, then you should be in charge :)

If they didn't agree on that, and don't know about each other, that 
should be the INIT state. Thats the only reasonable thing that I could 
think of, because there is no such INIT state in documentation [EMAIL 
PROTECTED]@#!@

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PERC trouble?

2006-09-25 Thread Marko Lerota
Paul Saab [EMAIL PROTECTED] writes:

 this was fixed after 6.1-RELEASE.  You need to grab the driver from -stable.

What does it mean? That I could run 6.1-RELEASE but have some drivers
from -stable or -current?

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Critical Bug in 6.1 (nfs server bad performance)

2006-06-06 Thread Marko Lerota
Kris Kennaway [EMAIL PROTECTED] writes:

 On Fri, Jun 02, 2006 at 03:17:46PM +0200, Marko Lerota wrote:
 After some testing I saw that nfs server with 6.1 release or stable 
 have problems with CPU performance. 
 
 I had 2 servers. One 5.4 and one 6.1. The servers are identical in 
 configuration and only have nfs servers running. 
 If you try to copy something to 6.1, CPU gets abnormal and load averages 
 gets to 2,5 to 6 or more and thus kill the server. On 5.4 it's OK. Load 
 averages is not over 0.50 ever. 

 Please review the archives for the patch that is being reviewed.

 Kris

Sorry, now I saw the post from Tue May 23. I also have the options QUOTA
in kernel config. Why it's not in the errata html page?

http://www.freebsd.org/releases/6.1R/errata.html

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Critical Bug in 6.1 (nfs server bad performance)

2006-06-02 Thread Marko Lerota
After some testing I saw that nfs server with 6.1 release or stable 
have problems with CPU performance. 

I had 2 servers. One 5.4 and one 6.1. The servers are identical in 
configuration and only have nfs servers running. 
If you try to copy something to 6.1, CPU gets abnormal and load averages 
gets to 2,5 to 6 or more and thus kill the server. On 5.4 it's OK. Load 
averages is not over 0.50 ever. 

-- 
One cannot sell the earth upon which the people walk
Tacunka Witco 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]