Re: ZFS Snaphost & Hardware RAID
2009/11/16 Johan Hendriks > > >Hello all. > > >I plan to set up backup server with 24x1Tb HDD and use ZFS with > >FreeBSD-8.0 on it. > >I prefare to have "ZFS only" system but as I see there is no any easy > >way to do so. > > >I would like to use ZFS snapshots - is I undestand right what snaphots > >work OVER ZFS raidz\storage? So I can`t use hardware RAID and must make > > >a raidz? > > >I would love to head any other suggestion about using FreeBSD with ZFS > >as backup server. > > >-- > >Best regards, > >Proskurin Kirill > > An option is reading this thread on the FreeBSD forums. > > http://forums.freebsd.org/showthread.php?t=3689 > > regards, > Johan Hendriks > ___ > 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" > zfs works fine with hardware raid controllers, it just means the disk setup can be a little more complicated, and needs to be thought about a bit more. Personally I would JBOD all the drives apart from the system drives which I would create a mirror for. With this setup you utilize all the best features of the hardware and software. System zpool with hardware mirror means you are less likely to get issues booting as bios will see the virtal device exported by the raid card and wont have to alter the boot drive if one of your system drives dies. Just give the system zpool on dev backup zpool: raidz2 ( group into vdevs of 8 drives ). If you export the drives from the hardware raid as a jbod and get zfs to do all the raid stuff, you will enjoy more funky raid configs, and if you have to rebuild a drive it will odds on be much quicker as you only have to do allocated blocks as opposed to full block rebuild of the entire drive as the raid controller would do. Also using the raid card rather than straight scsi you might get benefits from the raid cache, if its cpu is quick enough. ___ 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: panic? i386 on dell duo
Gary Kline wrote: [snip] > > my network bud down in dallas is helping me get the dell as my > new server. my old hp kayak is from 1998 and on its death-bed. > > okay: i have 7.2-R, i386. installs fine. jon horne changed the > IP that the op sys | DHCP suite chose from 10.47.0.112 to > 10.47.0.230. i do not know why, but he change the ifconfig line in > /etc/rc.conf from ="DHCP" to ="inet 10.47.0.230 netmask 10.0.0.255" ^^ Can't speak to most of the post but this netmask certainly looks strange. -Mike ___ 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: Partition naming, fstab, and geli
On Mon, 16 Nov 2009 13:01:26 -0500, Jerry McAllister wrote: > I tend to use 'a' if > the drive will be entirely one slice and one partition used for some > special work or scratch space, but stick with 'd..h' if there will be > more than one partition and just leave 'a' alone - for no other > reason than habit. And I tend to omit the slice at all. :-) # newfs -U /dev/ad1 # mount /dev/ad1 /somewhere This is so easy because I very often use sysinstall for initializing the disk when installing, but any further disk adding is done via CLI as shown above, because it's much simpler - and I didn't see any reason to create a slice - even if I wanted to have more than one partition, which I often don't want. > As for 'd' vs 'e', sometime a long time and many generations ago there > was a convention of reserving 'd' for something. I don't remember what > it was. It was pre FreeBSD 3 and pre 1997 and maybe even pre any FreeBSD > and applied in some earlier Unix-en before the court cases, but not after. > That old convention accounts for documentation starting with using 'e' for > extra partitions and skipping 'd'. But, whatever that old convention > was, it has not been used for so long that it is meaningless nowdays > and 'd' can be used for whatever extra partition you want. You say it: I KNEW that there was something someone had on his mind when reserving 'd' for something special... but WHAT it exactly was, I don't know. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: Partition naming, fstab, and geli
On Tue, Nov 17, 2009 at 02:45:15PM +0100, Polytropon wrote: > On Mon, 16 Nov 2009 13:01:26 -0500, Jerry McAllister wrote: > > As for 'd' vs 'e', sometime a long time and many generations ago there > > was a convention of reserving 'd' for something. I don't remember what > > it was. It was pre FreeBSD 3 and pre 1997 and maybe even pre any FreeBSD > > and applied in some earlier Unix-en before the court cases, but not after. > > That old convention accounts for documentation starting with using 'e' for > > extra partitions and skipping 'd'. But, whatever that old convention > > was, it has not been used for so long that it is meaningless nowdays > > and 'd' can be used for whatever extra partition you want. > > You say it: I KNEW that there was something someone had > on his mind when reserving 'd' for something special... > but WHAT it exactly was, I don't know. If I remember correctly, NetBSD still uses (or did so until a few years ago) the 'd' partition to represent the whole disk, while 'c' is used in the usual way to represent the whole slice. Regards Thomas ___ 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"
Lockup problems with USB disks
I have a USB hard drive. Whenever I open two programs which utilise the USB hard drive simultaneously, these programs, i assume when they attempt to write to the hard drive lock up due to what i suspect must be some issue with the USB driver and perhaps a deadlock involving multiple concurrent accesses to the drive. When they attempt to access the drive the programs can lock up for several minutes before being unblocked. When only one program is using the drive this behaviour does not seem to occur. It seems most likely that this is a USB level problem involving the USB drivers. I am using FreeBSD 7.1. It is annoying behaviour to say the least and I wonder what can be done about it, and if this issue is being addressed, perhaps in the recent redesign of the USB code. It seems to be a pretty consistent issue, happening with multiple installs of FreeBSD and different drives. Thank you. ___ 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: no sshd on new server...
On Mon, 16 Nov 2009 15:12:36 -0800, Gary Kline wrote: > On Mon, Nov 16, 2009 at 08:31:49PM +0100, Polytropon wrote: > > By the way, it's not a problem if /etc/rc.conf is empty. > > In this case, defaults are used, but: > > > > % grep sshd /etc/defaults/rc.conf > > sshd_enable="NO"# Enable sshd > > > > As you see, sshd_enable is set to "NO" by default. > > > > darn, but that would've been that last thing i would have > expected... . i dont see any rationale... Rationale: Secure by default. Ermm... wait, that was a different OS. :-) At least, there's no telnet enabled by default with empty root password... :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: freebsd partitions on a dos/fat slice?
On Sun, Nov 08, 2009 at 02:52:57AM -0700, Peter wrote: > iH, > Pulled an old disk lying around... > and started mounting partitions in it. > The weird thing is that the first slice [~15GB] is said to be fat, but I > do have freebsd partitions on it: > > denver:#mount|grep ad10 > /dev/ad10s1a on /maxtor500GB (ufs, NFS exported, local, soft-updates) > /dev/ad10s1d on /maxtor500GB/var (ufs, local, soft-updates) > /dev/ad10s1f on /maxtor500GB/usr (ufs, local, soft-updates) > /dev/ad10s1e on /maxtor500GB/tmp (ufs, local, soft-updates) > /dev/ad10s3d on /maxtor500GB/data (ufs, NFS exported, local, soft-updates) > /dev/ad10s2d on /maxtor500GB/data2 (ufs, local, soft-updates) > > denver:#fdisk /dev/ad10 > *** Working on device /dev/ad10 *** > parameters extracted from in-core disklabel are: > cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) > > 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 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) > start 63, size 31455207 (15358 Meg), flag 0 > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 254/ sector 63 > The data for partition 2 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 31455270, size 31455270 (15359 Meg), flag 80 (active) > beg: cyl 1023/ head 255/ sector 63; > end: cyl 1023/ head 254/ sector 63 > The data for partition 3 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 62910540, size 913857525 (446219 Meg), flag 0 > beg: cyl 1023/ head 255/ sector 63; > end: cyl 1023/ head 254/ sector 63 > The data for partition 4 is: > > denver:# > > There are what appears to be a freebsd base install from Jul 19/20th 2007 > on /dev/ad10s1{a,d,e,f} > > denver:#ls -l /maxtor500GB/tmp/ > total 2 > drwxrwxr-x 2 root operator 512 Jul 20 2007 .snap > > denver:#ls -l /maxtor500GB/ > total 38 > drwxrwxr-x 2 root operator 512 Jul 20 2007 .snap > drwxr-xr-x 2 root wheel 1024 Jul 19 2007 bin > drwxr-xr-x 7 root wheel 512 Jul 19 2007 boot > .. > > denver:#df -hl|grep ad10 > /dev/ad10s1a 496M 11M445M 2%/maxtor500GB > /dev/ad10s1d 989M106K910M 0%/maxtor500GB/var > /dev/ad10s1f 16G 97M 15G 1%/maxtor500GB/usr > /dev/ad10s1e 727M580K668M 0%/maxtor500GB/tmp > /dev/ad10s3d 422G384G4.0G99%/maxtor500GB/data > /dev/ad10s2d 15G 11G2.5G81%/maxtor500GB/data2 > > > running sysinstall also show s1 as 'fat' > > I've been writing/reading a lot of data from it just fine - Curios why s1 > is being detect as a 'fat' partition and not a fbsd slice. > Have not tried to put this disk into a windows/another box... I don't know why other than it has apparently been marked with an fstype (sysid) of 6 at some time. Maybe something started and went long enough to muck with the slice table but then did nothing else. Anyway, if you can mount, read and write it OK, I would not worry too much. If you plan to wipe and it for a new install it should not be a problem. jerry > > ]Peter[ > > ___ > 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-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: Bad Blocks... Should I RMA?
In freebsd-questions Digest, Vol 285, Issue 3, Message 28 On Mon, 16 Nov 2009 23:16:27 +0100 Roland Smith wrote: > On Mon, Nov 16, 2009 at 09:43:31PM +, Bruce Cran wrote: > > On Mon, 16 Nov 2009 19:23:58 +0100 > > Roland Smith wrote: > > > > > Install the smartmontools port, and check the drive with > > > 'smartctl -a /dev/ad4'. If you see a non-zero Reallocated_Sector_Ct, > > > RMA it immediately, as it is about to fail. If see other errors > > > reported, RMA it. > > > > > > (S)ATA disk have spare sectors available. If a sector fails, it is > > > replaced by one of the spares by the firmware. If you see a non-zero > > > Reallocated_Sector_Ct, it means that the drive has run out of spares. > > > This is bad news. > > > > Surely it's the other way around - if you see a value of zero in the > > "value" column the drive has run out of spare sectors and it's time to > > RMA the drive? > > I was talking about the _RAW_VALUE column. There seems to be some differences > in interpretation between vendors as to what the VALUE column means. Most of > the advice I've seen over the years says to look at the RAW_VALUE. > > See http://en.wikipedia.org/wiki/S.M.A.R.T. as well. Mmm, but as that article - which really only mentions the 'normalised' values smartctl presents in passing - points out, there can be quite a lot of variation between different manufacturers as to what RAW_VALUE actually represents for various attributes, whereas the usage of VALUE WORST THRESH values is much more consistent, and what the vendor is actually presenting as the SMART good/fair/fail analysis to the world. For instance, I've got two Fujitsu 5400rpm 2.5" drives in two laptops, one MHV2040AH with near 19,000 hours on it, and a much newer MHV2120AH, 40 and 120GB respectively. Nice quiet low-power laptop drives, fwiw. Both show as (more recently) being in the smartctl database, and both show _exactly_ the same values for this one: 5 Reallocated_Sector_Ct 0x0033 100 100 024Pre-fail Always - 8589934592000 Now if that were a number of 512-byte sectors, it'd be 4096000 GB! :) but both drives are 100% ok, as the VALUE / WORST figures show. > > From what I've seen the 'raw' column appears to count > > the number of sectors the drive has remapped using the spares buffer. > > If it gets into the hundreds it's probably time to think about RMA'ing > > the drive > > Yes, the raw value is the number of sectors allocated from the spares. I > originally thought it was the number of reallocations _beyond_ the > spares. That's a misunderstanding on my part. Again, may depend on the drive make/model. With the same make/model you can of course usefully compare raw values, but be careful about drawing inferences for different drives, or you may be RMA'ing needlessly .. > Nevertheless this attribute (along with several) is marked on the Wikipedia > page for smart as a "Potential indicator of imminent electromechanical > failure". You can find the same attributes marked as critical when perusing > mailing list archives. > > For me, my data is worth much more than the harddisk it is on. Some of it is > literally irreplacable. So my policy is to go look for a replacement harddisk > as soon as the RAW_VALUEs of any of these critical indicators start going up > from zero. And store any data at least on two harddisks, whether in a mirror > or in a cron+rsync setup. That'd be the case for the disks you tend to use. I was first going to reply to Bruce's message when I spotted yours, but you've dropped the last bit of his quote, that I was about to wholeheartedly agree with :) : If it gets into the hundreds it's probably time to think about RMA'ing : the drive - if you trust that the 'raw' column is reporting what you : think it is (you should really only base your decision on the value, : worst and threshold columns). cheers, Ian ___ 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: Lockup problems with USB disks
I apologise if this was posted more than once, for some reason the emails i sent were not reflected back to me, so i assumed they had not gone through , i checked the archive on the web page and they were there. For some reason some messages are not coming through on my gmail account. David Jackson wrote: I have a USB hard drive. Whenever I open two programs which utilise the USB hard drive simultaneously, these programs, i assume when they attempt to write to the hard drive lock up due to what i suspect must be some issue with the USB driver and perhaps a deadlock involving multiple concurrent accesses to the drive. When they attempt to access the drive the programs can lock up for several minutes before being unblocked. When only one program is using the drive this behaviour does not seem to occur. It seems most likely that this is a USB level problem involving the USB drivers. I am using FreeBSD 7.1. It is annoying behaviour to say the least and I wonder what can be done about it, and if this issue is being addressed, perhaps in the recent redesign of the USB code. It seems to be a pretty consistent issue, happening with multiple installs of FreeBSD and different drives. Thank you. ___ 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: Lockup problems with USB disks
Dnia wtorek 17 listopad 2009 o 15:18:22 David Jackson napisał(a): > I am using FreeBSD 7.1. It is annoying behaviour to say the > least and I wonder what can be done about it, and if this issue is being > addressed, perhaps in the recent redesign of the USB code. It seems to > be a pretty consistent issue, happening with multiple installs of > FreeBSD and different drives. Can you try the newest FreeBSD 8-RC3? It has a new usb stack so it's worth to try it. Regards, Maciej Milewski ___ 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"
jail - beginner questions
I'm experimenting with jails. I have installed a 7.2 stable FreeBSD inside vmware. Then I have created two jails, using the method written in the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html The only thing that didn't work is this: cd /etc make distribution DESTDIR=$D I really think that it should be corrected to: cd /usr/src make distribution DESTDIR=$D After mounting devfs ("mount -t devfs devfs /vm1/dev") I try to start it: /etc/rc.d/vm1 start vm1 But then I get this error in syslog: bind: Can't assign requested address Here is the config from /etc/rc.conf (in the host): jail_enable="YES"# Set to NO to disable starting of any jails jail_list="vm1 vm2" # Space separated list of names of jails jail_vm1_rootdir="/vm1" # jail's root directory jail_vm1_hostname="vm1.localdomain" # jail's hostname jail_vm1_ip="192.168.0.11" # jail's IP address jail_vm1_devfs_enable="YES" # mount devfs in the jail jail_vm1_devfs_ruleset="vm1_ruleset" # devfs ruleset to apply to jail jail_vm2_rootdir="/vm2" # jail's root directory jail_vm2_hostname="vm2.localdomain" # jail's hostname jail_vm2_ip="192.168.0.12" # jail's IP address jail_vm2_devfs_enable="YES" # mount devfs in the jail jail_vm2_devfs_ruleset="vm2_ruleset" # devfs ruleset to apply to jail Please help. Thank you, Laszlo ___ 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: flashplugin
I have periodically tested with getting flash working, and everytime I try it fails and I go back to undoing everything I have done and re-installing gnash. Gnash works but it does have a few niggles. I tried the following: > This is what I did for a 7.2 box. Note that there are compatibility > > # pkg_info -orx linux > linux-stuff > # pkg_delete -rx linux > > # cd /compat/linux > # find . -type f -ls > # rm -rf * > > # sysctl compat.linux.osrelease=2.6.16 > > OVERRIDE_LINUX_BASE_PORT= f10 > OVERRIDE_LINUX_NONBASE_PORTS= f10 > >to /etc/make.conf. > > # portinstall www/nspluginwrapper > # nspluginwrapper -v -a -i > > * Finally, fire up Firefox and check that it has loaded the flash plugin by > typing 'about:plugins' into the URL bar. Find a site with flash content[*], > and enjoy. Everything installed easily and about:plugins has Shockwave Flash and FutureSplash Player as enabled. But, when I go to youtube.com all I get a black screen and the video doesn't load. Does anyone have any ideas why flash isn't working? David ___ 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: panic? i386 on dell duo
On Tue, Nov 17, 2009 at 05:23:53AM -0500, Michael Powell wrote: > Gary Kline wrote: > > [snip] > > > > my network bud down in dallas is helping me get the dell as my > > new server. my old hp kayak is from 1998 and on its death-bed. > > > > okay: i have 7.2-R, i386. installs fine. jon horne changed the > > IP that the op sys | DHCP suite chose from 10.47.0.112 to > > 10.47.0.230. i do not know why, but he change the ifconfig line in > > /etc/rc.conf from ="DHCP" to ="inet 10.47.0.230 netmask 10.0.0.255" > ^^ > > Can't speak to most of the post but this netmask certainly looks strange. > > -Mike > probably my error. anyway, it seems that with the IP == 0.230 i ran into much trouble, but when i left it alone at == 0.112, many fewer hassles. i don't understand this. gary > > > ___ > 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" -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.31a release of Jottings: http://jottings.thought.org/index.php ___ 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"
hdd voltage
Hello, My computer get starts to reboot all the time I do a higher hdd use (like: fsck, copying more GB of data). I was sure that my power supply its not enough so I changed it (300W->450W), now it does the same. I'm looking for a tool to measure the exactly power consumiton (voltage and amper) of my hdd, cpu and ram on FreeBSD. Do you have any idea? Thank you! László ___ 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: no sshd on new server...
On Tue, Nov 17, 2009 at 04:01:17PM +0100, Polytropon wrote: > On Mon, 16 Nov 2009 15:12:36 -0800, Gary Kline wrote: > > On Mon, Nov 16, 2009 at 08:31:49PM +0100, Polytropon wrote: > > > By the way, it's not a problem if /etc/rc.conf is empty. > > > In this case, defaults are used, but: > > > > > > % grep sshd /etc/defaults/rc.conf > > > sshd_enable="NO"# Enable sshd > > > > > > As you see, sshd_enable is set to "NO" by default. > > > > > > > darn, but that would've been that last thing i would have > > expected... . i dont see any rationale... > > Rationale: Secure by default. Ermm... wait, that was > a different OS. :-) > > At least, there's no telnet enabled by default with > empty root password... :-) > all right, all right. it might be better to default on the side of security. but it takes s much more to login remote via ssh that it seems fairly secure to me if it were enabled. ... . > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.31a release of Jottings: http://jottings.thought.org/index.php ___ 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: hdd voltage
On Tue, 17 Nov 2009 09:43:04 -0800 (PST), Dánielisz László wrote: > I'm looking for a tool to measure the exactly power consumiton > (voltage and amper) of my hdd, cpu and ram on FreeBSD. > Do you have any idea? Not exactly every item, but there are tools in the ports, such as mbmon and xmbmon that allow you to monitor several voltages (as well as other parameters, such as temperature or fan speed, if they are transmitted to the OS). By the way, I'm not sure the issue you described points to too less power; my workstation is full of hard disks and old SCSI stuff, and I'm fine with a 235 W PSU (no joke) in long-term usage and I/O stress situations. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: no sshd on new server...
> > all right, all right. it might be better to default on the side of >security. but it takes s much more to login remote via ssh that >it seems fairly secure to me if it were enabled. ... . > not if you preseed your auth keys, then it's a passwordless secure connection. -- Adam Vande More ___ 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: no sshd on new server...
Gary Kline wrote: > On Tue, Nov 17, 2009 at 04:01:17PM +0100, Polytropon wrote: > >> On Mon, 16 Nov 2009 15:12:36 -0800, Gary Kline wrote: >> >>> On Mon, Nov 16, 2009 at 08:31:49PM +0100, Polytropon wrote: >>> By the way, it's not a problem if /etc/rc.conf is empty. In this case, defaults are used, but: % grep sshd /etc/defaults/rc.conf sshd_enable="NO"# Enable sshd As you see, sshd_enable is set to "NO" by default. >>> darn, but that would've been that last thing i would have >>> expected... . i dont see any rationale... >>> >> Rationale: Secure by default. Ermm... wait, that was >> a different OS. :-) >> >> At least, there's no telnet enabled by default with >> empty root password... :-) >> >> > > > all right, all right. it might be better to default on the side of > security. but it takes s much more to login remote via ssh that > it seems fairly secure to me if it were enabled. ... . > > There is a question during sysinstall: "Would you like to enable ssh login?" Guess you answered "no" there? ___ 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: Bad Blocks... Should I RMA?
Hi-- On Nov 17, 2009, at 7:51 AM, Ian Smith wrote: [ ... ] For instance, I've got two Fujitsu 5400rpm 2.5" drives in two laptops, one MHV2040AH with near 19,000 hours on it, and a much newer MHV2120AH, 40 and 120GB respectively. Nice quiet low-power laptop drives, fwiw. Both show as (more recently) being in the smartctl database, and both show _exactly_ the same values for this one: 5 Reallocated_Sector_Ct 0x0033 100 100 024Pre-fail Always - 8589934592000 Now if that were a number of 512-byte sectors, it'd be 4096000 GB! :) but both drives are 100% ok, as the VALUE / WORST figures show. I wouldn't conclude that the drives were 100% OK from that line, although they *might* be; I'd conclude that the drives aren't implementing this SMART field correctly in their firmware. Are you using the latest version of smartctl-- updates to that can sometimes better interpret vendor-specific odditities. Regards, -- -Chuck ___ 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: hdd voltage
start looking for a bad memory chip or io controller, any error messages or anything ? to provide ? 2009/11/17 Polytropon > On Tue, 17 Nov 2009 09:43:04 -0800 (PST), Dánielisz László < > laszlo_daniel...@yahoo.com> wrote: > > I'm looking for a tool to measure the exactly power consumiton > > (voltage and amper) of my hdd, cpu and ram on FreeBSD. > > Do you have any idea? > > Not exactly every item, but there are tools in the ports, > such as mbmon and xmbmon that allow you to monitor several > voltages (as well as other parameters, such as temperature > or fan speed, if they are transmitted to the OS). > > By the way, I'm not sure the issue you described points > to too less power; my workstation is full of hard disks > and old SCSI stuff, and I'm fine with a 235 W PSU (no > joke) in long-term usage and I/O stress situations. > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > ___ > 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-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
pf in FreeBSD 8.0-RCx
Hello All, There seems to be an issue with pf (at startup/boot time) where I get an error message about no IP address being associated with an interface. The only way I can get pf to load the rule set is to load it at the command line by using pfctl -f /etc/pf.conf. I have tried changing the startup order of pf so that it loads after all of the networking interfaces are brought up (including running the ppp daemon first to establish tun0) to no avail. I saw on the list that others have been experiencing a similar issue. Obviously, I would like to have a fix for this because if I have to reboot my box from a distant location, I am left with a wide open machine until I can login and reload the pf ruleset. What changed with pf since 7.2? Thanks, Matt ___ 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: hdd voltage
On Tue, 17 Nov 2009 12:57:26 -0500, Outback Dingo wrote: > start looking for a bad memory chip or io controller, any error messages or > anything ? to provide ? I would guess into a similar direction. Unexpected reboots... maybe run a memtest CD, followed by a "make buildworld" stress test? László, the more symptoms you can name (and provide system messages of them), the easier diagnostics will get. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: hdd voltage
Dnia wtorek 17 listopad 2009 o 18:43:04 Dánielisz László napisał(a): > Hello, > > My computer get starts to reboot all the time I do a higher hdd use (like: > fsck, copying more GB of data). I was sure that my power supply its not > enough so I changed it (300W->450W), now it does the same. I'm looking for > a tool to measure the exactly power consumiton (voltage and amper) of my > hdd, cpu and ram on FreeBSD. Do you have any idea? > > Thank you! > László I don't know if any tool will let you get how much power your drives are using but for monitoring voltage you should find something in ports. It can tell only if the voltage you get from PSU is rather OK or not. For measuring exactly you should first see work done by guys from xbitlabs[1] They are writing how they measure that but not in very simple way ;) Are you sure that those reboots aren't because of too high temperature on CPU or MB? [1] http://www.xbitlabs.com/articles/storage/display/hdd-power-cons.html -- Best Regards, Maciej Milewski ___ 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"
where to find libintl.so.8
FreeBSD 6.2-RELEASE FreeBSD 6.2-RELEASE #0 portsnap'd today running ver 1.2.8 of rdiff-backup which gets: ImportError: Shared object "libintl.so.8" not found, required by "librsync.so.1" 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: hdd voltage
In response to Polytropon : > On Tue, 17 Nov 2009 09:43:04 -0800 (PST), Dánielisz László > wrote: > > I'm looking for a tool to measure the exactly power consumiton > > (voltage and amper) of my hdd, cpu and ram on FreeBSD. > > Do you have any idea? > > Not exactly every item, but there are tools in the ports, > such as mbmon and xmbmon that allow you to monitor several > voltages (as well as other parameters, such as temperature > or fan speed, if they are transmitted to the OS). > > By the way, I'm not sure the issue you described points > to too less power; my workstation is full of hard disks > and old SCSI stuff, and I'm fine with a 235 W PSU (no > joke) in long-term usage and I/O stress situations. Not all power supplies are created equal. Unfortunately, there's no government oversight on power supply ratings, thus a cheap 450W power supply might go unstable if it has to supply 200W for very long, whereas a good quality 200W power supply might be able to put out 450W for short periods reliably. Additionally, are you sure your service power is good? Even the best power supply will fail if you're not getting 120V/60H at the outlet (or whatever voltage/freq you're supposed to get in your part of the world). Not a direct answer to your question, but hopefully some useful information to consider. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ 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: where to find libintl.so.8
On Tue, 17 Nov 2009 19:23:47 +0100, "Len Conrad" wrote: > > FreeBSD 6.2-RELEASE FreeBSD 6.2-RELEASE #0 > > portsnap'd today > > running ver 1.2.8 of > > rdiff-backup > > which gets: > > ImportError: Shared object "libintl.so.8" not found, required by > "librsync.so.1" The intl library is installed by the port gettext. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: where to find libintl.so.8
Len Conrad wrote: > FreeBSD 6.2-RELEASE FreeBSD 6.2-RELEASE #0 > > portsnap'd today > > running ver 1.2.8 of > > rdiff-backup > > which gets: > > ImportError: Shared object "libintl.so.8" not found, required by > "librsync.so.1" > > thanks > Len > This is installed by the devel/gettext port. It is probably installed in your machine (most ports depend on it) but something may have gone wrong during a portupgrade. /usr/ports/UPDATING states the following for gettext upgrades: As a result of the upgrade to gettext-0.17, the shared library version of libintl has changed, so you will need to rebuild all ports that depend on gettext: # portupgrade -rf gettext # portmaster -r gettext I suggest you try one of these commands. (Check with 'pkg_info -Ix gettext' first to see what gettext you are running) ___ 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: hdd voltage
On Tue, 17 Nov 2009 13:27:20 -0500, Bill Moran wrote: > Not all power supplies are created equal. Unfortunately, there's > no government oversight on power supply ratings, thus a cheap 450W > power supply might go unstable if it has to supply 200W for very > long, whereas a good quality 200W power supply might be able to > put out 450W for short periods reliably. That's true. People want crap, they get crap. :-) > Additionally, are you sure your service power is good? Even the > best power supply will fail if you're not getting 120V/60H at the > outlet (or whatever voltage/freq you're supposed to get in your part > of the world). In Germany, we only get the purest power made of highest quality electrons, 230V 50Hz 24/7/365. :-) Note that I'm running this power supply for more than 7 years now - the SAME power supply. > Not a direct answer to your question, but hopefully some useful > information to consider. That's right. If you have the chance, monitor your power outlet, e. g. with a long term peak monitor or a scope with battery backed up memory, just to make sure the requirements of the PSU are met. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: hdd voltage
On Tue, Nov 17, 2009 at 07:37:00PM +0100, Polytropon wrote: > > Additionally, are you sure your service power is good? Even the > > best power supply will fail if you're not getting 120V/60H at the > > outlet (or whatever voltage/freq you're supposed to get in your part > > of the world). > > In Germany, we only get the purest power made of highest > quality electrons, 230V 50Hz 24/7/365. :-) Note that I'm > running this power supply for more than 7 years now - the > SAME power supply. One pure electron a day keeps the plague[1] away... [1] http://en.wikipedia.org/wiki/Capacitor_plague Sorry, couldn't resist. ;-) -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ 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: hdd voltage
Thank you guys for the interest you bring solving my issue! Actualy I noticed one thing for sure: I have to hdd-s in my PC, an 80GB Seagate ATA (the o.s. boot hdd) and one 1T Seagate SATA (only for storage), there were no problems when I used just the 80GB neither with the 1T, I noticed only that I'm getting thouse reboots when I start to copy about more than 4-5GB from the 1T hdd to my laptop (on ftp). Maybe the hdd was too warm after copying that amount of data? Oh...I'm drunk or something but I just noticed that my 1T was not unmounted properly last week and I was doing only fsck with the disk mounted so nothing was modified to the file system, now I've done an fsck -yf to the 1T (unmounted)...I got some blocks (about 300) reapaired. Maybe this produces the reboots, what do you think so? I also done now an smartctl -l scttemp /dev/ad4 and I got the following result: 862009-11-17 19:4045 ** 872009-11-17 19:4145 ** 882009-11-17 19:4246 *** 892009-11-17 19:4345 ** 902009-11-17 19:4445 ** 912009-11-17 19:4546 *** 922009-11-17 19:4645 ** 932009-11-17 19:4746 *** .....( 4 skipped)... *** 982009-11-17 19:5246 *** 992009-11-17 19:5347 49 Celsius was the top of the tempature for this hdd, I think its normal. Thank you, László From: Polytropon To: Bill Moran Cc: Dánielisz László ; freebsd-questions@freebsd.org Sent: Tue, November 17, 2009 7:37:00 PM Subject: Re: hdd voltage On Tue, 17 Nov 2009 13:27:20 -0500, Bill Moran wrote: > Not all power supplies are created equal. Unfortunately, there's > no government oversight on power supply ratings, thus a cheap 450W > power supply might go unstable if it has to supply 200W for very > long, whereas a good quality 200W power supply might be able to > put out 450W for short periods reliably. That's true. People want crap, they get crap. :-) > Additionally, are you sure your service power is good? Even the > best power supply will fail if you're not getting 120V/60H at the > outlet (or whatever voltage/freq you're supposed to get in your part > of the world). In Germany, we only get the purest power made of highest quality electrons, 230V 50Hz 24/7/365. :-) Note that I'm running this power supply for more than 7 years now - the SAME power supply. > Not a direct answer to your question, but hopefully some useful > information to consider. That's right. If you have the chance, monitor your power outlet, e. g. with a long term peak monitor or a scope with battery backed up memory, just to make sure the requirements of the PSU are met. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: hdd voltage
Hi, all-- On Nov 17, 2009, at 10:27 AM, Bill Moran wrote: [ ... ] Not all power supplies are created equal. Unfortunately, there's no government oversight on power supply ratings, thus a cheap 450W power supply might go unstable if it has to supply 200W for very long, whereas a good quality 200W power supply might be able to put out 450W for short periods reliably. A very good-quality power supply with a thermally activated circuit breaker might tolerate a 250% overload for 20 seconds to a minute, but anything with a fuse is likely to blow in some tens of milliseconds. :-) There are some widely used standards for computer power supplies; almost all modern machines want ATX12V which is used by Intel P4s, Core, etc and AMD Athlon, Athon64 platforms. Multicore boxes commonly want another extension to the base ATX standard called EPS12V; both are well-documented here: http://en.wikipedia.org/wiki/ATX The other major standard in 80-plus certification, which is linked to Energy Star ratings; if you discount the branding, they still perform functional tests of PSUs at 20%, 50% and 100% of rated load, and confirm that the PSU isn't wasting excessive amounts of power. Saving 20-30 watts over time justifies the cost of a more expensive PSU, and it doesn't hurt that the machine doesn't have to deal with the extra thermal load. For example: http://www.80plus.org/manu/psu/psu_reports/CORSAIR_CMPSU-650HX_ECOS%201632_650W_Report.pdf Any new PSU which isn't 80-plus certified is pretty likely to be unable to run at 100% of rated load without failing. Additionally, are you sure your service power is good? Even the best power supply will fail if you're not getting 120V/60H at the outlet (or whatever voltage/freq you're supposed to get in your part of the world). This is also a good point. If you know what you're doing and have a multimeter, you can check your AC line and look for various issues like voltage sag under load, current leakage to ground, etc. Failing that, something like this Kill-A-Watt meter is quite handy: http://www.newegg.com/Product/Product.aspx?Item=N82E16882715001 ...although, obviously, one would want to obtain a unit intended for the local region's electrical standards if you are not in NA. Regards, -- -Chuck ___ 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: Lockup problems with USB disks
Thank you. I took a look. I was just wondering if this was a known bug, is it normal, etc. Maciej Milewski wrote: Dnia wtorek 17 listopad 2009 o 15:18:22 David Jackson napisał(a): I have a USB hard drive. Whenever I open two programs which utilise the USB hard drive simultaneously, these programs, i assume when they attempt to write to the hard drive lock up due to what i suspect must be some issue with the USB driver and perhaps a deadlock involving multiple concurrent accesses to the drive. When they attempt to access the drive the programs can lock up for several minutes before being unblocked. When only one program is using the drive this behaviour does not seem to occur. It seems most likely that this is a USB level problem involving the USB drivers. I am using FreeBSD 7.1. It is annoying behaviour to say the least and I wonder what can be done about it, and if this issue is being addressed, perhaps in the recent redesign of the USB code. It seems to be a pretty consistent issue, happening with multiple installs of FreeBSD and different drives. Thank you. I forgot to attach a link with information about this new stack. Some you can find at http://ivoras.sharanet.org/freebsd/freebsd8.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: hdd voltage
On Tue, Nov 17, 2009 at 09:43:04AM -0800, Dánielisz László wrote: > Hello, > > My computer get starts to reboot all the time I do a higher hdd use (like: > fsck, copying more GB of data). I was sure that my power supply its not > enough so I changed it (300W->450W), now it does the same. I'm looking for a > tool to measure the exactly power consumiton (voltage and amper) of my hdd, > cpu and ram on FreeBSD. Do you have any idea? Tools like mbmon can show you the different voltages that the power supply produces. But current isn't measured in the different circuits, AFAIK. If you see a drop in voltage before a reboot that would be a clear sign of trouble. Unfortunately the chips that do the monitoring sometimes only provide new values once every second. That is probably not fast enough to detect a swift voltage drop. There are devices (e.g. kill-a-watt) available that you can plug between the power outlet and the PC that show you the total power consumption. See e.g. http://forum.ncix.com/forums/index.php?mode=showthread&forum=116&threadid=1659654&pagenumber=1&msgcount=18&subpage=1 The abovementioned link shows a decent system using between 118 and 205 Watt. So I'd be surprised if your 450 Watt powersupply wasn't sufficient. (unless you have one of those graphics cards that is covered in fans and heatsinks and that you could still use to fry an egg on.) But I agree that it looks like a hardware problem. Unfortunately there are multiple possible causes. Check to see if all the cabling and cards are securely connected. Monitor the temperatures that the on-board sensors report. Remove dust from heatsinks and fans. Check the electrolytic capacitors on the motherboard. If the metal "lid" is bulging, it's busted. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpZFPHBveYt0.pgp Description: PGP signature
Re: hdd voltage
Right now I'm done with almost 20GB download from the BSD machine to my laptop by ftp, and 5GB to the BSD from http, in the mean while I've done almost 40GB of torrentflux's checking existing data and I do a make install to a port, all in the same time and everything is working great. I hope it will continue to work just like this. The hdd temperatures are: # smartctl -A /dev/ad0 | grep Temp && smartctl -A /dev/ad4 | grep Temp 194 Temperature_Celsius 0x0022 095 081 000Old_age Always - 48 194 Temperature_Celsius 0x0022 107 102 000Old_age Always - 43 Roland, I have no connected any display to that machine. From: Roland Smith To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Tue, November 17, 2009 8:42:18 PM Subject: Re: hdd voltage On Tue, Nov 17, 2009 at 09:43:04AM -0800, Dánielisz László wrote: > Hello, > > My computer get starts to reboot all the time I do a higher hdd use (like: > fsck, copying more GB of data). I was sure that my power supply its not > enough so I changed it (300W->450W), now it does the same. I'm looking for a > tool to measure the exactly power consumiton (voltage and amper) of my hdd, > cpu and ram on FreeBSD. Do you have any idea? Tools like mbmon can show you the different voltages that the power supply produces. But current isn't measured in the different circuits, AFAIK. If you see a drop in voltage before a reboot that would be a clear sign of trouble. Unfortunately the chips that do the monitoring sometimes only provide new values once every second. That is probably not fast enough to detect a swift voltage drop. There are devices (e.g. kill-a-watt) available that you can plug between the power outlet and the PC that show you the total power consumption. See e.g. http://forum.ncix.com/forums/index.php?mode=showthread&forum=116&threadid=1659654&pagenumber=1&msgcount=18&subpage=1 The abovementioned link shows a decent system using between 118 and 205 Watt. So I'd be surprised if your 450 Watt powersupply wasn't sufficient. (unless you have one of those graphics cards that is covered in fans and heatsinks and that you could still use to fry an egg on.) But I agree that it looks like a hardware problem. Unfortunately there are multiple possible causes. Check to see if all the cabling and cards are securely connected. Monitor the temperatures that the on-board sensors report. Remove dust from heatsinks and fans. Check the electrolytic capacitors on the motherboard. If the metal "lid" is bulging, it's busted. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) ___ 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: Lockup problems on FreeBSD disks
On Mon, Nov 16, 2009 at 06:39:15PM -0500, David Jackson wrote: > I have a USB hard drive. Whenever I open two programs which utilise the > USB hard drive simultaneously, these programs, i assume when they > attempt to write to the hard drive lock up due to what i suspect must be This particular problem is one I haven't seen. But I've had problems with USB harddisks freezing when trying to write large files. It seems that not USB<->ATA chipsets are created equal, and the 7.x USB stack seems to have problems with that. > It seems most likely that this is a USB level problem involving the USB > drivers. I am using FreeBSD 7.1. It is annoying behaviour to say the > least and I wonder what can be done about it, Try 8.0-PRERELEASE. The USB stack has been rewritten for 8.x, and my limited testing so far indicates it to work better with quirky hardware. The problem of a panic when unplugging a mounted USB drive should also be fixed. And even if you still have problems with the 8.x USB stack, I suspect the USB stack in 8.x is more likely to receive TLC than the one in 7.x, so it would be best to check that out. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpiVipaJIKRi.pgp Description: PGP signature
Re: hdd voltage
Roland, I installed mbmon, it looks like its a great application, but I have a question, I google it and I found no answers yet. With mbmon -r what values do you get? I figured out some but the rest I have no idea for what stands for. # mbmon -r TEMP0 : 42.0 TEMP1 : 67.0 TEMP2 : 67.0 FAN0 :0 FAN1 : 2410 FAN2 :0 VC0 : +1.36 VC1 : +1.42 V33 : +3.39 V50P : +5.11 V12P : +12.04 V12N : +1.46 V50N : +2.29 From: Roland Smith To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Tue, November 17, 2009 8:42:18 PM Subject: Re: hdd voltage On Tue, Nov 17, 2009 at 09:43:04AM -0800, Dánielisz László wrote: > Hello, > > My computer get starts to reboot all the time I do a higher hdd use (like: > fsck, copying more GB of data). I was sure that my power supply its not > enough so I changed it (300W->450W), now it does the same. I'm looking for a > tool to measure the exactly power consumiton (voltage and amper) of my hdd, > cpu and ram on FreeBSD. Do you have any idea? Tools like mbmon can show you the different voltages that the power supply produces. But current isn't measured in the different circuits, AFAIK. If you see a drop in voltage before a reboot that would be a clear sign of trouble. Unfortunately the chips that do the monitoring sometimes only provide new values once every second. That is probably not fast enough to detect a swift voltage drop. There are devices (e.g. kill-a-watt) available that you can plug between the power outlet and the PC that show you the total power consumption. See e.g. http://forum.ncix.com/forums/index.php?mode=showthread&forum=116&threadid=1659654&pagenumber=1&msgcount=18&subpage=1 The abovementioned link shows a decent system using between 118 and 205 Watt. So I'd be surprised if your 450 Watt powersupply wasn't sufficient. (unless you have one of those graphics cards that is covered in fans and heatsinks and that you could still use to fry an egg on.) But I agree that it looks like a hardware problem. Unfortunately there are multiple possible causes. Check to see if all the cabling and cards are securely connected. Monitor the temperatures that the on-board sensors report. Remove dust from heatsinks and fans. Check the electrolytic capacitors on the motherboard. If the metal "lid" is bulging, it's busted. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) ___ 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: hdd voltage
On Tue, 17 Nov 2009 12:14:10 -0800 (PST), Dánielisz László wrote: > Roland, > > I installed mbmon, it looks like its a great application, but > I have a question, I google it and I found no answers yet. > With mbmon -r what values do you get? I figured out some but > the rest I have no idea for what stands for. Welcome to the good world of excellent documentation. :-) Check out "man mbmon". The data delivered by mbmon can somewhat differ from system to system, depending on how the manufacturer of the "chipset" decided to communicate certain values to the OS. > # mbmon -r > TEMP0 : 42.0 > TEMP1 : 67.0 > TEMP2 : 67.0 > FAN0 :0 > FAN1 : 2410 > FAN2 :0 > VC0 : +1.36 > VC1 : +1.42 > V33 : +3.39 > V50P : +5.11 > V12P : +12.04 > V12N : +1.46 > V50N : +2.29 A reference here (from my system): % mbmon -r TEMP0 : 69.0<- The CPU temperature in °C TEMP1 : 23.0<- The Chip set temperature in °C TEMP2 : 20.0<- The main board / box temperature in °C FAN0 :0<--\ FAN1 :0<--+-- Speed of fans not available here FAN2 :0<--/ VC0 : +1.57 <- CPU voltage VC1 : +1.62 <- Another voltage I don't know V33 : +3.25 <- Reference +3.3 Volt V50P : +4.87 <- Reference +5.0 Volt V12P : +11.67 <- Reference +12.0 Volt V12N : +0.97 <- Reference -12.0 Volt V50N : +1.99 <- Seems to be reference -5.0 Volt, but looks strange As you can see in relation to your output, your board seems to put other values on the "default" named output lines, e. g. V12N = +1.46 V which can't be right, but "V12N" seems to be some chosen name for one of the data output lines, nothing more; it could be called "Bob", too. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: hdd voltage
On Tue, Nov 17, 2009 at 12:14:10PM -0800, Dánielisz László wrote: > Roland, > > I installed mbmon, it looks like its a great application, but I have a > question, I google it and I > found no answers yet. > With mbmon -r what values do you get? I figured out some but the rest I > have no idea for what stands for. This is what I get: mbmon -A -d Summary of Detection: * ISA monitor(s): ** Winbond Chip W83627HF/THF/THF-A found. mbmon -I -r -c1 TEMP0 : 33.0 TEMP1 : 39.0 TEMP2 : 22.0 FAN0 : 1687 FAN1 : 1350 FAN2 :0 VC0 : +2.48 VC1 : +3.65 V33 : +3.26 V50P : +5.48 V12P : +10.09 V12N : +1.05 V50N : +0.33 The meaning of the tags is explained in /usr/local/share/doc/mbmon/ReadMe I'm not sure as to how reliable this info is. E.g. My negative voltages are _way_ off and the +12V doesn't look too well, but the system runs OK. The CPU temperature (TEMP1) is much lower than the on-die temperatures that coretemp reports but that could just be because the sensor from the winbond chip is in another place. And as I said earlier, chips like the Winbond only update their values once every second. So you cannot use them to monitor fast changes. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpHj5UkLly3a.pgp Description: PGP signature
Re: jail - beginner questions
Laszlo Nagy writes: > I'm experimenting with jails. I have installed a 7.2 stable FreeBSD > inside vmware. Then I have created two jails, using the method written > in the handbook: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html > > The only thing that didn't work is this: > > cd /etc > make distribution DESTDIR=$D > > I really think that it should be corrected to: > > cd /usr/src > make distribution DESTDIR=$D No, I think you added the '/' before 'etc', which isn't in the web page. > > After mounting devfs ("mount -t devfs devfs /vm1/dev") I try to start it: > > /etc/rc.d/vm1 start vm1 > > But then I get this error in syslog: > > bind: Can't assign requested address > > Here is the config from /etc/rc.conf (in the host): > > jail_enable="YES"# Set to NO to disable starting > of any jails > jail_list="vm1 vm2" # Space separated list of names > of jails > > jail_vm1_rootdir="/vm1" # jail's root directory > jail_vm1_hostname="vm1.localdomain" # jail's hostname > jail_vm1_ip="192.168.0.11" # jail's IP address > jail_vm1_devfs_enable="YES" # mount devfs in the jail > jail_vm1_devfs_ruleset="vm1_ruleset" # devfs ruleset to apply to jail > > jail_vm2_rootdir="/vm2" # jail's root directory > jail_vm2_hostname="vm2.localdomain" # jail's hostname > jail_vm2_ip="192.168.0.12" # jail's IP address > jail_vm2_devfs_enable="YES" # mount devfs in the jail > jail_vm2_devfs_ruleset="vm2_ruleset" # devfs ruleset to apply to jail Is the problem perhaps in your /etc/rc.d/vm1 script? Normally you would use /etc/rc.d/jail. Are those addresses already assigned on the host? Was the jail perhaps already running? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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: hdd voltage
On Tue, 17 Nov 2009 19:58:04 +0100, cpghost wrote: > One pure electron a day keeps the plague[1] away... > > [1] http://en.wikipedia.org/wiki/Capacitor_plague > > Sorry, couldn't resist. ;-) I'm a doctor, not a resistor. So I couldn't resist, too. Electricity is actually made up of extremely tiny particles called electrons, that you cannot see with the naked eye unless you have been drinking. [...] But Edison's greatest achievement came in 1879, when he invented the electric company. Edison's design was a brilliant adaptation of the simple electrical circuit: the electric company sends electricity through a wire to a customer, then immediately gets the electricity back through another wire, then (this is the brilliant part) sends it right back to the customer again. This means that an electric company can sell a customer the same batch of electricity thousands of times a day and never get caught, since very few customers take the time to examine their electricity closely. In fact the last year any new electricity was generated in the United States was 1937; the electric companies have been merely re-selling it ever since, which is why they have so much free time to apply for rate increases. [...] Here is a simple experiment that will teach you an important electrical lesson: On a cool, dry day, scuff your feet along a carpet, then reach your hand into a friend's mouth and touch one of his dental fillings. Did you notice how your friend twitched violently and cried out in pain? This teaches us that electricity can be a very powerful force, but we must never use it to hurt others unless we need to learn an important electrical lesson. It also teaches us how an electrical circuit works. When you scuffed your feet, you picked up batches of "electrons", which are very small objects that carpet manufacturers weave into carpets so they will attract dirt. The electrons travel through your bloodstream and collect in your finger, where they form a spark that leaps to your friend's filling, then travels down to his feet and back into the carpet, thus completing the circuit. -- Dave Barry: "The Taming Of The Screw" And: Yes, I know it's OT, but it makes electricity problems look easier because you can now easily understand them. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: hdd voltage
Hi-- On Nov 17, 2009, at 12:28 PM, Polytropon wrote: V12N : +0.97 <- Reference -12.0 Volt V50N : +1.99 <- Seems to be reference -5.0 Volt, but looks strange As you can see in relation to your output, your board seems to put other values on the "default" named output lines, e. g. V12N = +1.46 V which can't be right, but "V12N" seems to be some chosen name for one of the data output lines, nothing more; it could be called "Bob", too. :-) V12N is pin 14 of the 20-pin ATX connector, and is supposed to be the blue wire, running at -12 VDC. It was used by ISA cards and an optional part of PCI bus interface, but is not normally used by anything. V50N is / was pin 20 of the ATX connector, running at -5 VDC, but has been removed since ~2003; the -5V rail was used ISA cards, but is now obsolete, and pin 20 is prohibited from being present in modern PSUs. Regards, -- -Chuck ___ 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: hdd voltage
Thank you very much! I just got a tip, it's called munin. From: Roland Smith To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Tue, November 17, 2009 9:34:12 PM Subject: Re: hdd voltage On Tue, Nov 17, 2009 at 12:14:10PM -0800, Dánielisz László wrote: > Roland, > > I installed mbmon, it looks like its a great application, but I have a > question, I google it and I > found no answers yet. > With mbmon -r what values do you get? I figured out some but the rest I > have no idea for what stands for. This is what I get: mbmon -A -d Summary of Detection: * ISA monitor(s): ** Winbond Chip W83627HF/THF/THF-A found. mbmon -I -r -c1 TEMP0 : 33.0 TEMP1 : 39.0 TEMP2 : 22.0 FAN0 : 1687 FAN1 : 1350 FAN2 :0 VC0 : +2.48 VC1 : +3.65 V33 : +3.26 V50P : +5.48 V12P : +10.09 V12N : +1.05 V50N : +0.33 The meaning of the tags is explained in /usr/local/share/doc/mbmon/ReadMe I'm not sure as to how reliable this info is. E.g. My negative voltages are _way_ off and the +12V doesn't look too well, but the system runs OK. The CPU temperature (TEMP1) is much lower than the on-die temperatures that coretemp reports but that could just be because the sensor from the winbond chip is in another place. And as I said earlier, chips like the Winbond only update their values once every second. So you cannot use them to monitor fast changes. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) ___ 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"
Wester Digital 'deep recovery cycle' and gstripe?
List, Has anyone used 'Wester Digital Caviar Black' disks in a gstripe? I'm building a 2TB gstripe, from 3x 1TB disks. My concern, is the disks are 'consumer grade' disks. Western Digital mention not to use them with a raid controller as they have a potential, 'deep recovery cycle', which an last up to 2 minutes. This would theoretically result in them being dropped from the array. Despite this, I've heard successful uses of these disks via gmirror. (Granted, not the same as gstripe). Again, in theory, if one disk enters a 'deep recovery cycle' and is dropped from the array, and during that time another disks does the same the array is toast, right? Umm...what are the odds of this occurring? War stories? (The more I type this out, the more it's starting to sound like a bad idea.) Thoughts, ideas? -Modulok- ___ 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: Wester Digital 'deep recovery cycle' and gstripe?
Modulok wrote: List, Has anyone used 'Wester Digital Caviar Black' disks in a gstripe? I'm building a 2TB gstripe, from 3x 1TB disks. My concern, is the disks are 'consumer grade' disks. Western Digital mention not to use them with a raid controller as they have a potential, 'deep recovery cycle', which an last up to 2 minutes. This would theoretically result in them being dropped from the array. Despite this, I've heard successful uses of these disks via gmirror. (Granted, not the same as gstripe). Again, in theory, if one disk enters a 'deep recovery cycle' and is dropped from the array, and during that time another disks does the same the array is toast, right? Umm...what are the odds of this occurring? War stories? (The more I type this out, the more it's starting to sound like a bad idea.) Thoughts, ideas? -Modulok- YMMV, but. In the past I have not had good luck with Western Digital disks, they are 'consumer grade'. It has been my experience that Seagate drives hold up better. My $0.02 Josef -- Josef GroschEmail : jgro...@es.net Computer Systems Engineer Office : 510-486-6597 Lawrence Berkeley National Laboratory Cell : 510-207-9976 ___ 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: Wester Digital 'deep recovery cycle' and gstripe?
On Tue, Nov 17, 2009 at 2:49 PM, Modulok wrote: > List, > > Has anyone used 'Wester Digital Caviar Black' disks in a gstripe? > > I'm building a 2TB gstripe, from 3x 1TB disks. My concern, is the > disks are 'consumer grade' disks. Western Digital mention not to use > them with a raid controller as they have a potential, 'deep recovery > cycle', which an last up to 2 minutes. This would theoretically result > in them being dropped from the array. Despite this, I've heard > successful uses of these disks via gmirror. (Granted, not the same as > gstripe). Again, in theory, if one disk enters a 'deep recovery cycle' > and is dropped from the array, and during that time another disks does > the same the array is toast, right? > > Umm...what are the odds of this occurring? War stories? (The more I > type this out, the more it's starting to sound like a bad idea.) > Thoughts, ideas? > -Modulok- > > In a stripe, if one goes it all goes. However I am not certain it's an issue in your case, the gstripe labeling mode with create a persistent config. If there's not a better answer, best thing to do would be to test it out. setting up gstripe takes like 10 minutes. -- Adam Vande More ___ 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: flashplugin
I never had tried to install Linux flash. I did install Windows flash under Firefox on Wine and it worked. I found that the freebsd port for Wine would not work but if I downloaded the source from WineHQ and compiled it would work fine, however, i tried a more recent version of Wine which did not compile right on FreeBSD, my current properly compiled wine version is, 1.1.7. You can try the most recent version of Wine and see if tht works, if not you can try 1.1.7 which worked well for me. David Collins wrote: I have periodically tested with getting flash working, and everytime I try it fails and I go back to undoing everything I have done and re-installing gnash. Gnash works but it does have a few niggles. I tried the following: This is what I did for a 7.2 box. Note that there are compatibility # pkg_info -orx linux > linux-stuff # pkg_delete -rx linux # cd /compat/linux # find . -type f -ls # rm -rf * # sysctl compat.linux.osrelease=2.6.16 OVERRIDE_LINUX_BASE_PORT= f10 OVERRIDE_LINUX_NONBASE_PORTS= f10 to /etc/make.conf. # portinstall www/nspluginwrapper # nspluginwrapper -v -a -i * Finally, fire up Firefox and check that it has loaded the flash plugin by typing 'about:plugins' into the URL bar. Find a site with flash content[*], and enjoy. Everything installed easily and about:plugins has Shockwave Flash and FutureSplash Player as enabled. But, when I go to youtube.com all I get a black screen and the video doesn't load. Does anyone have any ideas why flash isn't working? David ___ 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-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: Wester Digital 'deep recovery cycle' and gstripe?
Correction, it would be a graid3 setup. Sorry. -Modulok- On 11/17/09, Adam Vande More wrote: > On Tue, Nov 17, 2009 at 2:49 PM, Modulok wrote: > >> List, >> >> Has anyone used 'Wester Digital Caviar Black' disks in a gstripe? >> >> I'm building a 2TB gstripe, from 3x 1TB disks. My concern, is the >> disks are 'consumer grade' disks. Western Digital mention not to use >> them with a raid controller as they have a potential, 'deep recovery >> cycle', which an last up to 2 minutes. This would theoretically result >> in them being dropped from the array. Despite this, I've heard >> successful uses of these disks via gmirror. (Granted, not the same as >> gstripe). Again, in theory, if one disk enters a 'deep recovery cycle' >> and is dropped from the array, and during that time another disks does >> the same the array is toast, right? >> >> Umm...what are the odds of this occurring? War stories? (The more I >> type this out, the more it's starting to sound like a bad idea.) >> Thoughts, ideas? >> -Modulok- >> >> In a stripe, if one goes it all goes. However I am not certain it's an > issue in your case, the gstripe labeling mode with create a persistent > config. If there's not a better answer, best thing to do would be to test > it out. setting up gstripe takes like 10 minutes. > > > -- > Adam Vande More > ___ 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: jail - beginner questions
No, I think you added the '/' before 'etc', which isn't in the web page. Gotcha. Is the problem perhaps in your /etc/rc.d/vm1 script? Normally you would use /etc/rc.d/jail. Yes, I'm. Sorry - it was a typo. I used this: /etc/rc.d/jail start vm1 Are those addresses already assigned on the host? Was the jail perhaps already running? My computer is a windows machine, with address 192.168.0.X Then the FreeBSD host is actually a guest os running in wvmare. It has address 192.168.37.133 And finally, the vm1 jail should have 192.168.0.11 I don't know why 192.168.0.11 is not working for the jail. Anyway, if I change the jail's address to 192.168.10.11 then /etc/rc.d/jail start vm1 Starting jails: vm1.localdomain. Now the next question: how can I access the hosted (jailed) OS? I know it is a dumb question, but I have no idea. I would like to: a.) run sshd in the jail b.) login from the host to the jailed (hosted) OS c.) install programs on the jail, configure them and finally d.) use NATD to divert some pacakges from the host to the jail and back Probably this is what everybody does, so if you could point me to a tutorial or something, I would appriciate it. Thanks, Laszlo ___ 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: no sshd on new server...
On Tue, Nov 17, 2009 at 07:54:14PM +0200, Manolis Kiagias wrote: > Gary Kline wrote: > > > > There is a question during sysinstall: "Would you like to enable ssh login?" > Guess you answered "no" there? > i didn't see this question -- or don't remember seeing it. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.31a release of Jottings: http://jottings.thought.org/index.php ___ 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: hdd voltage
> Date: Tue, 17 Nov 2009 11:01:15 -0800 (PST) > From: D?nielisz L?szl? > Subject: Re: hdd voltage > To: freebsd-questions@freebsd.org > Message-ID: <615511.15311...@web30804.mail.mud.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > Thank you guys for the interest you bring solving my > issue! > > Actualy I noticed one thing for sure: > I have to hdd-s in my PC, an 80GB Seagate ATA (the o.s. > boot hdd) and one 1T Seagate SATA (only for storage), there > were no problems when I used just the 80GB neither with the > 1T, I noticed only that I'm getting thouse reboots when I > start to copy about more than 4-5GB from the 1T hdd to my > laptop (on ftp). Maybe the hdd was too warm after copying > that amount of data? > You don't specify what models you have. The specs for a random, slightly higher-end, 1TB SATA Seagate drive states an operating temperature range of 0C-60C. http://www.seagate.com/staticfiles/support/disc/manuals/desktop/Barracuda%207200.12/100529369e.pdf - Page 4, PDF page 11 Found: http://www.seagate.com/www/en-us/products/desktops/barracuda_hard_drives/barracuda_7200.12/#tTabContentSpecifications > 49 Celsius was the top of the tempature for this hdd, I > think its normal. After that Google study, I prefer to keep my drives below 40C if I can. Current temp (idle): 41C. Regards, James Phillips __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.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"
State of interface polling in FreeBSD
I'm building a FreeBSD router based on a small, Intel Atom-based board and am trying to decide whether or not to configure the kernel for polling. What's the current state of interface polling in FreeBSD? Is it worth doing with a single CPU, or will it actually increase system overhead? What "HZ" settings are recommended? --Brett Glass ___ 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: State of interface polling in FreeBSD
Hi-- On Nov 17, 2009, at 4:32 PM, Brett Glass wrote: I'm building a FreeBSD router based on a small, Intel Atom-based board and am trying to decide whether or not to configure the kernel for polling. What's the current state of interface polling in FreeBSD? Is it worth doing with a single CPU, or will it actually increase system overhead? What "HZ" settings are recommended? Polling probably works better with a single CPU, compared with doing service handling threads per interface, which can do better on SMP boxes. However, the main consideration is probably whether your NICs know how to do interrupt mitigation-- if they do, using that is probably better than using device polling, at least for low-to- moderate network load. Polling handles high load better; it wastes a fair amount of CPU under no to low network load. The base recommendation is to set HZ to 1000. If your CPU is having problems with that, try 250 or 500 HZ. Regards, -- -Chuck ___ 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: bash prompt update lagging
On 16/11/09 Polytropon said: > Your PS1 seems to include ${SHORT_PWD}, a variable. It seems > that it is not updated immediately after the cd command. Yeah, looks like it. Works on linux though... > By the way, this is bash-3.2.25 on FreeBSD/x86 7. bash-4.0.33_2 on x86 6.3. > Is this what you've intended the prompt to look like? I'm using an awk script to truncate any pwd that's too long. get_short_pwd() { # The actual max length is max_len + the length of trunc_symbol local max_length=$1 local trunc_symbol="..." if [ -z "$max_length" ]; then max_length=20 fi if [ "$PWD" != "$OLDPWD" ]; then SHORT_PWD=$(awk "BEGIN { path = ENVIRON[\"PWD\"] home = ENVIRON[\"HOME\"] home_len = length(home) max_len = $max_length sym_len = length(\"$trunc_symbol\") if(substr(path, 0, home_len) == home) { path = sprintf(\"~%s\", substr(path, home_len + 1)) } path_len = length(path) if (path_len > max_len) { path = sprintf(\"%s%s\", \"$trunc_symbol\", substr(path, path_len + sym_len - max_len + 1)) } print path }") OLDPWD=${PWD} fi } This is called via a build_prompt() function in my .bashrc. I guess I'll echo out some variables there and see what's happening. FTR this did work, and then I updated bash in ports. Mike -- Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein pgpdlhbrLLnoE.pgp Description: PGP signature
Re: Wester Digital 'deep recovery cycle' and gstripe?
On Wed, Nov 18, 2009 at 4:49 AM, Modulok wrote: > List, > > Has anyone used 'Wester Digital Caviar Black' disks in a gstripe? > > I'm building a 2TB gstripe, from 3x 1TB disks. My concern, is the > disks are 'consumer grade' disks. Western Digital mention not to use > them with a raid controller as they have a potential, 'deep recovery > cycle', which an last up to 2 minutes. This would theoretically result > in them being dropped from the array. Despite this, I've heard > successful uses of these disks via gmirror. (Granted, not the same as > gstripe). Again, in theory, if one disk enters a 'deep recovery cycle' > and is dropped from the array, and during that time another disks does > the same the array is toast, right? > > Umm...what are the odds of this occurring? War stories? (The more I > type this out, the more it's starting to sound like a bad idea.) > Thoughts, ideas? > -Modulok- google for WDTLER.EXE. I've had good results setting the recovery time to 7 seconds on the Caviar Greens & Blacks. FWIH, it only works up for WD drives up to 1TB. WD's Raid Ed. drives have the above setting on by default. ___ 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"
ELF library not found error
I did a search for this error and got numerous hits, none which really seemed to explain my situation. I've installed an 8.0 RC3 system and included Python 2.5, 2.6, and 3.1. The 2.6 version appears to run fine. However, for both 2.5 and 3.1 I get the error: ELF interpreter /libexec/ld-elf.so.1 not found What might cause this error? ___ 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: Bad Blocks... Should I RMA?
On Tue, 17 Nov 2009, Chuck Swiger wrote: > On Nov 17, 2009, at 7:51 AM, Ian Smith wrote: > [ ... ] > > For instance, I've got two Fujitsu 5400rpm 2.5" drives in two laptops, > > one MHV2040AH with near 19,000 hours on it, and a much newer MHV2120AH, > > 40 and 120GB respectively. Nice quiet low-power laptop drives, fwiw. > > > > Both show as (more recently) being in the smartctl database, and both > > show _exactly_ the same values for this one: > > > > 5 Reallocated_Sector_Ct 0x0033 100 100 024Pre-fail Always - > > 8589934592000 > > > > Now if that were a number of 512-byte sectors, it'd be 4096000 GB! :) > > but both drives are 100% ok, as the VALUE / WORST figures show. > > I wouldn't conclude that the drives were 100% OK from that line, although > they *might* be; I'd conclude that the drives aren't implementing this SMART > field correctly in their firmware. Are you using the latest version of > smartctl-- updates to that can sometimes better interpret vendor-specific > odditities. Hi Chuck, Well, _Fujitsu_ reckon they're 100% OK on THAT attribute (100 100 024), which is the point I (and Bruce, I think) was trying to make, along with perhaps a gentle "don't believe everything you read on Wikipedia" :) The smartctl program is not definitive for RAW_VALUE attributes; the manufacturer is. Some raw values are manufacturer-specific, like this one, and the smartctl author likely concentrates on the lowest hanging fruit; its database is already huge. This one is larger than 32 bits, possibly a mis-byte-ordered 48- or 64-bit value? If the two drives showed different values I'd pursue trying different byte orderings. And no, this certainly wouldn't be the latest smartctl; to compare the 120G drive I installed (last night) smartmontools on a 7.0 system that's soon to be upgraded to 7-STABLE, so using a 7.0-RELEASE ports tree with smartctl 5.37, which shows '009 Power_On_Seconds' as the only odd value for this make/model, from smartctl -P show /dev/ad0 cheers, Ian ___ 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"
Do permissions take time to take effect?
Hello, I wanted to create a shared directory writable by all users. When it initially failed, I assumed there may be a blanket ban on writing to directories owned by root. Today, I was able to write to the root-owned "Share" directory. However, when I re-created the directory owned by a special-purpose "Share" user, I ran into the same problem again. $ cd $ pwd /home/james $ cd /home/Share $ ls -la total 4 drwxrwxr-x 2 root users 512 Nov 14 09:39 . drwxr-xr-x 5 root wheel 512 Nov 14 09:39 .. $ grep users /etc/group users:*:100:james,backup $ cat > test.txt What? now it worked? $ ls test.txt $ rm test.txt ***After creating a special "Share" user*** $ cd /home/Share $ ls -la total 4 drwxrwxr-x 2 Share Share 512 Nov 17 21:04 . drwxr-xr-x 5 root wheel 512 Nov 17 21:04 .. $ cat > test.txt cannot create test.txt: Permission denied $ grep Share /etc/group Share:*:1003:james,backup $ Incidentally, I had another reason for creating a special-purpose "Share" user: I am exporting /home to Debian (Linux) clients. Since the "system" groups conflict with the Debian choices, I modified /var/yp/Makefile to only export users and groups in the range of 1001-2000. Regards, James Phillips PS: the first time, I made the mistake of adding whitespace in /etc/group (daily run checks this somehow) Is a blank line required at the end of the file? PPS: Tried adding blank line: no effect. __ Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ ___ 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: jail - beginner questions
On Tue, Nov 17, 2009 at 10:41:14PM +0430, Laszlo Nagy wrote: > My computer is a windows machine, with address 192.168.0.X > Then the FreeBSD host is actually a guest os running in wvmare. It has > address 192.168.37.133 > And finally, the vm1 jail should have 192.168.0.11 > > I don't know why 192.168.0.11 is not working for the jail. Anyway, if I > change the jail's address to 192.168.10.11 then > > /etc/rc.d/jail start vm1 > Starting jails: vm1.localdomain. > The address 192.168.0.11 must be assigned to a interface in the host FreeBSD. You can do it before starting the jail, or when the jail is being started. To assign the address before starting the jail do somthing like this: # ifconfig lnc0 alias 192.168.0.11/24 where lnc0 is the name of nic in the host FreeBSD And you can add to /etc/rc.conf: ifconfig_lnc0_alias0="inet 192.168.0.11/24" to assign the address then the host FreeBSD is booting. To assing the address when the jail is being started just add to /etc/rc.conf this: jail_vm1_interface="lnc0" This way is preferred. > Now the next question: how can I access the hosted (jailed) OS? I know > it is a dumb question, but I have no idea. I would like to: > > a.) run sshd in the jail > b.) login from the host to the jailed (hosted) OS > c.) install programs on the jail, configure them and finally > d.) use NATD to divert some pacakges from the host to the jail and back b.) 1. get the jails list: # jls JID IP Address Hostname Path 9 192.168.64.14 mx1.loc /store/jail/mx1 8 192.168.64.25 nslst.loc /store/jail/nslst 2. select required jail by JID, for example 9 for mx1.loc and do: # jexec 9 tcsh 3. you're in a.) Login inside the jail. Now add to /etc/rc.conf sshd_enable="YES" and execute: # /etc/rc.d/sshd start c.) When you're inside the jail you can install software like in the host system. You can use the pkg_add or the ports system. d.) It requires to use firewall either ipfw or pf. For example you can add to your /etc/pf.conf: nat on lnc0 from 192.168.0.11 to any -> 192.168.37.133 But the firewall requires more lines then this one to work correcly with all network traffic. And you have to know exactly what you want to get for using it. > > Probably this is what everybody does, so if you could point me to a > tutorial or something, I would appriciate it. > > Thanks, > > Laszlo > > ___ > 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-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: Do permissions take time to take effect?
On Tue, Nov 17, 2009 at 10:49 PM, James Phillips wrote: > Hello, > > I wanted to create a shared directory writable by all users. When it > initially failed, I assumed there may be a blanket ban on writing to > directories owned by root. Today, I was able to write to the root-owned > "Share" directory. However, when I re-created the directory owned by a > special-purpose "Share" user, I ran into the same problem again. > > $ cd > $ pwd > /home/james > $ cd /home/Share > $ ls -la > total 4 > drwxrwxr-x 2 root users 512 Nov 14 09:39 . > drwxr-xr-x 5 root wheel 512 Nov 14 09:39 .. > $ grep users /etc/group > users:*:100:james,backup > $ cat > test.txt > What? now it worked? > $ ls > test.txt > $ rm test.txt > > ***After creating a special "Share" user*** > > $ cd /home/Share > $ ls -la > total 4 > drwxrwxr-x 2 Share Share 512 Nov 17 21:04 . > drwxr-xr-x 5 root wheel 512 Nov 17 21:04 .. > $ cat > test.txt > cannot create test.txt: Permission denied > $ grep Share /etc/group > Share:*:1003:james,backup > $ > > Incidentally, I had another reason for creating a special-purpose "Share" > user: I am exporting /home to Debian (Linux) clients. Since the "system" > groups conflict with the Debian choices, I modified /var/yp/Makefile to only > export users and groups in the range of 1001-2000. > > Regards, > > James Phillips > > PS: the first time, I made the mistake of adding whitespace in /etc/group > (daily run checks this somehow) > Is a blank line required at the end of the file? > PPS: Tried adding blank line: no effect. > > Have you tried the handbook? http://www.freebsd.org/doc/en/books/handbook/network-nis.html -- Adam Vande More ___ 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: ELF library not found error
I should have mentioned that this shared library mentioned in the error is in fact present. For some reason though these apps seem to think it's missing... -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Peter Steele Sent: Tuesday, November 17, 2009 7:58 PM To: freebsd-questions@freebsd.org Subject: ELF library not found error I did a search for this error and got numerous hits, none which really seemed to explain my situation. I've installed an 8.0 RC3 system and included Python 2.5, 2.6, and 3.1. The 2.6 version appears to run fine. However, for both 2.5 and 3.1 I get the error: ELF interpreter /libexec/ld-elf.so.1 not found What might cause this error? ___ 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-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: ELF library not found error
On November 17, 2009, Peter Steele wrote: > I've installed an 8.0 RC3 system and > included Python 2.5, 2.6, and 3.1. The 2.6 version appears to run fine. > However, for both 2.5 and 3.1 I get the error: > > ELF interpreter /libexec/ld-elf.so.1 not found > > What might cause this error? If you upgraded from 7.x, you need to install the misc/compat7x port. Even better, rebuild all your ports. It will save you a lot of grief in the long run. Cheers, -- Norbert Papke. npa...@acm.org http://saveournet.ca Protecting your Internet's level playing field ___ 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: hdd voltage
2009/11/18 Dánielisz László : > Hello, > > My computer get starts to reboot all the time I do a higher hdd use (like: > fsck, copying more GB of data). I was sure that my power supply its not > enough so I changed it (300W->450W), now it does the same. I'm looking for a > tool to measure the exactly power consumiton (voltage and amper) of my hdd, > cpu and ram on FreeBSD. > Do you have any idea? > > Thank you! > László > You don't mention details on mobo/ram, but if you have >4gb ram on amd64, you might want to try reducing ram to <=4gb. I had one mobo (Intel DG965RYCK) that was exhibited odd behaviour with more than 4gb ram installed. Simple file copies (on ZFS), buildworlds etc caused various panics or outright hangs (!). Usually this would be a clear indication of faulty RAM, but it passed all memtests. Changed everything (ram, psu, hdd, cables, RMA'd the mobo), no difference. Turned out to be a BIOS bug, some linux list had discussions on the same bug. ___ 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: 8.0-RC3 USB lock up on mounting two partitions from one USB drive
Did newfs on those partition and made things worsen -- restore completely fails: (I had experienced another similar problem on an IDE, which works well for 6.4 and 7.2, but 8.0.) This dirve works fine under FreeBSD 6.4. Is something new in 8.0 making disk partition schema changed? g_vfs_done():da0s3d[READ(offset=98304, length=16384)]error = 6 g_vfs_done():da0s3d[WRITE(offset=192806912, length=16384)]error = 6 fopen: Device not configured cannot create save file ./restoresymtable for symbol table abort? [yn] (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xa, scs i status == 0x0 (da0:umass-sim0:0:0:0): removing device entry ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) Device da0s3d went missing before all of the data could be written to it; expect data loss. 99 23:19 sysinstall 100 23:20 newfs /dev/da0s3d 101 23:20 newfs /dev/da0s3e 102 23:21 mount /dev/da0s3d /mnt 103 23:21 cd /mnt 104 23:21 dump -0f - /home | restore -rf - 105 23:27 history 15 -Original Message- From: Guojun Jin Sent: Tue 11/17/2009 11:05 PM To: freebsd-sta...@freebsd.org Cc: questi...@freebsd.org; freebsd-...@freebsd.org Subject: 8.0-RC3 USB lock up on mounting two partitions from one USB drive When mounting two partitions from a USB dirve, it can cause the drive access lock up for a long time. Details: Terminal 1 -- term1# mount /dev/da0s3d /mnt term1# cd /mnt ; rm -fr * when rm starts, go to terminal 2 and do: term2# mount /dev/da0s3e /dist ### this will hanging for a long time and USB hard drive activity light is off. After more than 1-2 minutes, mount returns, and the drive activity light is blinking, thus removing is going on. term2# ls /dist ### this will cause dUSB dirve hanging again -- no avtivity. Similarly, ls will finish in a couple of miniutes or longer, the rm command continues; but for a while, the drive activity will stop again. Reboot machine, repeat the above steps, and result will be the same. Reboot machine again, and just mount one partition, then doing "rm -rf *" without involve the second partition, rm will finish quickly. Has anyone obseved this behave on 8.0-RC? -Jin ___ 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: hdd voltage
Hello, Indeed, my CPU: Intel(R) Celeron(R) CPU 2.53GHz (2530.04-MHz 686-class CPU) and 1GB of RAM, the fs used on both of the hard drives is ufs2. Now my machine is up 'till yesterday and everything is working fine. From: TJ Varghese To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Wed, November 18, 2009 7:52:57 AM Subject: Re: hdd voltage 2009/11/18 Dánielisz László : > Hello, > > My computer get starts to reboot all the time I do a higher hdd use (like: > fsck, copying more GB of data). I was sure that my power supply its not > enough so I changed it (300W->450W), now it does the same. I'm looking for a > tool to measure the exactly power consumiton (voltage and amper) of my hdd, > cpu and ram on FreeBSD. > Do you have any idea? > > Thank you! > László > You don't mention details on mobo/ram, but if you have >4gb ram on amd64, you might want to try reducing ram to <=4gb. I had one mobo (Intel DG965RYCK) that was exhibited odd behaviour with more than 4gb ram installed. Simple file copies (on ZFS), buildworlds etc caused various panics or outright hangs (!). Usually this would be a clear indication of faulty RAM, but it passed all memtests. Changed everything (ram, psu, hdd, cables, RMA'd the mobo), no difference. Turned out to be a BIOS bug, some linux list had discussions on the same bug. ___ 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"