Re: RAID5 on FreeBSD 6 or 7

2008-12-01 Thread Nejc Skoberne
Hey Peter,

 Is it vinum or gvinum (geom8) that is the utility to create a RAID5 volume..?
 Things like that gvinum lacks the 'stop' command etc.. makes me think
 that it's not production ready or that the source code has not matured enough.

actually gvinum is production-ready, it only doesn't implement all the features 
of
vinum. I've been using since 2006 and it works, but it is slow. I just played
with it this weekend again, you can check
http://nejc.skoberne.net/2008/11/gmirror-and-gvinum-on-the-same-drives/.

However, as I said, gvinum is slow. I also run graid5 and some say it is pretty
stable. I've been running it for a year on a non-production server and it works
for me, but haven't seen it in action, when a drive fails or something. It is
fast, though. See it's page on Wikipedia for more info. I'd use it more if it
was part of official FreeBSD release, but for now it is only available as a
patch (AFAIK).

Bye,
Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5 TB server

2008-11-28 Thread Nejc Skoberne
Hey,

 if it has to be single volume i would use gstripe, or if it should be
 protected somehow - graid3 or graid5, and use UFS.

geom_raid5 is stable? If yes, how come it is not included in FreeBSD yet?

Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: RAID 5 - serious problem

2008-10-15 Thread Nejc Skoberne
Hello,

 the drives to the other machine and try to make them online again. Do you
 think I should try?

If I were you, I would first buy/get a XXX GB SATA drive, create a filesystem 
there
and copy all three disks block-by-block as three separate files (which will be
the size of the disks). This way you'll still have the backup of your screwed up
drives somewhere in case something goes even more wrong.

However, I don't think your data is *physically* lost. I am almost sure that it
is still on that drives, only the metadata could be fscked up. Now how to get 
the
data back is another thing. In worst case scenario you could analyze the
specification of the metadata format for you controller and then write a C 
program
which would somehow put the bits together again using syscalls.

Bye,
Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD reference installations?

2008-10-14 Thread Nejc Skoberne
Hello,

is there any list of FreeBSD reference installations? Like a list of big 
companies
that use FreeBSD as their core servers?

Thanks,
Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sharing Outlook calendars via FreeBSD?

2007-07-16 Thread Nejc Skoberne

Hello,

I am using a FreeBSD 5.3 server in a company with approx. 30
users. There is also a Samba server as a PDC and a mail server.

The users would like to share their Outlook calendars. What
are my options regarding having FreeBSD as a platform to do this?
OpenGroupware is just for Linux and I can't find any
documentation how to put it on FreeBSD (the linux-opengroupware
port expired last year).

Thanks,
Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Restarting DSL connection without reboot?

2006-11-16 Thread Nejc Skoberne

Dear community,

I am having continuous problems with ADSL connections and FreeBSD servers.
I am running a few dozens of FreeBSD boxes and today in the morning a lot of
them were without internet connectivity. Looks like our provider had some
maintenance work or something.

What happened: the tech guy at one of the customers first rebooted the server
2 times and then he called me. We tried together:

1. first we tried to ping an internet IP address and the reply was No
   buffer space available. After that we did killall -9 ppp until all the
   ppp processes died. After that we ran /etc/rc.d/ppp-user (it's a 5.3 box)
   again but the connection wouldn't come up (no route to host, when pinging).

2. After reboot everything worked as it should.

I really don't like to reboot servers as soon as they lose DSL connectivity.
Is there any proper way to reset the connection (network card?) so that the
connection restores without a reboot?

Previously I've been running Linux on these servers and at that time I didn't
have these problems - a reset of modem would always resolve the problem.

Mostly I am using rl network cards, if that's an helpful info, but somewhere
I also have sis and others.

My ppp.conf:

default:
 set log Phase Chat LCP IPCP CCP tun command
 set ifaddr 10.0.0.1/0 10.0.0.2/0
SiOL:
 set device PPPoE:rl0
 set authname user
 set authkey pass
 set dial
 set login
 set redial 5 0
 add default HISADDR

My ppp.linkup:

MYADDR:
 !bg sh -c /sbin/pfctl -f /etc/pf.conf

My rc.conf (ppp entries):

ppp_enable=YES
ppp_profile=SiOL
ppp_mode=ddial
ppp_nat=NO

Thanks for your help,
Nejc


smime.p7s
Description: S/MIME Cryptographic Signature


Re: State of gvinum RAID-5

2006-11-13 Thread Nejc Skoberne

Hi,


I tried gvinum RAID-5 with a 5-Stable around the time when 5.1 or 5.2
was released (afair) and back then it basically sucked big time. Raid
worked as long as nothing failed, but reconstructing a drive was
somewhere between very painful and not possible.


I agree.


Now I will have to upgrade hardware soon, which means I could switch
from NetBSD (and Raidframe) to FreeBSD (with gvinum) again. I would
like to because NetBSD seems to have some kind of memory leak in
connection with Samba and large or many files, but I'd rather have a
somewhat unstable Samba than an unstable Raid, so what's the state of
affairs?


I have been running gvinum RAID-5 on a ProLiant machine for 6 months now
and I hadn't had any problems so far. First I installed FreeBSD 5.4 at
that time but the RAID array crashed when there was an unclean reboot.
After that I installed FreeBSD 6.1 and for now (knock knock knock)
everything looks to work fine. However, I hadn't had a disk crash yet so
I can't tell what exactly happens when one of the disks dies.

I also run Samba and NOD32fac viruschecking on the same server and it
works just great.

HTH,
Nejc


smime.p7s
Description: S/MIME Cryptographic Signature


Copying to external USB2 disk causes panic

2006-11-03 Thread Nejc Skoberne

Hi,

I just installed FreeBSD 6.1 to a Celeron 2.4GHz, 1GB RAM. I also attached
a USB2 external disk drive (motherboard uses SiS chipset), because I would
like to perform daily backups to this disk. It is a remote server and I am
unable to look at the console - I can only provide dmesg output:

[at boot time:]

da0 at umass-sim0 bus 0 target 0 lun 0
da0: Maxtor 6 Y080P0 YAR4 Fixed Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 78167MB (160086528 512 byte sectors: 255H 63S/T 9964C)

[...nothing special until here:]

g_vfs_done():da0s1[WRITE(offset=65536, length=2048)]error = 5
g_vfs_done():da0s1[WRITE(offset=6144000, length=8192)]error = 5
g_vfs_done():da0s1[WRITE(offset=11176247296, length=16384)]error = 5
g_vfs_done():da0s1[READ(offset=11368939520, length=16384)]error = 5
g_vfs_done():da0s1[WRITE(offset=65536, length=2048)]error = 5
g_vfs_done():da0s1[WRITE(offset=6144000, length=8192)]error = 5
g_vfs_done():da0s1[WRITE(offset=11561631744, length=16384)]error = 5
g_vfs_done():da0s1[READ(offset=11368939520, length=16384)]error = 5
panic: softdep_deallocate_dependencies: dangling deps
Uptime: 8h23m52s
GEOM_MIRROR: Device gm0: provider mirror/gm0 destroyed.
GEOM_MIRROR: Device gm0 destroyed.
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xb, scsi status == 
0x0
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds - press a key on the console to abort

This happened after 1.8 GB of data was already copied to the external disk
drive. Oh, and I am compressing the backup files on the fly.

Any ideas what is causing this?

Thanks.
Nejc


smime.p7s
Description: S/MIME Cryptographic Signature


Memory information relations

2006-10-31 Thread Nejc Skoberne
Hi,

I would like to know what are exact relations between these 3 memory
information printouts:

top:

 Mem: 157M Active, 127M Inact, 60M Wired, 25M Cache, 60M Buf, 125M Free
 Swap: 998M Total, 998M Free

sysctl -a | grep Mem:

 Virtual Memory: (Total: 78781K, Active 798692K)
 Real Memory:(Total: 497676K Active 174300K)
 Shared Virtual Memory:  (Total: 28884K Active: 22684K)
 Shared Real Memory: (Total: 13768K Active: 10812K)

sysctl -a | grep mem:

 hw.physmem: 527667200
 hw.usermem: 453668864
 hw.realmem: 536608768

So I would like to understand exactly which number is the sum of other
numbers here.

I have already read this paper: http://www.absolutebsd.com/AbsoluteBSD18.pdf
but still I don't even know exact relations between the numbers in top 
printout.

Thanks,
Nejc


smime.p7s
Description: S/MIME Cryptographic Signature


Page fault while in kernel mode

2006-09-12 Thread Nejc Skoberne
Hi,

I am running 5.3-RELEASE on a P4 2.4GHz with 512 MB RAM. It is a normal PC 
hardware
not a real server hardware.

Today in the morning (while I was away from the console) kernel panicked and the
output was Page fault while in kernel mode (the guy who wrote that down didn't
write other information). The box was rebooted and the error appeared again in 
about
3 minutes. After second reboot everything seems to be back to normal.

The load on this machine is quite low, about 0.1; it runs mail server, serves 
some
web pages and does NAT via pf.

Finally the question: what is more likely: that it is hardware which is causing
troubles or that an upgrade to FreeBSD 5.5 (or eventually 6.1) would help? Or is
there a third possibility?

Thanks,
Nejc


smime.p7s
Description: S/MIME Cryptographic Signature


No buffer space available error

2006-07-18 Thread Nejc Skoberne
Hello,

I've been trying to solve this problem by myself for a long time now, but no 
luck.
I run a few dozens of FreeBSD 5.3/5.4 machines, which serve as routers, NAT 
boxes,
Apache, Postfix, OpenVPN, ... servers. Most of them are low-cost PC machines 
since
they are usually deployed to SOHO environments and the loads are rather low.

I am having problems with the No buffer space available error like this:

  Jul 18 08:49:36 Router openvpn[661]: write UDPv4: No buffer space available 
(code=55)

so this is obviously when OpenVPN tries to send UDP packets. And also like this:

  Jun 23 06:27:38 Router pdns[2182]: Unable to send a packet to our recursing
  backend: No buffer space available

when PowerDNS DNS server tries to do some recursive work. I have been searching 
Google
for a solution and I found out that the error should appear when the mbuf (or 
sfbuf?)
is full and that I can print the current buffer status with 'netstat -m'.

Because the error would show up (and not only show up, but also block the 
network
operability for that server) at random times, I set up the swatch daemon on 
all those
servers, so that as soon as the error is logged in messages, I run this command:

#!/usr/local/bin/bash
LOG=/var/log/swatch.log

datum=`date`
echo == $datum ===
sockstat  $LOG
echo   $LOG
netstat -n -a  $LOG
echo   $LOG
netstat -m  $LOG
echo   $LOG
ps ax  $LOG
echo   $LOG

Even though the log was growing as I assumed, I couldn't find anything 
particulary
interesting, because the netstat -m command issued by swatch (at the time of 
the
error) still shows something like this:

2 mbufs in use
1/17088 mbuf clusters in use (current/max)
0/6/4528 sfbufs in use (current/peak/max)
2 KBytes allocated to network
0 requests for sfbufs denied
0 requests for sfbufs delayed
1819 requests for I/O initiated by sendfile
7578 calls to protocol drain routines

I am not sure, but as I understand it, this means that the buffers are quite OK.

What would be the proper way to debug this problem? This is happening on 
machines
with various hardware, from good old Pentium I with 32 MB RAM up to P4 3GHz, 
1GB RAM,
various network cards (mostly rtl8139), with ADSL or VDSL, although the errors 
are
very rare at the VDSL boxes (where the upstream bandwidth is substantially 
greater).

So, usually the errors appear but the users don't bother really, so it looks 
like
the problems goes away sometimes (the connection is restored), but sometimes 
reboot
is needed.

Thanks for your ideas.

P.S.: If the output of the script above could be helpful, let me know, I can 
publish
it somewhere.

Cheers,
Nejc



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]