Re: Backup complete gmirror/gstripe/gjournal drives, how-to?
Doug Poland wrote: Hello, I've got a 7.1-PRERELEASE i386 box with 4 SATA drives configured in a RAID-10 using gmirror, gstripe, and gjournal. Normally, I use dump and rsync for periodic backups on this machine, but I suspect that the gmirror/gstripe/gjournal information is not being backed up. If my assumption is correct, how can I perform a one-time backup such that I could do a bare-metal restore? The essence of the question being I want to preserve not only the data, but also the gmirror/gstripe/gjournal meta-data as well. The only thought that comes to mind is to boot with a 7.1 live filesystem CD-ROM and dd each drive, piping the results to my backup machine. e.g., host# dd if=/dev/ad4 bs=2m | gzip | nc backuphost 12345 host# dd if=/dev/ad6 bs=2m | gzip | nc backuphost 12346 host# dd if=/dev/ad10 bs=2m | gzip | nc backuphost 12347 host# dd if=/dev/ad12 bs=2m | gzip | nc backuphost 12348 Any thoughts, suggestions, caveats? I hope you understand the problems with this kind of backup procedures. Assuming that ad4,6,10,12 are the drives from which you created your RAID-10, everything is backed up, including GEOM metadata. signature.asc Description: OpenPGP digital signature
Re: Performance benchmarks pitting FreeBSD against Windows
changed it to 1MB everywhere. I've found that increasing vfs.read_max increases read performance quite a bit in bonnie++ benchmarks. sysctl vfs.read_max=32 what exactly this option do? read_max 32 what? UFS blocks? MAXPHYS blocks? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: PHP 5 | pcre extention
Dear all, Can someone tell me why, as of php 5.2.7, pcre extension is distributed with the core php5 package, and not as a standalone module anymore? Jos Chrispijn No idea but do not use 5.2.7 because of a security issue (see php.net) So stick to 5.2.6 till 5.2.8 is released. No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.15/1835 - Release Date: 7-12-2008 16:56 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Performance benchmarks pitting FreeBSD against Windows
what exactly this option do? read_max 32 what? UFS blocks? MAXPHYS blocks? UFS blocks. The default is 8 == 128 kB == MAXPHYS. so you have to raise MAXPHYS too. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked myself out.. AGAIN!!
J On Sun, Dec 07, 2008 at 11:04:00AM +0100, Redd Vinylene wrote: On this dedicated box here I made the mistake of adding a comment to root's entry in my password file: root:*:0:0::/root:/bin/sh # What I thought would be a harmless comment. Now I can't su to root. And my ISP is closed on Sundays. Is there any way I can fix this on my own? does remote machine have ipmi? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PHP 5 | pcre extention
Dear all, Can someone tell me why, as of php 5.2.7, pcre extension is distributed with the core php5 package, and not as a standalone module anymore? Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
source data for host CPU temperature
Hello maillist, Whether there is a unique, a general method of fetching of statistics on CPU temperature in FreeBSD. The general method - is available in view of excluding vendor-specific healh-agents with their vendors lock-in API. As i know some way for this: smb(4) (for old PC?), coretemp(4) (this is for new and only Intel hardware ?) and ipmi(4) if available, so each machine customize for temp statistics throuch individual setup for source data? And it is necessary to prefer what data if it is some given. For example 2 commands on host give diffrent result: (With 'ipmitool sensor |grep -i temp) -- Ambient Temp | 26.000 | degrees C | ok| na| na| na| 32.000| na| 39.000 CPU 1 Temp | na | degrees C | na| na| 74.000| -128.000 | -48.000 | na| na CPU 2 Temp | na | degrees C | na| na| 74.000| -128.000 | -48.000 | na| na CPU 1 OverTemp | 0x0| discrete | 0x0080| na| na| na| na| na| na CPU 2 OverTemp | 0x0| discrete | 0x0080| na| na| na| na| na| na -- i get 74C on my CPU1 and CPU2 (with coretemp(4) i get individual per-core sensor) % sysctl -a |egrep -E cpu\.[0-9]+\.temp dev.cpu.0.temperature: 38 dev.cpu.1.temperature: 45 dev.cpu.2.temperature: 42 dev.cpu.3.temperature: 69 ipmi/coretemp facility is fetching information for CPU from diffrent sensors? And how much correctly with coretemp(4) to receive the general temperature (one number as in Bios) if average(sum(core temperature)) / (num of core) ? Thanks in advance! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: IPFilter section in Handbook needs updating
First, thanks for your work on writing the section in the handbook, its greatly appreciated. The updates about where ipmon logging to local0 looks good. Not sure whether or not you want to change the bumping the syslogd using the ps and kill commands as /etc/rc.d/syslogd reload does work, and would be easier for someone that is just learning how everything works. Thanks, Dean Weimer Network Administrator Orscheln Management Co -Original Message- From: Fbsd1 [mailto:[EMAIL PROTECTED] Sent: Saturday, December 06, 2008 9:05 PM To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org; Dean Weimer Subject: Re: IPFilter section in Handbook needs updating G magicman wrote: And incomplete yes i agree that the doc does need to be updated and examples (more) need to be added. --- On Fri, 12/5/08, Dean Weimer [EMAIL PROTECTED] wrote: From: Dean Weimer [EMAIL PROTECTED] Subject: IPFilter section in Handbook needs updating To: freebsd-questions@freebsd.org Date: Friday, December 5, 2008, 10:07 AM I was just setting up ipfilter and ipmon on a FreeBSD 7 server, and noticed that the ipmon and syslog information under the ipfilter section of the handbook is incorrect. The section reads: -snip- 31.5.7 IPMON Logging Syslogd uses its own special method for segregation of log data. It uses special groupings called facility and level. IPMON in -Ds mode uses security as the facility name. All IPMON logged data goes to security The following levels can be used to further segregate the logged data if desired: LOG_INFO - packets logged using the log keyword as the action rather than pass or block. LOG_NOTICE - packets logged which are also passed LOG_WARNING - packets logged which are also blocked LOG_ERR - packets which have been logged and which can be considered short To setup IPFILTER to log all data to /var/log/ipfilter.log, you will need to create the file. The following command will do that: # touch /var/log/ipfilter.log The syslog function is controlled by definition statements in the /etc/syslog.conf file. The syslog.conf file offers considerable flexibility in how syslog will deal with system messages issued by software applications like IPF. Add the following statement to /etc/syslog.conf: security.* /var/log/ipfilter.log The security.* means to write all the logged messages to the coded file location. To activate the changes to /etc/syslog.conf you can reboot or bump the syslog task into re-reading /etc/syslog.conf by running /etc/rc.d/syslogd reload Do not forget to change /etc/newsyslog.conf to rotate the new log you just created above. -snip- In trying to configure this I found that ipmon -Dsa doesn't log to security, but logs to local0 instead. Reading the man page for ipmon does in fact state this. However it also list the -L option as being able to change this default behavior, I tried ipmon -DSa -L security, it excepts this, but doesn't actually change the logging to use security. It still only outputs to the syslog using local0, I also tried using ipmon -DSa -L local7 as well, still outputs to local0. It was easy enough to modify my syslog.conf to output the local0.* as well as security.* to the /var/log/security file. However it would be greatly appreciated if someone that actually understands what's going on here could get this info updated. It would have saved me some time, as well as I am sure some other people in the future. Of course it's always possible I am missing something simple here that is causing this discrepancy, please do inform me if I did. It's probably worth mentioning that I am starting ipmon using the rc.conf file with ipmon_enable=YES and ipmon_flags=-DSa, just in case the /etc/rc.d/ipmon script actually changes the default behavior of ipmon in some way, though I didn't see anything in it that should. And ps wwaux | grep ipmon does display the process running with the flags exactly as stated on the ipmon_flags line of the /etc/rc.conf file. Thanks, Dean Weimer Network Administrator Orscheln Management Co I wrote that whole firewall handbook section. How is the following for complete replacement of the 31.5.7 IPMON Logging section? 31.5.7 IPMON Logging Syslogd uses its own special method for segregation of log data. It uses special groupings called 'facility' and 'level'. IPMON in -Ds mode uses local0 as the 'facility' name. All IPMON logged data goes to local0. You have to manually configure the /etc/syslog.conf file by adding the statements to direct the Local0 'facility' to the log file name recording the log records. FBSD keeps all of its syslog files in /var/log/ directory. First allocate the new named log file for the IPFMON logged data. touch /var/log/ipfilter.log # will allocate the file The syslog function is controlled by definition statements in the /etc/syslog.conf file. You will have to edit the
install freebsd from inside another operating system
I'm just wondering if it is possible to install FreeBSD from inside a bootstrap operating system such as a knoppix or ubuntu preinstall? Reason I'm asking is that my boss is asking about getting another commodity server using a provider that doesn't offer freebsd. We do get KVM over IP however, and I assume that really clever people might know how to handle this sort of thing if they have console access. -- Robin Becker ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: install freebsd from inside another operating system
Reason I'm asking is that my boss is asking about getting another commodity server using a provider that doesn't offer freebsd. We do get KVM over IP however, and I assume that really clever people might know how to handle this sort of thing if they have console access. stupid/strange solution: run qemu under linux giving FReeBSD iso as cdrom, and linux swap partition as disk (disable swap on linux temporarily), install it WITHOUT making slices and labels (manually) - minimum install, make sure whole disk (actually linux swap partition) is bootable, then exit qemu, run linux fdisk to set swap partition as bootable instead of linux root, reboot. you will get FreeBSD working, repartition everything else, optionally copy FreeBSD to partition that has to be /, reboot, ready ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Performance benchmarks pitting FreeBSD against Windows
Wojciech Puchar wrote: changed it to 1MB everywhere. I've found that increasing vfs.read_max increases read performance quite a bit in bonnie++ benchmarks. sysctl vfs.read_max=32 what exactly this option do? read_max 32 what? UFS blocks? MAXPHYS blocks? UFS blocks. The default is 8 == 128 kB == MAXPHYS. signature.asc Description: OpenPGP digital signature
Re: what script is whacking root's files
At 11:33 AM 12/4/2008, Giorgos Keramidas wrote: On Thu, 04 Dec 2008 06:30:13 -0600, Derek Ragona [EMAIL PROTECTED] wrote: /root is on /dev/da0s1a This particular server is running in a VM on a vmware esx 3.5 server. The server runs fine, but every so often the dot files disappear for root. I have not found the behavior to follow a reboot, but some period of time. Hence my suspicions it was a periodic script. Check your crontab jobs then. * Do you have any local changes to the system crontab in `/etc/crontab'? If yes, what are those changes, and what do the scripts or other commands they run look like? * Do you have a user-specific crontab file for `root' in `/var/cron/tabs/root'? If yes what does it contain? ___ Thank you to everyone who made great suggestions. I found the errant script, and it was running out of a cron entry to clean up old mailscanner files. It seems if the directories in the script didn't all exist, and a cd failed, it left the script running in /root. I have since corrected the script to test for the directories existence first. But this was a case of can't see the forest for the trees and I do appreciate all the help and suggestions. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]