Splitting hw raid mirror.
Hi, Im running FreeBSD 8.0-RELEASE (FreeBSD hostname 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Tue Dec 1 16:10:08 CET 2009 pe...@hostname:/usr/obj/usr/src/sys/GENERIC amd64) and have a MTP-raidcard with a configured mirror. mpt0 Adapter: Board Name: SAS3041E Board Assembly: L3-01101-04F Chip Name: C1064E Chip Revision: UNUSED RAID Levels: RAID0, RAID1, RAID1E RAID0 Stripes: 64K RAID1E Stripes: 64K RAID0 Drives/Vol: 2-10 RAID1 Drives/Vol: 2 RAID1E Drives/Vol: 3-10 Now I want to split this mirror into standalone drives but I dont know if its possible. Since Im using zfs anyway it seems better to let zfs take care of the mirroring giving it the possibility to self heal and so on. and of course ease of administration. When consulting the manual i see this: clear Delete the entire configuration including all volumes and spares. All drives will become standalone drives. and delete volume Delete the volume volume. Member drives will become standalone drives. IF! what this does is just leave da0 as one of the disks and makes the other disk in the mirror available to the operating system as da1 then everything should be fine. But I cant take the risk if everything goes boom. :D Is there anyone that has any experience in this situation? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
QEMU - IPadresses.
Hi, I wonder how you restrict user inside a qemu-virtualization to a certain IP-adress. I mean, what happends if someone decides to change to a conflicting IP? -- Peter Ankerstål pe...@pean.org http://www.pean.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ipv6 static route.
How do I set a static ipv6 route in rc.conf? This command works: route add -inet6 -net 2003:16c8:dc1e:2:: -prefixlen 64 2003:16c8:dc1e::2 and I use this in rc.conf: ipv6_static_routes=2003:16c8:dc1e:2:: -prefixlen 64 2003:16c8:dc1e::2 but it does not set the correct routes. -- Peter Ankerstål pe...@pean.org http://www.pean.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ipv6 static route.
On Jan 25, 2010, at 6:59 PM, Brian A. Seklecki (CFI NOC) wrote: On 1/25/2010 12:15 PM, Peter Ankerstål wrote: How do I set a static ipv6 route in rc.conf? This command works: route add -inet6 -net 2003:16c8:dc1e:2:: -prefixlen 64 2003:16c8:dc1e::2 and I use this in rc.conf: ipv6_static_routes=2003:16c8:dc1e:2:: -prefixlen 64 2003:16c8:dc1e::2 Do it like IPv4 static routes with an itemized/serialized list: ipv6_static_routes=pitbpa0_0 pitbpa0_1 faith_0 faith_1 ipv6_route_pitbpa0_0=2607:f000:0010:0100::/56 2607:f000:10::4000 ipv6_route_pitbpa0_1=2607:f000:0010:0200::/56 2607:f000:10::4000 ipv6_route_faith_0=2607:f000:10:0::: -prefixlen 96 ::1 ipv6_route_faith_1=2607:f000:10:0::: -prefixlen 96 -ifp faith0 Keep the faith, yea? ~BAS Thanks, I just figured it out too! -- Peter Ankerstål pe...@pean.org http://www.pean.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Postfix and SASL.
I just upgraded one of my machines to FreeBSD 8-RC1. # uname -srmi FreeBSD 8.0-RC1 amd64 GENERIC postfix-2.4.11,1 cyrus-sasl-2.1.23 courier-authlib-base-0.62.4 courier-authlib-mysql-0.62.4 Inside a jail Im running a mailserver (postfix). After the upgrade smtp-auth with SASL2 and authdaemond doesnt work. From postfix main.cf: smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_application_name = smtpd broken_sasl_auth_clients = yes smtpd_recipient_restrictions = reject_invalid_hostname, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, permit --- smtpd.conf: pwcheck_method: authdaemond log_level: 4 mech_list: PLAIN LOGIN authdaemond_path: /var/run/authdaemond/socket --- ls -ld /var/run/authdaemond/ drwxr-xr-x 2 courier courier 5 Sep 21 14:23 /var/run/authdaemond/ sockstat |grep authdaemon root authdaemon 46562 5 stream /var/run/authdaemond/socket.tmp root authdaemon 46562 6 stream - /tmp/mysql.sock root authdaemon 46561 5 stream /var/run/authdaemond/socket.tmp root authdaemon 46561 6 stream - /tmp/mysql.sock root authdaemon 46560 5 stream /var/run/authdaemond/socket.tmp root authdaemon 46560 6 stream - /tmp/mysql.sock root authdaemon 46559 5 stream /var/run/authdaemond/socket.tmp root authdaemon 46559 6 stream - /tmp/mysql.sock root authdaemon 46558 5 stream /var/run/authdaemond/socket.tmp root authdaemon 46558 6 stream - /tmp/mysql.sock root authdaemon 46557 5 stream /var/run/authdaemond/socket.tmp authdaemond is working properly. IMAP still uses it for auth and works fine. and from maillog: Sep 21 14:41:48 system authdaemond: Authenticated: sysusername=null, sysuserid=125, sysgroupid=125, homedir=/usr/maildirs, address=pe...@pean.org , fullname=Peter Ankerstål, maildir=pe...@pean.org/, quota=51200, options=null Sep 21 14:41:48 system postfix/smtpd[47155]: warning: SASL authentication failure: could not verify password Sep 21 14:41:48 system postfix/smtpd[47155]: warning: SASL authentication failure: Password verification failed Sep 21 14:41:48 system postfix/smtpd[47155]: warning: hostname.tld: SASL PLAIN authentication failed: generic failure Sep 21 14:41:48 system postfix/smtpd[47155]: lost connection after AUTH from hostname.tld Sep 21 14:41:48 system postfix/smtpd[47155]: disconnect from hostname.tld Could anyone see the problem? This setup has been working on a 7.2- RELEASE machine for months. -- Peter Ankerstål pe...@pean.org http://www.pean.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD network problem.
I have such a strange problem I cant even guess whats worng. Im running FreeBSD 7.0-RELEASE amd64 and zfs. When the machine starts everything works fine but after a while (the only thing I noticed, when the free memory drops below 1700MB) it starts to behave VERY strange when serving web-pages (running apache22). It has no problem serving html-pages but css and images doesnt work. The http-log reports 200 OK and tcpdump shows the whole css-code sent out on the interface. But the browser/telnet just sits there waiting for data. Sometimes we even get HTTP-requests inside the css-file from another machine to another server. (see picture) http://jf.jail.se/tmp/css.png When I reboot the machine everything works fine again but after a while this appears again. using lynx is no problem at all. or telnet and GET / HTTP/1.1 Host: blabla this gives the correct data, but GET /style.css HTTP/1.1 gives nothing, just waiting for data. Other protocols like ftp, ssh, smtp, imap seems to work fine. And sometimes it seems like it works fine UNTIL you do shift+reload until that the sites works fine. of course I figured that this must be a problem between the server and myself but since a reboot fixes the problem for a certain amout of time that could (maybe) not be the case. I really need some ideas on this.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: anyone using ZFS for real?
Wojciech Puchar wrote: thanks for quick answers. i will definitely take a risk after reading all of this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I've used it on my laptop since it was released for FreeBSD but what do you mean real? Production environment? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: anyone using ZFS for real?
Wojciech Puchar wrote: thanks for quick answers. i will definitely take a risk after reading all of this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Sorry. Heh. I missed the Re: and the rest of the thread. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Single Instance Service
GARRISON, TRAVIS J. wrote: I am looking for software that will run on FreeBSD that is similar to Microsoft Single Instance Service. The Single Instance Storage Filter is a file system filter that manages the duplicate copies of files on hard-disk volumes. This filter copies one instance of the duplicate file into a central folder, and the duplicates are replaced with a link to the central copy to improve disk usage. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I cant really see why you would need something like this i FreeBSD. Why would you have shitloads of duplicates? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I forward old root emails from the root mailbox to my address?
Andreas Widerøe Andersen wrote: Hi, On one of my FreeBSD servers all system emails to root is stored in the root mailbox under /var/mail/root. I have updated my alias file so new mail is forwarded to one of my email adresses, but is there a simple way for me to send all these old mails in root's mailbox to my email address without logging in through pop3/imap? A command line trick would be perfect. I think you could just use the .forward file. read about it in forward(5) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache and PHP Packages
Stephen Willson wrote: I have installed the latest Apache and PHP Packages. I can get Apache working, but nothing is standing out as to why I can't get the PHP package to work. Best I can figure is that this package was compiled without the options to include apache support. -or- there is another package that adds support for apache 2.2.3 i installed: php5-5.1.6_3 apache-2.2.3 (and dependencies). can't figure it out. i haven't installed /compiled with FreeBSD in a long time so I thought the packages would be easy enough... I dont know whether or not the php-package are built with the apache module but have you configured your apache correctly? have you added AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps to your apache conf? My suggestion would be to compile the packages from the ports-collection to make sure the module is compiled and then make sure that the webserver is configured properly. You can read about the ports collection and how to use it here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache and PHP Packages
Peter Ankerstål wrote: Stephen Willson wrote: I have installed the latest Apache and PHP Packages. I can get Apache working, but nothing is standing out as to why I can't get the PHP package to work. Best I can figure is that this package was compiled without the options to include apache support. -or- there is another package that adds support for apache 2.2.3 i installed: php5-5.1.6_3 apache-2.2.3 (and dependencies). can't figure it out. i haven't installed /compiled with FreeBSD in a long time so I thought the packages would be easy enough... Just realized that php5-5.1.6_3 are quite old and does have some security problems. Another reason to install php5-5.2.1_3 from ports instead. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD machine instead of wireless hotspot device
Angelin Lalev wrote: I have wireless hotspot device (Handlink WG-601) which I need to replace with FreeBSD machine. The device has following functionality I need to replicate: 1. It has dhcp server (that's easy) 2. It makes NAT between it's internal interfaces and wan interface (easy too, but look at 3). 3. It actually responds on every ARP request coming on it's internal interfaces. That allows it to act as router for machines that instead of using dhcp are configured with wrong static IP addresses. 4. It can use RADIUS for authentication of the users. Actually, non-authenticated users are given IP address (no WPA, TKIP, etc) and when they first try to load a web page are redirected to authentication web-page. Then their username and password are checked against RADIUS database and only then they are allowed to connect to the outer network. Two more things: 1. It was part of a larger wireless hotspot service, sponsored from the government and implemented by outer organization, so buying another with my organization's money is out of the question. 2. I'm aware of the issues with security but again I cannot modify the policy there. I'll be very thankful for any ideas. I've done something very similar to this with FreeBSD (nanobsd). Check out http://www.pean.org/authpf_on_FreeBSD.html and http://www.pean.org/NanoBSD.html Hope it will be of any help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GUI to ports collection on FBSD?
[EMAIL PROTECTED] wrote: On Mon, 16 Apr 2007, Joe Vender wrote: Hi, Is there a GUI interface to the FreeBSD ports collection for use in kde similar to synaptic or adept? Joe Vender That's coming soon. I'd check out the FreeBSD SoC page; Andrew, the developer's listed at the top of the page: http://code.google.com/soc/freebsd/about.html. But is this really a tool for the ports collection? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Execute command upon interface initialization?
Ido Admon wrote: Hello list, I couldn't find any way to execute an arbitrary command upon network interface initialization. My situations is that I have and ethernet card that takes DHCP from a cables provider (not a fixed IP address) and I need to update a DynDNS hostname everytime it does (everytime the IP changes). I couldn't find a way to execute shell commands using the rc system or dhclient, what did I miss? Sure I could just use cron but that's not very elegant. You could use dns/ez-ipupdate. It is a daemon who updates your dyndns whenever your ip is changed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cp to infinity.
cd test/ mkdir foo touch bar cp -r * foo/ cp: foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo: name too long (not copied) cp: foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo: name too long (not copied) It seems FreeBSD cp tries to copy the directory to infinity. Is there an option to avoid this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remote Desktop Connection
Grzegorz Pluta wrote: Hi. Id like to asj you guys if you used any remote desktops with freebsd? Which client/server would you recommend, and why? Witch wich desktop env have you been using it? I've been using tightvnc both as server and client. Works fine. I'm using fluxbox as window-manager. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cp to infinity.
Sure, just don't copy directories into themselves recursively. How hard could it be to make cp avoid this problem? GNU cp does not have any problems with this action. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: disable cntl+alt+del function
Sean Murphy wrote: cntl+alt+del at the console without being logged in reboots the server. The server runs through its shutdown procedure and reboots. How do I disable this function? You could compile the kernel with: options SC_DISABLE_REBOOT ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NanoBSD don't boot.
I've found a pdf about installing NanoBSD on phk.freebsd.dk. Everything worked out quite well. Untill I tried to boot the CF card (I've had no problem booting a standard minimal install from the CF before.) This is what I did: * sh nanobsd.sh -c uchman.conf ( http://pean.org/uchman.conf ) * dd if=_.disk.full of=/dev/ad4 bs=64kb (ad4 == my CF-card) Everything seems to work fine but when I try to boot it just says: \ (looks like it tries to load the kernel) BTX loader 1.00 BTX version is 1.01 and then nothing. I tried to boot the machine with a freebsd-installation and set the partitions bootable but no success. What could have gone wrong? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Configuring NanoBSD
I can't any information on how to configure NanoBSD before a build. Everything I have is a nanobsd.sh. http://www.freebsd.org/projects/nanobsd/ talks about a make.conf and to exec a make in that directory but there is no Makefile or make.conf. What have I missed? =) Should I use /usr/src/share/examples/etc/make.conf or what? If so, where should I put it? will /usr/src/tools/tools/nanobsd/make.conf do? Please help. :P ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Syslog
Hello, I'm trying to get syslog to log on a remote host. This part is really not a problem, but when I try to define at the loghost to which files i want to log my incoming logs I don't get anything to work. I cant find anything in the manual either. I've tried this: +sphere *.* /var/log/sphere/messages ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
acpi, wi0 and apm.
I have a problem with my WaveLAN. It works fine when I boot my FreeBSD 5.4-RC3 with acpi disabled. But when i enable acpi it says: wi0: Lucent Technologies WaveLAN/IEEE at port 0x100-0x13f irq 11 function 0 co nfig 1 on pccard0 wi0: timeout in wi_cmd 0x; event status 0x8000 wi0: timeout in wi_cmd 0x; event status 0x8000 wi0: timeout in wi_cmd 0x; event status 0x8000 : init failed device_attach: wi0 attach returned 6 Then I tried to use apm instead. (worked fine in FreeBSD 4.) But i've compiled device apm into the kernel but I don't have any /dev/apm. -- MVH Peter Ankerstål. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Wacom USB tablet.
I have a usb Wacom tablet and I want it to work under FreeBSD. When I boot my cmputer it says: ums0: Tablet PTZ-630, rev 1.10/1.02, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. and when I start x it tells me it have found ums0 as a mouse. But I cant use the tablet with its mouse nor with the pen. -- MVH Peter Ankerstål. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]