Re: 3ware array access lock up on 7.1-RC
Mel пишет: On Friday 26 December 2008 08:12:49 Artem Kuchin wrote: I am not even sure that it is related to freebsd, but maybe someone could point out the problem. We wanted to upgrade our hosting server from FreeBSD 6.2, 3ware 8506-4LP SATA RAID, raid 5 to FreeBSD 7.1 (RC for now), 9550SXU-4LP, raid 10 We have tested the new installation on ASUS P5K WS motherboard with PCI-X slot while the server kept running. The server has Supermicro X5DPE-G2 (pretty old one, 2004). So, when everything was ready, i just took out the old controller and disks and installed the new controller and the array disks. The system booted up, but when i started very intense file operations the file system just froze. The weird thing is that any open program which does not use filesystem kept running fine. For example, i could type and edit in open ee editor, but copying progress bar in midnight commander just stood still. If i tried to save file or open file or do anything disk related from ee in another console the program froze too, apparently waiting for disk system to reply forever (i tried waiting for 20 minutes). I could even connect to ssh port, but it does not auth because sshd needs to read something from the disk. I put everything back into Asus P5K WS and tested it. Everything worked fine again. Any idea what might going on here? OS bugs aside, a dead disk that keeps getting IO request explains all symptoms. Dead can also mean, faulty cable, buggy connector. I would expect the hardware raid controller to pick up on it though and remove it from the array. No, not the case here. As i said, the same controller with the same disks work perfectly on ASUS motherboard. -- Artem ___ 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
vpnc connects, but does not work
I have installed vpnc to connect to an employer's Cisco VPN system, and it seems to make the connection, but after connecting I can't ping the tun0 interface nor anything beyond it. The symptom seems to resemble what is described in the Routing section of http://www.cs.rpi.edu/~flemej/fbsd-cisco-vpn.pdf, but since that is using a completely different setup on the FreeBSD side I have no idea whether the remedy described there is applicable (nor, if it is, how to determine the addresses to use in this case). Does this look at all familiar, or does anyone have any ideas for how to go about debugging it? I didn't find anything that seemed applicable in recent ports@ or questions@ archives, and an earlier inquiry on ports@ did not produce a solution. (I have XX'd out potentially-sensitive material in the following.) # /usr/local/sbin/vpnc Enter password for x...@xxx.xxx.com: Connect Banner: | *** XXX, Inc. Authorized Use Only *** add host YYY.YYY.127.228: gateway 192.168.200.254 add net ZZZ.ZZZ.0.0: gateway ZZZ.ZZZ.233.42 snipped 56 other add net lines, all with the same gateway address, none to any ZZZ.ZZZ address until: add net ZZZ.ZZZ.57.128: gateway ZZZ.ZZZ.233.42 add net ZZZ.ZZZ.57.133: gateway ZZZ.ZZZ.233.42 VPNC started in background (pid: 24776)... The addresses in those last two add net lines seem to be the nameservers: $ cat /etc/resolv.conf #...@vpnc_generated@ -- this file is generated by vpnc # and will be overwritten by vpnc # as long as the above mark is intact nameserver ZZZ.ZZZ.57.128 nameserver ZZZ.ZZZ.57.133 search XXX.com which leads me to wonder whether they really ought to be add host -- for that matter it's not clear they're needed at all since they should be covered by the add net ZZZ.ZZZ.0.0 -- but I guess that may not make much difference when I can't even ping my own gateway (tun0) address :( $ ping ZZZ.ZZZ.233.42 PING ZZZ.ZZZ.233.42 (ZZZ.ZZZ.233.42): 56 data bytes ^C --- ZZZ.ZZZ.233.42 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss $ ping ZZZ.ZZZ.57.128 PING ZZZ.ZZZ.57.128 (ZZZ.ZZZ.57.128): 56 data bytes ^C --- ZZZ.ZZZ.57.128 ping statistics --- 10 packets transmitted, 0 packets received, 100% packet loss $ ping ZZZ.ZZZ.57.133 PING ZZZ.ZZZ.57.133 (ZZZ.ZZZ.57.133): 56 data bytes ^C --- ZZZ.ZZZ.57.133 ping statistics --- 27 packets transmitted, 0 packets received, 100% packet loss $ ifconfig -a xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=9RXCSUM,VLAN_MTU inet6 fe80::2b0:d0ff:fe28:ad4f%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.61 netmask 0xff00 broadcast 192.168.200.255 ether 00:b0:d0:28:ad:4f media: Ethernet autoselect (10baseT/UTP) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff00 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1412 inet6 fe80::2b0:d0ff:fe28:ad4f%tun0 prefixlen 64 scopeid 0x4 inet ZZZ.ZZZ.233.42 -- ZZZ.ZZZ.233.42 netmask 0x Opened by PID 24635 Meanwhile I _can_ ping YYY.YYY.127.228, which I guess is the concentrator's public IP address: $ ping YYY.YYY.127.228 PING YYY.YYY.127.228 (YYY.YYY.127.228): 56 data bytes 64 bytes from YYY.YYY.127.228: icmp_seq=0 ttl=116 time=53.226 ms 64 bytes from YYY.YYY.127.228: icmp_seq=1 ttl=116 time=52.982 ms 64 bytes from YYY.YYY.127.228: icmp_seq=2 ttl=116 time=53.130 ms ^C --- YYY.YYY.127.228 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 52.982/53.113/53.226/0.100 ms Traceroute to YYY.YYY.127.228 produces the same 14-hop result whether connected or disconnected (modulo the need to use traceroute -n while connected: since vpnc has replaced /etc/resolv.conf with one specifying only the corporate nameservers, and I can't reach them because the link doesn't work, there is no name service while connected). Just like ping, traceroute to the tun0 IP address, while connected, produced nothing: $ traceroute -n ZZZ.ZZZ.233.42 traceroute to ZZZ.ZZZ.233.42 (ZZZ.ZZZ.233.42), 64 hops max, 40 byte packets 1 * * * 2 * * * 3 * * * 4 * * * 5 * * * ^C What seems truly bizarre is that, as noted above, I couldn't ping the tun0 interface while connected even though ifconfig reported it as up. Shouldn't a local interface, reported as up, *always* respond to a ping of its own IP address? $ netstat -r -n Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.200.254UGS 0 2209723xl0 snip lines corresponding to snipped add net lines above 127.0.0.1 127.0.0.1
Re: Unable to modify sysid with Fdisk
Hello Tim, Thanks for your suggestion. The probleme after the section 3 does not exist. It is actually a wrong copy paste done by me. Nothing changed after your suggestion : Zurich# dd if=/dev/zero bs=512 count=128 of=/dev/da0 128+0 records in 128+0 records out 65536 bytes transferred in 0.095998 secs (682681 bytes/sec) Zurich# fdisk -u da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] *fdisk: invalid fdisk partition table found* Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 Do you want to change it? [n] y Supply a decimal value for sysid (165=FreeBSD) [165] 12 Supply a decimal value for start [32] Supply a decimal value for size [16352] Explicitly specify beg/end address ? [n] sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 Are we happy with this entry? [n] y The data for partition 2 is: UNUSED Do you want to change it? [n] The data for partition 3 is: UNUSED Do you want to change it? [n] The data for partition 4 is: UNUSED Do you want to change it? [n] Partition 1 is marked active Do you want to change the active partition? [n] We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) Information from DOS bootblock is: 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 2: UNUSED 3: UNUSED 4: UNUSED Should we write new partition table? [n] y *fdisk: Geom not found: da0* Zurich# fdisk da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED 2008/12/28 Tim taj...@gmail.com David Scialom wrote: Hello, It seems that it is impossible to modify the sysid with fdisk since FreeBSD 6.2. I am actually using FreeBSD7.0. When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the message Geom not found: da0 and no change is made: da0 is stock with sysid = 165. The detail are provided below. I tried also to do the same from the install FreeBSD CD without success. As someone a solution ? Zurich# fdisk -u da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] *fdisk: invalid fdisk partition table found* Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Do you want to change it? [n] y Supply a decimal value for sysid (165=FreeBSD) [165] 12 Supply a decimal value for start [32] Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Are we happy with this entry? [n] y The data for partition 2 is: UNUSED Do you want to change it? [n] The data for partition 3 is: UNUSED Supply a decimal value for size [2066400] Explicitly specify beg/end address ? [n] sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Are we
Re: local copy of handbook
On Mon, 29 Dec 2008 10:16:42 +0530 Masoom Shaikh masoom.sha...@gmail.com wrote: lso I cud use tarballs from FTP, but is there easy way to install them ? also csup didn't help here is my csup file *default tag=RELENG_7 *default host=ftp2.tw.freebsd.org *default prefix=/usr *default base=/var/db *default release=cvs delete use-rel-suffix compress src-all doc-all csup updates the source each time, but now i am not sure about doc!! If you do it that way, you have to generate the html files yourself, cvup fetches generic data files that can be used to generate html , pdf etc. What I do these days is mirror the online version with wget. #!/bin/sh cd /usr/share/doc/en wg_args= --mirror -np -nH --cut-dirs=2 --limit-rate=33k bg_flags= # Run quietly from cron [ ! -t 0 ] bg_flags= --quiet wget $bg_flags $wg_args http://www.freebsd.org/doc/en_US.ISO8859-1/; ___ 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: local copy of handbook
On Monday 29 December 2008 18:15:58 RW wrote: On Mon, 29 Dec 2008 10:16:42 +0530 Masoom Shaikh masoom.sha...@gmail.com wrote: lso I cud use tarballs from FTP, but is there easy way to install them ? also csup didn't help here is my csup file *default tag=RELENG_7 *default host=ftp2.tw.freebsd.org *default prefix=/usr *default base=/var/db *default release=cvs delete use-rel-suffix compress src-all doc-all csup updates the source each time, but now i am not sure about doc!! If you do it that way, you have to generate the html files yourself, cvup fetches generic data files that can be used to generate html , pdf etc. What I do these days is mirror the online version with wget. #!/bin/sh cd /usr/share/doc/en wg_args= --mirror -np -nH --cut-dirs=2 --limit-rate=33k bg_flags= # Run quietly from cron [ ! -t 0 ] bg_flags= --quiet wget $bg_flags $wg_args http://www.freebsd.org/doc/en_US.ISO8859-1/; ___ 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 that is clever use of wget :) but can't docs remain updated with csup ? if yes, how ? otherwise I will be happy to generate them from sources if they happen to be some simple target Masoom Shaikh ___ 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: local copy of handbook
On Mon, 29 Dec 2008 20:39:42 +0530 Masoom Shaikh masoom.sha...@gmail.com wrote: On Monday 29 December 2008 18:15:58 RW wrote: On Mon, 29 Dec 2008 10:16:42 +0530 Masoom Shaikh masoom.sha...@gmail.com wrote: lso I cud use tarballs from FTP, but is there easy way to install them ? also csup didn't help here is my csup file *default tag=RELENG_7 *default host=ftp2.tw.freebsd.org *default prefix=/usr *default base=/var/db *default release=cvs delete use-rel-suffix compress src-all doc-all csup updates the source each time, but now i am not sure about doc!! If you do it that way, you have to generate the html files yourself, cvup fetches generic data files that can be used to generate html , pdf etc. What I do these days is mirror the online version with wget. #!/bin/sh cd /usr/share/doc/en wg_args= --mirror -np -nH --cut-dirs=2 --limit-rate=33k bg_flags= # Run quietly from cron [ ! -t 0 ] bg_flags= --quiet wget $bg_flags $wg_args http://www.freebsd.org/doc/en_US.ISO8859-1/; ___ 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 that is clever use of wget :) but can't docs remain updated with csup ? if yes, how ? otherwise I will be happy to generate them from sources if they happen to be some simple target You might consider using Docsnap. This allows you to maintain all the FreeBSD documentation with a minimum of effort. Docsnap is an rsync repository for easy updating of installed FreeBSD documentation (/usr/share/doc). The first run may take longer but subsequent updates take very little time. Only the differences in the documents are transferred. That is the main advantage but you also do not need to install ports with hefty overhead to build documents. Rsync is only utility required (/usr/ports/net/rsync). Typical usage: # rsync -rltvz docsnap.sk.FreeBSD.org::docsnap /usr/share/doc/ For more information see http://docsnap.sk.freebsd.org/ and possibly the rsync manual page. HTH, Randy -- ___ 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: Netstat command output
I have continued to research the issue of receiving errors on the Broadcom and from all the information I have found it appears Broadcom in general may be problematic. I have verified all hardware and hard coded switch and cards at 100Mbps and full duplex and still recieve a small percentage of errors on the broadcom card. I tried a different machine with Intel cards with the same swicth and file transfers and no errors. The driver I have installed for the Broadcom is the one that installed with the initial FreeBSD install. Is there a newer driver I could try? Are there any configuration settings beside duplex, speed and offloading? Thanks - John -- View this message in context: http://www.nabble.com/Netstat-command-output-tp21094731p21206324.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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: Optimising pxeboot disk size
Hello, Wojciech Puchar wrote: i already did such things but with NetBSD 1.5 for my Xterminal distro. it's simple: mount / readonly, put everything here. in /etc put /etc/rc consisting only #!/bin/sh exec /systemrc in /systemrc put something like that: #!/bin/sh echo -n Mounting workstation config directory... #get your IP or MAC address using ifconfig,grep,cut,awk,how you like #put to to say MYIP /sbin/mount_nfs yournfsserver:/clients/etc/MYIP /etc echo done exec /etc/rc Thank you very much, it is now running well after some hardware adventure. I couldn't find the hostname sent by dhcp, but found a way to find the ip address. The only problem i have is that the echo done and other standard outputs are not visible in /var/log/messages. How can i keep them either in dmesg or /var/log/messages ? Best regards, -- Bernard DUGAS Mobile +33 615 333 770 ___ 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: Default list of exported variables in sh(1) - $HOSTNAME
SSH_CONNECTION FTP_PASSIVE_MODE EDITOR I suspect linux to set them from .profile files (even /etc/profile) and not hardcoded in a shell or login program. The default skeletons Mel: You were right to some extent. However, the problem is more complicated (or less complicated, depending). First, FreeBSD's default php.ini doesn't have: $variables_order = EGPCS, so $ENV[] array wasn't getting popualted at all. Second, Apache FreeBSD RC scripts inherit the user environment from sudo(8) unless you pass -H or -i flag/args E.x.:, % sudo -H -i -u root /usr/local/etc/rc.d/apache22 restart Compared to: $ su - Password: $ /usr/local/etc/rc.d/apache22 restart Result in completely different results in PHP's $_ENV[] Additionally, the results of $ su - differ completely from the shell environment that executes when rc(8) is first run at boot time. I may be better off using getenv() in PHP directly. ~BAS in /usr/share/skel on FreeBSD does not set them. Neither does /etc/login.conf. I would set it in /etc/profile. -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Optimising NFS for system files
Hi, I'm working on a project to have many diskless clients PXEbooting on 1 nfs server. With some help :-) i could manage to share almost all system files (/, /usr,..) through NFS. i can see a reading speed difference 4 time slower on client than on server (time tar -cf - /usr /dev/null). I will play with jumbo MTU for network performance, but would anybody know if i can ask system files NFS exports to stay in server memory ? I have less than 2Go to share and 2GO DDR2 is affordable. Thanks a lot, Best regards, ___ 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: local copy of handbook
On Mon, Dec 29, 2008 at 08:39:42PM +0530, Masoom Shaikh wrote: On Monday 29 December 2008 18:15:58 RW wrote: On Mon, 29 Dec 2008 10:16:42 +0530 Masoom Shaikh masoom.sha...@gmail.com wrote: lso I cud use tarballs from FTP, but is there easy way to install them ? also csup didn't help here is my csup file *default tag=RELENG_7 *default host=ftp2.tw.freebsd.org *default prefix=/usr *default base=/var/db *default release=cvs delete use-rel-suffix compress src-all doc-all csup updates the source each time, but now i am not sure about doc!! If you do it that way, you have to generate the html files yourself, cvup fetches generic data files that can be used to generate html , pdf etc. What I do these days is mirror the online version with wget. #!/bin/sh cd /usr/share/doc/en wg_args= --mirror -np -nH --cut-dirs=2 --limit-rate=33k bg_flags= # Run quietly from cron [ ! -t 0 ] bg_flags= --quiet wget $bg_flags $wg_args http://www.freebsd.org/doc/en_US.ISO8859-1/; that is clever use of wget :) but can't docs remain updated with csup ? if yes, how ? otherwise I will be happy to generate them from sources if they happen to be some simple target You can keep a local copy of the docs update the sources for the docs with csup but you have to regenerate them with a make command after you have csup'd. The process is described within this page I just put up: http://www.shute.org.uk/misc/freebsd_uptodate.html There maybe some errors there or things I've missed, so apologies for that in advance. Any questions, just drop me an email. It's good practice IMO to have a locally updated copy of the handbook. You always need the handbook when your 'net connection is down ;) Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ 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: Default list of exported variables in sh(1) - $HOSTNAME
On Monday 29 December 2008 11:12:33 Brian A. Seklecki wrote: SSH_CONNECTION FTP_PASSIVE_MODE EDITOR I suspect linux to set them from .profile files (even /etc/profile) and not hardcoded in a shell or login program. The default skeletons Mel: You were right to some extent. However, the problem is more complicated (or less complicated, depending). First, FreeBSD's default php.ini doesn't have: $variables_order = EGPCS, so $ENV[] array wasn't getting popualted at all. The port only installs php.ini-dist and php.ini-recommended, which are the ones from the PHP source tree. If neither of these is copied to php.ini then php.ini-dist is hardcoded inside php itself, also not something the FreeBSD port alters. Second, Apache FreeBSD RC scripts inherit the user environment from sudo(8) unless you pass -H or -i flag/args E.x.:, % sudo -H -i -u root /usr/local/etc/rc.d/apache22 restart Compared to: $ su - Password: $ /usr/local/etc/rc.d/apache22 restart Result in completely different results in PHP's $_ENV[] As expected. However, stuff in /etc/profile applies to all Bourne type shells. Additionally, the results of $ su - differ completely from the shell environment that executes when rc(8) is first run at boot time. Correct. You can however clean the entire environment, by setting apache22limits_enable=YES and apache22limits_args=-e -E -C daemon. If you need specific variables to be available and the rest to be gone, the standard rc script doesn't support it. You'd have to roll your own. I may be better off using getenv() in PHP directly. For portability yes, since it doesn't rely on EGPCS, but otherwise they give the same results. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ 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: Default list of exported variables in sh(1) - $HOSTNAME
On Mon, 2008-12-29 at 12:05 -0900, Mel wrote: I may be better off using getenv() in PHP directly. For portability yes, since it doesn't rely on EGPCS, but otherwise they give the same results. Another option would be to pay the PHP people to add POSIX 1003.1-2001 gethostname(2). I'll ask on the lists. -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: Re: Having issues with the nvidia driver on my box
On Dec 28, 2008 5:42am, Marco Beishuizen mb...@xs4all.nl wrote: On Fri, 26 Dec 2008 18:14:38 + Did you install the latest Nvidia driver? Perhaps your card isn't supported anymore. Nvidia dropped some older chipsets in their latest driver. You can try nvidia-driver-96xx or nvidia-driver-71xx in the ports. I hope this helps. I installed the nvidia-driver-96xx because when I installed the latest one it said that my chipset wasn't supported. Actually, I think that the suggestions from Mike helped. I added the option in my xorg.conf file that says to use the nvidia agp drivers before using the kernel agp.ko. Andy ___ 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: local copy of handbook
On Mon, 29 Dec 2008 20:27:17 + Frank Shute fr...@shute.org.uk wrote: You can keep a local copy of the docs update the sources for the docs with csup but you have to regenerate them with a make command after you have csup'd. The process is described within this page I just put up: http://www.shute.org.uk/misc/freebsd_uptodate.html There maybe some errors there or things I've missed, so apologies for that in advance. Any questions, just drop me an email. It's good practice IMO to have a locally updated copy of the handbook. You always need the handbook when your 'net connection is down ;) Are the docs branched? I tried running a csup with tag=RELENG_7 and nothing got created; changing the line doc-all to doc-all tag=. fixed it and fetched all the docs. -- Bruce Cran ___ 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: local copy of handbook
On Mon, 29 Dec 2008 20:27:17 +, Frank Shute fr...@shute.org.uk wrote: You can keep a local copy of the docs update the sources for the docs with csup but you have to regenerate them with a make command after you have csup'd. The process is described within this page I just put up: http://www.shute.org.uk/misc/freebsd_uptodate.html Hi Masoom, We have been working on a patch for the Handbook that adds a short description of the same process. The patch has been recently posted to freebsd-doc, by Gabor Pali: http://lists.freebsd.org/pipermail/freebsd-doc/2008-December/015315.html Since you already have written something similar, do you think we can convince you to review the patch? It would be nice if you could help us improve it or make it easier to read, and use. Regards, Giorgos pgpSoMDRDFWeo.pgp Description: PGP signature
Re: Optimising pxeboot disk size
Thank you very much, it is now running well after some hardware adventure. I couldn't find the hostname sent by dhcp, but found a way to find the ip address. just use hostname command. The only problem i have is that the echo done and other standard outputs are not visible in /var/log/messages. How can i keep them either in dmesg or /var/log/messages ? add second echo to /var/log/messages ;) ___ 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: Optimising NFS for system files
i can see a reading speed difference 4 time slower on client than on server (time tar -cf - /usr /dev/null). I will play with jumbo MTU for network performance, but would anybody know if i can ask system files NFS exports to stay in server memory ? I have less than 2Go to share and 2GO DDR2 is affordable. you don't have to. ___ 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
help with sed and tick marks
A string in a file contains ('n...@domain.net'', ... where and we want to remove the extra tick mark, to have: ('n...@domain.net', iow, replace net'' with net' We've tried many combinations with sed, but failed. Suggestions? thanks, Len ___ 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: local copy of handbook
On Mon, 29 Dec 2008 21:43:19 +, Bruce Cran br...@cran.org.uk wrote: Are the docs branched? I tried running a csup with tag=RELENG_7 and nothing got created; changing the line doc-all to doc-all tag=. fixed it and fetched all the docs. Hi Bruce, No, there are no release-specific branches to the doc/ tree. The 'HEAD' of the CVS repository is all there is. If you look at the CVS tag names, there _are_ a few old branches and experimental tags, but these are mostly left-overs from projects that are no longer active. The tag=. run that you used should give you the latest documentation sources :-) ___ 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: help with sed and tick marks
On Mon, 29 Dec 2008 22:31:17 +0100, Len Conrad lcon...@go2france.com wrote: A string in a file contains ('n...@domain.net'', ... where and we want to remove the extra tick mark, to have: ('n...@domain.net', iow, replace net'' with net' We've tried many combinations with sed, but failed. Suggestions? Use proper quoting in your shell, i.e.: sed -e 's/'\'\''/'\''/g' inputfile outputfile or different quote to delimit the sed expression: sed -e s/''/'/g ___ 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
restart rsync process via shell script
Hi there, I am trying to figure out the most accurate way to assess if an rsync process is running and is established to the remote rsync server and is transferring data. I am writing a bourne shell script to restart rsync if the connection to the remote rsync server is lost. The command ps ax | grep 'rsync' | grep -v grep is not enough because the rsync and ssh process can be running but the connection to the remote server is no longer ESTABLISHED and the backup is no longer proceeding. Then perhaps the command netstat -A | grep '192.168.1.10' | grep 'ESTABLISHED' | grep -v grep would be helpful. But in some cases I have found that I have ssh connections to the remote rsync server that obfuscate the rsync ssh ESTABLISH statistics. the rsync command I am using is: /usr/bin/rsync -avz '/Users/noah/' -e 'ssh -p 22' r...@192.168.1.10:/Users Any suggestions please? Cheers, Noah ___ 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: restart rsync process via shell script
On Monday 29 December 2008 13:35:06 Noah wrote: Hi there, I am trying to figure out the most accurate way to assess if an rsync process is running and is established to the remote rsync server and is transferring data. I am writing a bourne shell script to restart rsync if the connection to the remote rsync server is lost. The command ps ax | grep 'rsync' | grep -v grep is not enough because the rsync and ssh process can be running but the connection to the remote server is no longer ESTABLISHED and the backup is no longer proceeding. Then perhaps the command netstat -A | grep '192.168.1.10' | grep 'ESTABLISHED' | grep -v grep would be helpful. But in some cases I have found that I have ssh connections to the remote rsync server that obfuscate the rsync ssh ESTABLISH statistics. the rsync command I am using is: /usr/bin/rsync -avz '/Users/noah/' -e 'ssh -p 22' r...@192.168.1.10:/Users Any suggestions please? Set ServerAliveInterval to a low value so the connection is dropped. You can do this on the commandline using -e 'ssh -o ServerAliveInterval=10 -p 22'. This would drop the connection if the server can't be reached within 10 seconds. Once the connection is dropped, rsync should exit with a value other then 0, so you can wrap your rsync command in a while loop, like: KEEP_RUNNING=1 while test ${KEEP_RUNNING} -gt 0; do rsync -avz /Users/noah/ -e 'ssh -p 22 -o ServerAliveInterval=10' \ r...@192.168.1.10:/Users KEEP_RUNNING=$? done -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ 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
running asfiles on windowmaker...
Does anyone know how to run asfiles on windowmaker? Whereis its executable? (path) ___ 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: strange fsck results
At 06:08 AM 12/28/2008, re...@adeptscience.com wrote: I am running VMware Server 2.0 but see the same results with VMware Server 1.0. The virtual machines are copies that I made by transferring the vmware files for it from another server. As far as I know it did not have any fsck problems on that machine but I don't have access to it any more. I have noticed that there are a lot of failures (corrupted files) when moving VMware appliances with the use of USB memory sticks so I do test them right on the memory stick before I disconnect from the PC. All the host OSs are Windows XP Professional using IDE ATA drives, current hardware is an HP dx2450 AMD Phenom. but I saw the same errors on an Acer. The files systems are: # DeviceMountpoint FStype Options DumpPass# /dev/ad0s1b noneswapsw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1e /usrufs rw 2 2 /dev/ad0s1d /varufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 Here is a bit from fsck of /var hueysan_vm: {10} fsck /var ** /dev/ad0s1d (NO WRITE) ** Last Mounted on /var ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=190413 OWNER=root MODE=100644 SIZE=235 MTIME=Dec 27 12:23 2008 RECONNECT? no CLEAR? no ... I get about a dozen similar UNREF errors. I am only worried about the errors if they might cause a problem with the use of the virtual server as a development server. I have installed and have running apache, mysql, sendmail, samba, rsync, etc and they all seem to work fine. I am planning on distributing copies of the virtual server to some others who are working on a project with me so I really only need to be fairly sure that no hidden gotchas are going to plague our efforts. Having the virtual server setup is a BIG plus when collaborating with people who only have Windows PCs, before I had a central FreeBSD server for testing etc but that is so much slower then have a local development server. Being able to just send off a memory stick with the VMserver and instructions is fantastic. Thanks to all, Charlie Reese Charlie, I have a number of FreeBSD servers 7.0 running under ESX server 3.5. With FreeBSD 7, it has the background fsck. I checked my servers and did see one with an issue from fsck, but later the background fsck had it fixed. The only issue I've had running the i386 version of FreeBSD, and other OS's under ESX is to be sure to use the vmware tools to copy the VM's once they are properly powered off. You might want to try upgrading one of your VM FreeBSD servers to 7.0 and see if the issue persists. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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: Unable to modify sysid with Fdisk
David Scialom wrote: Hello Tim, Thanks for your suggestion. The probleme after the section 3 does not exist. It is actually a wrong copy paste done by me. Nothing changed after your suggestion : Zurich# dd if=/dev/zero bs=512 count=128 of=/dev/da0 128+0 records in 128+0 records out 65536 bytes transferred in 0.095998 secs (682681 bytes/sec) Zurich# fdisk -u da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] *fdisk: invalid fdisk partition table found* Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 Do you want to change it? [n] y Supply a decimal value for sysid (165=FreeBSD) [165] 12 Supply a decimal value for start [32] Supply a decimal value for size [16352] Explicitly specify beg/end address ? [n] sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 Are we happy with this entry? [n] y The data for partition 2 is: UNUSED Do you want to change it? [n] The data for partition 3 is: UNUSED Do you want to change it? [n] The data for partition 4 is: UNUSED Do you want to change it? [n] Partition 1 is marked active Do you want to change the active partition? [n] We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) Information from DOS bootblock is: 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 2: UNUSED 3: UNUSED 4: UNUSED Should we write new partition table? [n] y *fdisk: Geom not found: da0* Zurich# fdisk da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED 2008/12/28 Tim taj...@gmail.com mailto:taj...@gmail.com David Scialom wrote: Hello, It seems that it is impossible to modify the sysid with fdisk since FreeBSD 6.2. I am actually using FreeBSD7.0. When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the message Geom not found: da0 and no change is made: da0 is stock with sysid = 165. The detail are provided below. I tried also to do the same from the install FreeBSD CD without success. As someone a solution ? Zurich# fdisk -u da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] *fdisk: invalid fdisk partition table found* Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Do you want to change it? [n] y Supply a decimal value for sysid (165=FreeBSD) [165] 12 Supply a decimal value for start [32] Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Are we happy with this entry? [n] y The data for partition 2 is: UNUSED Do you want to change it? [n]
Re: restart rsync process via shell script
Mel wrote: On Monday 29 December 2008 13:35:06 Noah wrote: Hi there, I am trying to figure out the most accurate way to assess if an rsync process is running and is established to the remote rsync server and is transferring data. I am writing a bourne shell script to restart rsync if the connection to the remote rsync server is lost. The command ps ax | grep 'rsync' | grep -v grep is not enough because the rsync and ssh process can be running but the connection to the remote server is no longer ESTABLISHED and the backup is no longer proceeding. Then perhaps the command netstat -A | grep '192.168.1.10' | grep 'ESTABLISHED' | grep -v grep would be helpful. But in some cases I have found that I have ssh connections to the remote rsync server that obfuscate the rsync ssh ESTABLISH statistics. the rsync command I am using is: /usr/bin/rsync -avz '/Users/noah/' -e 'ssh -p 22' r...@192.168.1.10:/Users Any suggestions please? Set ServerAliveInterval to a low value so the connection is dropped. You can do this on the commandline using -e 'ssh -o ServerAliveInterval=10 -p 22'. This would drop the connection if the server can't be reached within 10 seconds. Once the connection is dropped, rsync should exit with a value other then 0, so you can wrap your rsync command in a while loop, like: KEEP_RUNNING=1 while test ${KEEP_RUNNING} -gt 0; do rsync -avz /Users/noah/ -e 'ssh -p 22 -o ServerAliveInterval=10' \ r...@192.168.1.10:/Users KEEP_RUNNING=$? done I like that - thanks! ___ 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: running asfiles on windowmaker...
On Mon, Dec 29, 2008 at 7:13 PM, luizbcampos luizbcam...@gmail.com wrote: Does anyone know how to run asfiles on windowmaker? Whereis its executable? (path) I have no idea what asfiles is, but I would assume `which asfiles' would tell you where it is located. -- Glen Barber Tell me and I forget. Teach me and I remember. Involve me and I learn. - Benjamin Franklin ___ 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: running asfiles on windowmaker...
Does anyone know how to run asfiles on windowmaker? Whereis its executable? (path) I have no idea what asfiles is, but I would assume `which asfiles' would tell you where it is located. ... unless it's not in PATH, and the OP is asking which directory needs to be added. asfiles is a port which installs into /usr/local, so I'd expect the executable to be in /usr/local/bin. If not, find /usr/local -name asfiles -print should find it. ___ 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: local copy of handbook
On Mon, Dec 29, 2008 at 09:43:19PM +, Bruce Cran wrote: On Mon, 29 Dec 2008 20:27:17 + Frank Shute fr...@shute.org.uk wrote: You can keep a local copy of the docs update the sources for the docs with csup but you have to regenerate them with a make command after you have csup'd. The process is described within this page I just put up: http://www.shute.org.uk/misc/freebsd_uptodate.html There maybe some errors there or things I've missed, so apologies for that in advance. Any questions, just drop me an email. It's good practice IMO to have a locally updated copy of the handbook. You always need the handbook when your 'net connection is down ;) Are the docs branched? I tried running a csup with tag=RELENG_7 and nothing got created; changing the line doc-all to doc-all tag=. fixed it and fetched all the docs. Hi Bruce, As Giorgios points out, the docs aren't branched. I'll try make it clearer on that page that it's only for SUPFILE(source) that there is a branch you have to follow. PORTSSUPFILE(ports) DOCSUPFILE(docs) are just given the current tag, which they should have by default. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ 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: running asfiles on windowmaker...
On 30 dec 2008, at 07:02, per...@pluto.rain.com wrote: Does anyone know how to run asfiles on windowmaker? Whereis its executable? (path) I have no idea what asfiles is, but I would assume `which asfiles' would tell you where it is located. ... unless it's not in PATH, and the OP is asking which directory needs to be added. asfiles is a port which installs into /usr/local, so I'd expect the executable to be in /usr/local/bin. If not, find /usr/local -name asfiles -print should find it. pkg_info -L package (replace package by actual package name) Shows all files installed by the port, assuming OP installed asfiles through the port. Peter -- Http://www.boosten.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: local copy of handbook
On Tue, 30 Dec 2008 06:12:51 + Frank Shute fr...@shute.org.uk wrote: As Giorgios points out, the docs aren't branched. I'll try make it clearer on that page that it's only for SUPFILE(source) that there is a branch you have to follow. PORTSSUPFILE(ports) DOCSUPFILE(docs) are just given the current tag, which they should have by default. Sorry I missed where you say to use the doc-supfile; I thought both src and doc were being fetched using a single cvsupfile like in Masoom's original email. On reading the page again it's actually quite clear that you should use the standard doc-supfile which will contain the correct tag line. -- Bruce Cran ___ 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