Re: Help booting FreeBSD with a ZFS root filesystem
On Tuesday 26 of January 2010 03:29:07 George Liaskos wrote: I had the same issue because i forgot to copy the zpool.cache under /zroot/boot/zfs. Yes, that is also mandatory. I forgot to mention... Elias ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
That seems to have been the problem. Thanks for the help. On Mon, Jan 25, 2010 at 5:29 PM, George Liaskos geo.lias...@gmail.com wrote: I had the same issue because i forgot to copy the zpool.cache under /zroot/boot/zfs. On Mon, Jan 25, 2010 at 9:31 PM, Ross Penner ross.pen...@gmail.com wrote: I'm trying to set up a system using ZFS as the root filesystem. I followed this guide: (http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot). Everything went swimmingly until I rebooted and the system failed to load. output: FreeBSD/i386 bootstrap loader, Revision 1.1 (root@, Mon Jan 25 13:03:11 UTC 2010) \ can't load 'kernel' Type '?' for a list of command, 'help' for more detailed help. OK I used the memstick 8.0-Release. Can anybody suggest what could have gone wrong, or how I could find out what could have gone wrong? Thank you for any help ___ 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: SU
are you logged as su, and can't execute commands ? or does su fail ? if you're correctly identified, what does your env and/or set contains Samuel Martín Moro CamTrace {EPITECH.} tek4 Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) On Tue, Jan 26, 2010 at 1:04 AM, Jon Radel j...@radel.com wrote: Shone Russell wrote: I am not able to execute any commands when I utilize the su function, I am entering our correct password. It was working on Friday, but now it's not. Please let us know exactly what you're entering (without the password, of course) and what the results are. Do you get an error message? Does it hang? What? -- --Jon Radel j...@radel.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
2010/1/26 Ross Penner ross.pen...@gmail.com That seems to have been the problem. Thanks for the help. On Mon, Jan 25, 2010 at 5:29 PM, George Liaskos geo.lias...@gmail.com wrote: I had the same issue because i forgot to copy the zpool.cache under /zroot/boot/zfs. On Mon, Jan 25, 2010 at 9:31 PM, Ross Penner ross.pen...@gmail.com wrote: I'm trying to set up a system using ZFS as the root filesystem. I followed this guide: (http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot). Everything went swimmingly until I rebooted and the system failed to load. output: FreeBSD/i386 bootstrap loader, Revision 1.1 (root@, Mon Jan 25 13:03:11 UTC 2010) \ can't load 'kernel' Type '?' for a list of command, 'help' for more detailed help. OK I used the memstick 8.0-Release. Can anybody suggest what could have gone wrong, or how I could find out what could have gone wrong? Thank you for any help ___ 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 once you have generated the zpool.cache never never never export the boot pool again. Exporting isnt the same as unmounting (a common misconception). If you do export it the pool will become unbootable. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
krad wrote: 2010/1/26 Ross Penner ross.pen...@gmail.com That seems to have been the problem. Thanks for the help. On Mon, Jan 25, 2010 at 5:29 PM, George Liaskos geo.lias...@gmail.com wrote: I had the same issue because i forgot to copy the zpool.cache under /zroot/boot/zfs. once you have generated the zpool.cache never never never export the boot pool again. Exporting isnt the same as unmounting (a common misconception). If you do export it the pool will become unbootable. Out of curiosity (because I had this problem a few weeks back), how does one move a bootable pool into another physical server in order to be able to see the pool as a 'data' set without exporting/importing, and then moving the pool back to the hardware that it normally boots from? Perhaps I was lucky when copying the cache back onto itself worked... Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
2010/1/26 Steve Bertrand st...@ibctech.ca krad wrote: 2010/1/26 Ross Penner ross.pen...@gmail.com That seems to have been the problem. Thanks for the help. On Mon, Jan 25, 2010 at 5:29 PM, George Liaskos geo.lias...@gmail.com wrote: I had the same issue because i forgot to copy the zpool.cache under /zroot/boot/zfs. once you have generated the zpool.cache never never never export the boot pool again. Exporting isnt the same as unmounting (a common misconception). If you do export it the pool will become unbootable. Out of curiosity (because I had this problem a few weeks back), how does one move a bootable pool into another physical server in order to be able to see the pool as a 'data' set without exporting/importing, and then moving the pool back to the hardware that it normally boots from? Perhaps I was lucky when copying the cache back onto itself worked... Steve with difficulty i suspect. You will probably have to specify an alternate root and zpool.cache file. Then copy the cache file onto the zpool before powering down, and NOT exporting. If you don't use an alternate zpool.cache file I suspect you will get issues as the test systems zpools will be referenced in there, and will cause a pickle when you bring the broken system up. Its probably best to use a non zfs based rescue system just to keep things simpler. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
2010/1/26 krad kra...@googlemail.com 2010/1/26 Steve Bertrand st...@ibctech.ca krad wrote: 2010/1/26 Ross Penner ross.pen...@gmail.com That seems to have been the problem. Thanks for the help. On Mon, Jan 25, 2010 at 5:29 PM, George Liaskos geo.lias...@gmail.com wrote: I had the same issue because i forgot to copy the zpool.cache under /zroot/boot/zfs. once you have generated the zpool.cache never never never export the boot pool again. Exporting isnt the same as unmounting (a common misconception). If you do export it the pool will become unbootable. Out of curiosity (because I had this problem a few weeks back), how does one move a bootable pool into another physical server in order to be able to see the pool as a 'data' set without exporting/importing, and then moving the pool back to the hardware that it normally boots from? Perhaps I was lucky when copying the cache back onto itself worked... Steve with difficulty i suspect. You will probably have to specify an alternate root and zpool.cache file. Then copy the cache file onto the zpool before powering down, and NOT exporting. If you don't use an alternate zpool.cache file I suspect you will get issues as the test systems zpools will be referenced in there, and will cause a pickle when you bring the broken system up. Its probably best to use a non zfs based rescue system just to keep things simpler. Not sure if there will be any issues with hostid being different. I presume the pool is imported with a -f option on boot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
Ross == Ross Penner ross.pen...@gmail.com writes: Ross That seems to have been the problem. Yes, what I learned the hard way is that every single step there needs to be precisely followed, without deviation, even if you don't understand it or think it's important. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
krad == krad kra...@googlemail.com writes: krad Not sure if there will be any issues with hostid being different. I krad presume the pool is imported with a -f option on boot No. The bootloader will not work with drives that were not imported at time of shutdown. One of the things I learned the hard way. I kept exporting after installation, out of my OCD to cleanly unmount everything before shutting down, and then cursed at my machine for not seeing the disk on boot. After four times of installing from scratch, I finally followed the instructions precisely (*without* the export), and it worked just fine. So, no, the bootloader will not import and especially not import -f. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help booting FreeBSD with a ZFS root filesystem
2010/1/26 Randal L. Schwartz mer...@stonehenge.com krad == krad kra...@googlemail.com writes: krad Not sure if there will be any issues with hostid being different. I krad presume the pool is imported with a -f option on boot No. The bootloader will not work with drives that were not imported at time of shutdown. One of the things I learned the hard way. I kept exporting after installation, out of my OCD to cleanly unmount everything before shutting down, and then cursed at my machine for not seeing the disk on boot. After four times of installing from scratch, I finally followed the instructions precisely (*without* the export), and it worked just fine. So, no, the bootloader will not import and especially not import -f. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion thats not what i meant. The pool could be in an imported state. However the pool knows who imported it, or rather the hostid of the machine. If you import it on another machine and dont export it then try to import it on another machine you have to use the -f flag. Not sure if this hostid mismatch would cause an issue on boot as i haven't tested it. You are right about exporting it does totally bugger all, hence my 1st post on this thread ___ 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
SNMP of FreeBSD
I'm running 8-Stable, and ports are current. I'm installing snmp support, mostly just to investigate it. I have three ports installed: bsnmptools-0.0.20060818_2 Snmp client tools mbrowse-0.3.1_8 An SNMP MIB Browser for X net-snmp-5.4.2.1_6 An extendable SNMP implementation I got a few errors after initial install. I don't know what pieces of snmp I want. I used the sample snmp.config from the /usr/src tree. I changed the name of the public community name. I uncommented the netgraph and pf lines and maybe even others 8o) I got rid of the errors on the console, except for this Warning: WARNING: attempt to domain_add(netgraph) after domainfinalize() Perhaps this is a bug in the example snmp.config I'm using? What client(s) tools should I look at? ___ 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: SNMP of FreeBSD
Steven Friedrich wrote: I'm running 8-Stable, and ports are current. I'm installing snmp support, mostly just to investigate it. I have three ports installed: bsnmptools-0.0.20060818_2 Snmp client tools mbrowse-0.3.1_8 An SNMP MIB Browser for X net-snmp-5.4.2.1_6 An extendable SNMP implementation I got a few errors after initial install. I don't know what pieces of snmp I want. I used the sample snmp.config from the /usr/src tree. I changed the name of the public community name. I uncommented the netgraph and pf lines and maybe even others 8o) I got rid of the errors on the console, except for this Warning: WARNING: attempt to domain_add(netgraph) after domainfinalize() Perhaps this is a bug in the example snmp.config I'm using? What client(s) tools should I look at? What is it exactly that you need/want SNMP for? If for client only, what do you need to poll? Steve ___ 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
mDNSResponder
I'm running 8-Stable and current ports. I installed mdnsd in an attempt to check out KDE4's Network Services use of zeroconf. I get these messages on the console: Starting mdnsd. Jan 26 18:38:33 laptop2 mDNSResponder: mDNSResponder (Engineering Build) (Jan 20 2010 04:57:08) starting Starting default mousedJan 26 18:38:33 laptop2 mDNSResponder: mDNS_AddDNSServer: Lock not held! mDNS_busy (0) mDNS_reentrancy (0) ___ 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: SNMP of FreeBSD
On Tuesday 26 January 2010 08:23:16 pm Steve Bertrand wrote: Steven Friedrich wrote: I'm running 8-Stable, and ports are current. I'm installing snmp support, mostly just to investigate it. I have three ports installed: bsnmptools-0.0.20060818_2 Snmp client tools mbrowse-0.3.1_8 An SNMP MIB Browser for X net-snmp-5.4.2.1_6 An extendable SNMP implementation I got a few errors after initial install. I don't know what pieces of snmp I want. I used the sample snmp.config from the /usr/src tree. I changed the name of the public community name. I uncommented the netgraph and pf lines and maybe even others 8o) I got rid of the errors on the console, except for this Warning: WARNING: attempt to domain_add(netgraph) after domainfinalize() Perhaps this is a bug in the example snmp.config I'm using? What client(s) tools should I look at? What is it exactly that you need/want SNMP for? If for client only, what do you need to poll? Steve I want to find out what I can monitor with it. I don't know enough about it to know if it will be useful to me. I'm an old hardware guy and I've been Admin'ing my own systems for many years. I am having a hard time finding pertinent documentation. I know one of the ports allows you to monitor the cpu, memory, etc. I already have a Superkaramba theme that has a StarTrek gauge for cpu, memory, swap, network in, network out, etc. I just want to know if SNMP has anything to offer me... ___ 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: SNMP of FreeBSD
Steven Friedrich wrote: On Tuesday 26 January 2010 08:23:16 pm Steve Bertrand wrote: Steven Friedrich wrote: I have three ports installed: bsnmptools-0.0.20060818_2 Snmp client tools mbrowse-0.3.1_8 An SNMP MIB Browser for X net-snmp-5.4.2.1_6 An extendable SNMP implementation I got a few errors after initial install. I don't know what pieces of snmp I want. I used the sample snmp.config from the /usr/src tree. I changed the name of the public community name. I uncommented the netgraph and pf lines and maybe even others 8o) I got rid of the errors on the console, except for this Warning: WARNING: attempt to domain_add(netgraph) after domainfinalize() Perhaps this is a bug in the example snmp.config I'm using? What client(s) tools should I look at? What is it exactly that you need/want SNMP for? If for client only, what do you need to poll? Steve I want to find out what I can monitor with it. I don't know enough about it to know if it will be useful to me. I'm an old hardware guy and I've been Admin'ing my own systems for many years. I am having a hard time finding pertinent documentation. I know one of the ports allows you to monitor the cpu, memory, etc. I already have a Superkaramba theme that has a StarTrek gauge for cpu, memory, swap, network in, network out, etc. I just want to know if SNMP has anything to offer me... Personally, I use SNMP for read-only network gathering information. Depending on the device you are trying to poll, you can generally retrieve almost all information from a device. What you have described that you have already seems like SNMP. Can you give an example of a device that you want to 'test' against? Assuming that you have an SNMP v2 device available for polling, try this on your FreeBSD box: # pkg_add -r net-snmp # rehash # snmpwalk -v2c -c your_ro_community ip_or_name_of_device If you want specifics to test against, let me know off-list, and I'll give you a Cisco router to poll. Steve ___ 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
devfs rules
Hi, I am trying to get devfs to only show me a few devices but I can't seem to get devfs to recognise the new rules that I create. devfs recognises some of the rules but not all of them: # devfs -m /path/to/jail rule showsets 1 2 3 4 8 9 10 11 Rules 12 and 13 are not recognised. If I try to set the devfs ruleset to 4 (for jail in /etc/defaults/devfs.rules) for the /dev mounted in the jail then add the rules and applyset everything works fine. When i try to start the jail I get the following: viper:/usr/jails# /etc/rc.d/jail restart myjail Configuring jails:. Starting jails:devfs rule: expecting argument for include devfs rule: expecting argument for include /etc/rc.d/jail: WARNING: devfs_set_ruleset: you must specify a ruleset number devfs rule: ioctl DEVFSIO_SAPPLY: No such process I'm not sure why I get the first warning, it doesn't seem to prevent anything from working in my other jails. The second warning is because devfs can't find the rule set (defined as jail_avr_devfs_ruleset=devfsrules_jail_avr in rc.conf) Can anyone shed any light on this for me I can't seem to figure it out. Googling doesn't seem to help me either viper:~$ uname -a FreeBSD viper 7.0-RELEASE-p12 FreeBSD 7.0-RELEASE-p12 #0: Wed Oct 7 13:39:21 BST 2009 VIPER i386 The contents of my devfs.rules is below # cat /etc/devfs.rules # # Devices for xserver in jail # [devfsrules_unhide_xorg=8] add path agpgart unhide #add path console unhide add path dri unhide add path 'dri*' unhide add path io unhide add path mem unhide #add path pci unhide add path tty unhide add path ttyv0 unhide add path ttyv1 unhide add path ttyv8 unhide [devfsrules_unhide_cam=9] add path 'da*' unhide add path 'cd*' unhide [devfsrules_unhide_kmem=10] add path kmem unhide # # This allows to run a desktop system in a jail. Think about what you want to # achieve before you use this, it opens up the entire machine to access from # this jail to any sophisticated program. # [devfsrules_jail_desktop=11] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add include $devfsrules_unhide_audio add include $devfsrules_unhide_input add include $devfsrules_unhide_xorg add include $devfsrules_unhide_cam add include $devfsrules_unhide_kmem # # add include $devfsrules_jail # [devfsrules_jail_dhcp=12] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add path 'bpf*' unhide add path net unhide add path 'net/*' unhide # # dev rules for serial avr device jail # [devfsrules_jail_avr=13] add include $devfsrules_jail add path 'cuaU*' unhide David Collins ___ 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: SNMP of FreeBSD
Steven Friedrich wrote: I want to find out what I can monitor with it. I don't know enough about it to know if it will be useful to me. I'm an old hardware guy and I've been Admin'ing my own systems for many years. I am having a hard time finding pertinent documentation. I know one of the ports allows you to monitor the cpu, memory, etc. I already have a Superkaramba theme that has a StarTrek gauge for cpu, memory, swap, network in, network out, etc. I just want to know if SNMP has anything to offer me... ...out of curiosity, are you simply trying to gain info on your local machine that you are working from? I use SNMP for network management, so I assumed that from the beginning. If what you are looking for is gathering stats from only the hardware that you are working on, that is a bit of a different story. With that said, I may be able to provide configs for that, too. Steve ___ 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: Finding Drivers For winWiFi Card
On 1/24/2010 12:00 AM, Warren Block wrote: On Sat, 23 Jan 2010, Programmer In Training wrote: This is probably the wrong place to ask, and if it is I ask your forgiveness. I'm browsing the FTP server for FreeBSD-8.0 packages[0] and am looking for drivers for my winWiFi card (zonenet, unsure of chipset currently) and realized, I'm not sure what package I would need for that. Post the model number of the Zonet card. Is it PCI or USB? You could try just loading all of the wireless kernel modules and seeing if any of them find the hardware. There's a list of those in the See Also section for wlan(4). -Warren Block * Rapid City, South Dakota USA I'm going to have to do that because the one provided by the company that put out the card are for FreeBSD 7.0. I tried using it anyway and the moment I went to load the kernel, it caused my computer to reboot without warning. It's PCI and I have no clue as to the model number anymore. -- PIT Emails are not formal business letters, whatever businesses may want. signature.asc Description: OpenPGP digital signature
ipfw: limit bandwidth
Hello I use FreeBSD 7.2 on a amd64. I want to limit the bandwidth thru this machine. Here is the relevante part of /etc/rc.firewall [snip] $ipfwcmd pipe 1 config bw 80kByte/s $ipfwcmd add pipe 1 ip from any to 192.168.10.0/24{100-254} via em1 $ipfwcmd queue 1 config pipe 1 weight 1 mask dst-ip 0x $ipfwcmd add queue 1 all from any to 192.168.10.0/24{100-254} via em1 [snip] I generate this from different sources but it seems that it is not working. What do I'm wrong? Here the part from ipfw show: 00100 0 0 check-state 00200 243271497881 pipe 1 ip from any to 192.168.10.0/24{100-254} via em1 00300 0 0 queue 1 ip from any to 192.168.10.0/24{100-254} via em1 [snip] Regards, -- Martin Schweizer off...@pc-service.ch PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; ___ 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