mfiutil stating battery not present after installing battery
I have a ServeRAID M5014 SAS/SATA Controller in a server and have just put an M5000 Series Battery directly onto the card. I was just expecting the battery to charge and be able to see it, but no joy after a few days and a restart. As far as I am aware, the battery should just be detected. What am I missing here? The server is 8.3-RELEASE and I get: # mfiutil show adapter mfi0 Adapter: Product Name: ServeRAID M5014 SAS/SATA Controller Serial Number: SV93301447 Firmware: 12.0.1-0097 RAID Levels: JBOD, RAID0, RAID1, RAID5, RAID10, RAID50 Battery Backup: not present NVRAM: 32K Onboard Memory: 256M Minimum Stripe: 8k Maximum Stripe: 1M # mfiutil show battery mfi0: No battery present # dmesg | grep mfi mfi0: LSI MegaSAS Gen2 port 0x1000-0x10ff mem 0x9794-0x97943fff,0x9790-0x9793 irq 16 at device 0.0 on pci1 mfi0: Megaraid SAS driver Ver 3.00 mfi0: 21863 (408970429s/0x0020/info) - Shutdown command received from host mfi0: 21864 (boot + 3s/0x0020/info) - Firmware initialization started (PCI ID 0079/1000/03c7/1014) mfi0: 21865 (boot + 3s/0x0020/info) - Firmware version 2.0.33-0901 mfi0: 21866 (boot + 65s/0x0008/WARN) - Battery Not Present mfi0: 21867 (boot + 65s/0x0020/info) - Board Revision mfi0: 21868 (boot + 83s/0x0002/info) - Inserted: PD 08(e0xff/s8) mfi0: 21869 (boot + 83s/0x0002/info) - Inserted: PD 08(e0xff/s8) Info: enclPd=, scsiType=0, portMap=00, sasAddr=5000cca00a66b335, mfi0: 21870 (boot + 83s/0x0002/info) - PD 08(e0xff/s8) FRU is 42D0628 mfi0: 21871 (boot + 83s/0x0002/info) - Inserted: PD 09(e0xff/s9) mfi0: 21872 (boot + 83s/0x0002/info) - Inserted: PD 09(e0xff/s9) Info: enclPd=, scsiType=0, portMap=02, sasAddr=5000cca00a6993b1, mfi0: 21873 (boot + 83s/0x0002/info) - PD 09(e0xff/s9) FRU is 42D0628 mfi0: 21874 (boot + 83s/0x0002/info) - Inserted: PD 0a(e0xff/s10) mfi0: 21875 (boot + 83s/0x0002/info) - Inserted: PD 0a(e0xff/s10) Info: enclPd=, scsiType=0, portMap=01, sasAddr=5000cca00a645a65, mfi0: 21876 (boot + 83s/0x0002/info) - PD 0a(e0xff/s10) FRU is 42D0628 mfi0: 21877 (boot + 84s/0x0008/WARN) - BBU disabled; changing WB virtual disks to WT mfi0: [ITHREAD] mfi0: 21878 (408970578s/0x0020/info) - Time established as 12/16/12 10:56:18; (145 seconds since power on) mfid0: MFI Logical Disk on mfi0 mfid0: 570296MB (1167966208 sectors) RAID volume '' is optimal Has anyone seen this sort of behaviour before or have any pointers? Thanks, 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
Re: OT: Shell Script using Awk
On Sat, 1 Nov 2008 18:21:55 -0700, David Allen [EMAIL PROTECTED] wrote: My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple files, but to keep things simple, say I have A Very Long String that containing records, each delimited by a single space. I need to print those records in columnar format, but with only 7 columns per line: record1 record2 record3 record4 record5 record6 record7 record08 record09 record10 record11 record12 record13 record14 ... Should be simple, but I'm getting nowhere. Is this what you're after? $ cat input col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 cat input | awk -F\ '{for (i=1;iNF;i+=7) print $i,$(i+1),$(i+2),$(i+3),$(i+4),$(i+5),$(i+6) }' Thanks! -- David promising never to do this again Allen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Shell Script using Awk
On Sat, 1 Nov 2008 20:17:54 -0800, David Allen [EMAIL PROTECTED] wrote: On 11/1/08, Jeremy Chadwick [EMAIL PROTECTED] wrote: On Sat, Nov 01, 2008 at 06:21:55PM -0700, David Allen wrote: My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple files, but to keep things simple, say I have A Very Long String that containing records, each delimited by a single space. I need to print those records in columnar format, but with only 7 columns per line: record1 record2 record3 record4 record5 record6 record7 record08 record09 record10 record11 record12 record13 record14 ... Should be simple, but I'm getting nowhere. $ cat input col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 $ cat output.awk { print $1 $2$3$4$5$6$7 print $8 $9 $10 $11 $12 $13 $14 } $ cat intput | awk -f output.awk col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 Maybe you want them to line up too. Would using tabs be appropriate? Maybe something like this? awk -F\ '{for (i=1;iNF;i+=7) print $i \t $(i+1) \t $(i+2) \t $(i+3) \t $(i+4) \t $(i+5) \t $(i+6) }' input Thanks for the reply, Jeremy, but that approach would require an entirely manual approach, which isn't suitable for what I'm working with. Writing a script that's the same size as the data I'm working with isn't an option. ;-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problems moving my jails (mv: Operation not permitted)
On Sat, 4 Oct 2008 22:27:09 +0200, Redd Vinylene [EMAIL PROTECTED] wrote: On Sat, Oct 4, 2008 at 9:22 PM, George Hartzell [EMAIL PROTECTED] wrote: Redd Vinylene writes: On Sat, Oct 4, 2008 at 9:02 PM, George Hartzell [EMAIL PROTECTED] wrote: If you do an ls -lo /home/jail/box/usr/bin/chpass, you'll probably see the schg flag set. Man chflags for more info and instructions on how to unset it g. Yes: -r-sr-xr-x 6 root wheel schg 18468 Aug 2 19:47 /usr/jail/box/usr/bin/chpass So I'd simply have to chflags noschg /usr/jail/box/usr/bin/chpass and then cp /usr/jail/box/usr/bin/chpass /home/jail/box/usr/bin/chpass? I think that you ought to be able to cp it as is. You're just not allowed to change the original (e.g. remove it), which is why your mv and rm failed. g. I've been told that changing flags might seriously mess things up. Is there any way to copy the remaining files from /usr/jail into /home/jail, or do I have to rebuild everything from scratch? Try copying the jail first as follows to retain permissions: stop the jail mkdir /usr/jail/newjail cd /usr/jail/origjail tar -cpf - . | tar -C /usr/jails/newjail -xpf - (don't worry about sockets not copying) If you want to copy the jail, change hostname, delete ssh public keys and change any other info pertinent to the jail. I just grep the hostname and ip in /etc and /usr/local/etc. Test the jail. It should work fine. If you want to remove the original jail, chflags -R noschg origjail rm -rf /usr/jail/origjail Ezjail really is very good too. You can convert your existing jails into the ezjail framework easily. Gary Much obliged. -- http://www.home.no/reddvinylene ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Filesystem of choice for a Linux/FreeBSD shared backup disk?
On Wed, 24 Sep 2008 00:48:48 +0200 (CEST), Andreas Davour [EMAIL PROTECTED] wrote: On Wed, 24 Sep 2008, Wojciech Puchar wrote: about trying to make the data as available as possible. Do anyone here have any suggestion about what kind of filesystem would be best to use? Can ufs2 be read by linux? It looks like it from my short persual of google hits, but it also looks kind of complicated. IS ext2 a safer bet? Anything totally different? Have you considered ZFS as an option? It's a good option for a backup disk where speed isn't too much of an issue. use ext2. FreeBSD handles ext2 fine, while linux doesn't handle UFS2 easily. just remember ext2 performance is lower, but for backups, copying etc. it shouldn't matter I'll remember the performance hit. While Linux don't handle UFS2 easily, how much of a trouble is it? I found a text about recompiling your kernel. Do you know if that's still needed? My source was kind of old. Just load it as a kernel module kldload ext2fs /andreas -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Filesystem of choice for a Linux/FreeBSD shared backup disk?
On Wed, 24 Sep 2008 04:02:11 +0200 (CEST), Andreas Davour [EMAIL PROTECTED] wrote: On Wed, 24 Sep 2008, Gary Newcombe wrote: On Wed, 24 Sep 2008 00:48:48 +0200 (CEST), Andreas Davour [EMAIL PROTECTED] wrote: On Wed, 24 Sep 2008, Wojciech Puchar wrote: about trying to make the data as available as possible. Do anyone here have any suggestion about what kind of filesystem would be best to use? Can ufs2 be read by linux? It looks like it from my short persual of google hits, but it also looks kind of complicated. IS ext2 a safer bet? Anything totally different? Have you considered ZFS as an option? It's a good option for a backup disk where speed isn't too much of an issue. AFAIK, ZFS is not yet ready for Linux. That's true and as it stands, licensing issues mean it won't be a kernel filesystem in linux. However, ZFS works fine using the fuse module. I use ZFS as a common filesystem for backup. The only issue is the differing versions of ZFS and which is used to create the pool. use ext2. FreeBSD handles ext2 fine, while linux doesn't handle UFS2 easily. just remember ext2 performance is lower, but for backups, copying etc. it shouldn't matter I'll remember the performance hit. While Linux don't handle UFS2 easily, how much of a trouble is it? I found a text about recompiling your kernel. Do you know if that's still needed? My source was kind of old. Just load it as a kernel module kldload ext2fs Now you are refering to FBSD, I was talking about using UFS2 in Linux. Sorry, I should learn to read. Afaik, ufs2 is read only under linux, write support is available but the module isn't built by default and it's listed as 'dangerous'. /Andreas -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freebsd-update linker.hints
Hi all, I'm having a problem updating my freebsd 7 amd64 box. After a recent freebsd-update, the kernel and linker.hints were updated. However with subsequent freebsd-updates, it reports that linker.hints still needs to be updated. I can (re)install but always the same. The linker.hints timestamp is being updated and the md5 isn't changed after reboot, so why this? I have tried removing /var/db/freebsd-update and rebuilding with no success. Btw, my freebsd 7 i386 box updated in one go with no problems. Anyone else seen this? FreeBSD fac51.pattersonsoftware.com 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18 06:48:16 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 Cheers, Gary. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Spawning Xdialogs from devd...
On Wed, 30 Apr 2008 08:25:04 +0200 (CEST), Wojciech Puchar [EMAIL PROTECTED] wrote: I'm curious to know what is actually going on here. I wouldn't have thought the context from which devd is restarted would make any difference, but clearly it does. Any clues? Also, does anyone have any ideas how I can call Xdialog to get the windows displayed? you run Xdialog from root (devd is root), you run X from user. Even if running X under root, it's the same behaviour. Unless devd is restarted, there is no sound or xdialogs. If I restart devd from another console, then the sound device becomes available and sound can be heard, but no Xdialogs. If devd is restarted from within X, then both sound and Xdialogs are ok. This is with any window manager, and nothing much else is running here to screw things up. The script is definitely being run on the keypress each time. There's obviously something I'm missing about devd here. ln -s /home/user/.Xuathority to /root/.Xauthority and of course add DISPLAY=:0 before Xdialog ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Spawning Xdialogs from devd...
On Wed, 30 Apr 2008 11:18:22 +0200 (CEST), Wojciech Puchar [EMAIL PROTECTED] wrote: Even if running X under root, it's the same behaviour. Unless devd is restarted, there is no sound or xdialogs. If I restart devd from another console, then the sound device becomes available and sound can do you restart devd from xterm? if so - DISPLAY gets set If I set DISPLAY first in .cshrc, there's no difference. Also, if I set DISPLAY in another console before restarting devd, still same case as before. Also, how about the sound? Is it that devd can't hook into the drivers in question so early in the boot process or something? be heard, but no Xdialogs. If devd is restarted from within X, then both sound and Xdialogs are ok. This is with any window manager, and nothing much else is running here to screw things up. The script is definitely being run on the keypress each time. There's obviously something I'm missing about devd here. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Spawning Xdialogs from devd...
G'day. This is an X61 laptop, and I'm trying to use the Fn keys to call scripts to do various jobs, while informing users or getting input using Xdialog popups. Here's an example case. Rebooting the pc if pressing Fn+F4. [/etc/devd.conf] ... notify 10 { match system ACPI; match subsystem IBM; action /root/bin/acpi_oem_exec.sh $notify ibm; }; [/root/bin/acpi_oem_exec.sh] ... #!/bin/sh NOTIFY=`echo $1` case ${NOTIFY} in 0x04) /home/rep/bin/script.sh MESSAGE=do script ;; *) MESSAGE=nothing found ;; esac ... [/etc/sysctl.conf] ... dev.acpi_ibm.0.events=1 [/home/rep/bin/reboot.sh] ... #!/bin/sh if [ ! -f /tmp/reboot ] ; then touch /tmp/reboot title=Reboot computer msg=Laptop is rebooting immediately... Xdialog --title $title --beep --ok-label OK --infobox $msg 5 40 2000 /dev/null 21 wavplay /home/rep/sounds/shutdown.wav /dev/null 21 shutdown -r now fi exit 0 From a fresh boot and startx, pressing Fn+F4 from the window manager (Window Maker) calls the script and executes, but no Xdialog or sound. If I startx and run devd in the foreground with: sh /etc/rc.d/devd stop devd -dD\ all is fine, Xdialogs displayed and sound too. Likewise, if I restart devd from an xterm (sh /etc/rc.d/devd restart), all is fine: However, if I restart devd from an ssh term or another console, only sound, no Xdialogs. I'm curious to know what is actually going on here. I wouldn't have thought the context from which devd is restarted would make any difference, but clearly it does. Any clues? Also, does anyone have any ideas how I can call Xdialog to get the windows displayed? Many thanks, Gary --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install problem to external usb hard drive
On Thu, 24 Apr 2008 16:31:33 -0500, Steve P. [EMAIL PROTECTED] wrote: Greetings, If this issue is resolved on another thread, pls direct me to it. This is a known issue, refer to: http://lists.freebsd.org/pipermail/freebsd-stable/2008-March/041112.html I am trying to install fbsd 7.0 on my laptop connected to a usb external hard drive. My objective is to leave my internal hd Vista install alone, booting the external install only. My laptop allows me to hit ESC on bootup and choose the external drive. My hardware: pc: laptop hp pavilion dv2315nr, cpu: amd turion64 x2, internal hd with Vista, dvd/cd, usb external hard drive(not flash) with primary partition type 165. My attempts so far: 1. download 7.0-RELEASE-amd64-disc1.iso and burned to cd. 2. booted cd fine, install works great. 3. During install, on external usb drve, deleted existing partition and created a new one type 165. 4. Sliced it up using defaults. 5. Installed the loader, standard to the external drive. 6. Choose minimum install. 7. Completed install. 8. Rebooted, used laptop ESC to boot external drive. 9. Attempt to book external drive results in a fast scrolling screen of zeros. If you want to use your existing installation, one route would be to get hold of the BTXTEST livefs that Dimitry Andric created (see thread above) as a useful tool until the bootloader code is fixed (I'm not sure if it's fixed in stable yet, I don't think so). Mount the cd and replace /boot/boot, /boot/boot2, and /boot/loader on your external hard drive with the ones from the cd. Then you could replace the mbr using fdisk and the bootblocks using bsdlabel. Boot from the livefs, go into fixit mode, then do something like: fdisk -B /dev/da0 bsdlabel -B /dev/da0s1 I think that should do the trick. Second attempt: Lines 1-8 the same, except on 5, installed the boot manager. 9. Attempt to boot external drive results in identical fast scrolling screen of zeros Questions: 1. How do you install fbsd to an external usb hard drive leaving internal drive untouched? Is this possible? 2. Or if it is impossible, do I need to install the loader on the internal normally booting hard drive? I suppose you could just install from the BTXTEST disk too. That would be easy. Any tips or url's appreciated in advance. Steve. -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mysql50-server port in 7.0
On Thu, 24 Apr 2008 09:02:35 -0600, Shawn Badger [EMAIL PROTECTED] wrote: Hi, I'm new to FreeBSD and it has impressed me so far. I came across a slight problem last night when trying to build mysql50 from ports - the build failed stating that C++ does not support the type 'long long'. The other ports I've tried have built fine, and I stripped my kernel without a hitch. Is the port broken? I could obviously go and hack the code into submission, but I refuse to believe that was the intended approach. I built this early this week on 7.0-RELEASE amd64 - no problems for me. Thanks, Shawn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install problem to external usb hard drive
On Thu, 24 Apr 2008 21:04:51 -0500, Steve P. [EMAIL PROTECTED] wrote: Gary, If I may ask for a clarification...the link you offered regarded a usb pen drive (flash?), while my problem involves a usb hard drive. Would the problem with a flash drive be the same as my problem with a hard drive? Yes, the same driver (umass) is involved in attaching either. If you already have an installation, try my instructions. It sounds like it might just be easier to install from the BTXTEST disk though. Thanks. Steve. - Original Message - From: Gary Newcombe To: Steve P. Subject: Re: Install problem to external usb hard drive Date: Fri, 25 Apr 2008 11:22:17 +1000 On Thu, 24 Apr 2008 16:31:33 -0500, Steve P. wrote: Greetings, If this issue is resolved on another thread, pls direct me to it. This is a known issue, refer to: http://lists.freebsd.org/pipermail/freebsd-stable/2008-March/041112.html I am trying to install fbsd 7.0 on my laptop connected to a usb external hard drive. My objective is to leave my internal hd Vista install alone, booting the external install only. My laptop allows me to hit ESC on bootup and choose the external drive. My hardware: pc: laptop hp pavilion dv2315nr, cpu: amd turion64 x2, internal hd with Vista, dvd/cd, usb external hard drive(not flash) with primary partition type 165. My attempts so far: 1. download 7.0-RELEASE-amd64-disc1.iso and burned to cd. 2. booted cd fine, install works great. 3. During install, on external usb drve, deleted existing partition and created a new one type 165. 4. Sliced it up using defaults. 5. Installed the loader, standard to the external drive. 6. Choose minimum install. 7. Completed install. 8. Rebooted, used laptop ESC to boot external drive. 9. Attempt to book external drive results in a fast scrolling screen of zeros. If you want to use your existing installation, one route would be to get hold of the BTXTEST livefs that Dimitry Andric created (see thread above) as a useful tool until the bootloader code is fixed (I'm not sure if it's fixed in stable yet, I don't think so). Mount the cd and replace /boot/boot, /boot/boot2, and /boot/loader on your external hard drive with the ones from the cd. Then you could replace the mbr using fdisk and the bootblocks using bsdlabel. Boot from the livefs, go into fixit mode, then do something like: fdisk -B /dev/da0 bsdlabel -B /dev/da0s1 I think that should do the trick. Second attempt: Lines 1-8 the same, except on 5, installed the boot manager. 9. Attempt to boot external drive results in identical fast scrolling screen of zeros Questions: 1. How do you install fbsd to an external usb hard drive leaving internal drive untouched? Is this possible? 2. Or if it is impossible, do I need to install the loader on the internal normally booting hard drive? I suppose you could just install from the BTXTEST disk too. That would be easy. Any tips or url's appreciated in advance. Steve. -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: where do i find jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar /
On Fri, 18 Apr 2008 23:09:14 -0700, Gary Kline [EMAIL PROTECTED] wrote: People, I've been looking all over sun-country a nd can't find jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar http://www.java.net/download/tiger/tiger_u14/jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar Any clues? thanks much. -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [SSHd] Limiting access from authorized IP's
Hi Gilles, ssh is part of the base system, not an installed port (by default anyway) so you won't see it with pkg_info which will only list installed packages. The config file is /etc/ssh/sshd_config. To limit connections, you should be using the firewall. I do use hosts.allow too, but the firewall is your primary defence. hth, Gary On Fri, 18 Apr 2008 10:51:45 +0200 Gilles [EMAIL PROTECTED] wrote: Hello I have a couple of questions about running SSHd: 1. I'd like to limit connections from the Net only from specific IP's. It seems like there are several ways to do it (/etc/hosts.allow, AllowHosts/AllowUsers, TCP-wrapper, port-knocking, etc.). Which would you recommend? 2. Although it's up and running, I can't find SSHd in the list of installed apps: $ which sshd /usr/sbin/sshd $ pkg_info | grep -i ssh = Nada. How come? Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror disk fail questions...
On Fri, 18 Apr 2008 10:40:04 -0700, Christopher Cowart [EMAIL PROTECTED] wrote: Gary Newcombe wrote: [...] # gmirror status [mesh:/var/log]# gmirror status NameStatus Components mirror/gm0 DEGRADED ad4 looking in /dev/ however, we have crw-r- 1 root operator0, 83 17 Apr 13:58 ad4 crw-r- 1 root operator0, 91 17 Apr 13:58 ad4s1 crw-r- 1 root operator0, 84 17 Apr 13:58 ad6 crw-r- 1 root operator0, 92 17 Apr 13:58 ad6a crw-r- 1 root operator0, 99 17 Apr 13:58 ad6as1 crw-r- 1 root operator0, 93 17 Apr 13:58 ad6b crw-r- 1 root operator0, 94 17 Apr 13:58 ad6c crw-r- 1 root operator0, 100 17 Apr 13:58 ad6cs1 crw-r- 1 root operator0, 95 17 Apr 13:58 ad6d crw-r- 1 root operator0, 96 17 Apr 13:58 ad6e crw-r- 1 root operator0, 97 17 Apr 13:58 ad6f crw-r- 1 root operator0, 98 17 Apr 13:58 ad6s1 crw-r- 1 root operator0, 101 17 Apr 13:58 ad6s1a crw-r- 1 root operator0, 102 17 Apr 13:58 ad6s1b crw-r- 1 root operator0, 103 17 Apr 13:58 ad6s1c crw-r- 1 root operator0, 104 17 Apr 13:58 ad6s1d crw-r- 1 root operator0, 105 17 Apr 13:58 ad6s1e crw-r- 1 root operator0, 106 17 Apr 13:58 ad6s1f I am guessing that a failing disk is responsible for the data corruption, but I have no errors in /var/log/messages or console.log. On every boot, the mirror is marked clean ad there's no warnings about a disk failing anywhere? Where should I be looking for or what should I be doing to get any warnings? Also, how-come if ad4 is the working disk, ad4's slices seem to be labelled as ad6. What's going on here? To me, ad6 appears to have correct labelling for the mirror from ad6s1a-f I believe the kernel hides individual labels for a gmirror volume. The labels on ad4 should be visible in /dev/mirror/. Because gmirror really just mirrors the data block by block (with a little bit of meta data at the very end of the drive), once the drive is no longer a member of an array, the kernel treats it as an individual drive and allows visibility of all the labels. OK, so not to worry about the slices. How can I test for sure whether the disk is damaged or dying, or whether this is just a temporary glitch in the mirror? This is the first time I've had a gmirror raid give me problems. The first time a drive gets kicked out, I typically try to re-insert it. We have monitoring, so we receive notifications if it fails again. After that, I get the vendor to replace it. Assuming ad6 has been deactivated/disconnected, I was thinking of trying: gmirror activate gm0 ad6 gmirror rebuild gm0 ad6 Is this safe? You have to kick ad6 out and re-insert it: # gmirror forget # gmirror insert gm0 /dev/ad6 After doing that, I would watch closely for a while in case your drive is actually failing. I've written a small nagios check for gmirror; let me know if you'd like me to send it (it could easily be adapted to a cron job). You can also get `gmirror status' output in your dailies by adding daily_status_gmirror_enable=YES to /etc/periodic.conf. I've since added the gmirror entry to periodic.conf, but your script sounds ideal. I would like that, thanks. I would much rather get some warning about this happening as it does appear to have caused some data corruption. But, given it's timing out on boot, I would personally bag the drive and replace it. You'll still need to run the same 2 commands above. [mesh:/dev/mirror]# gmirror forget Missing device(s). [mesh:/dev/mirror]# gmirror status NameStatus Components mirror/gm0 DEGRADED ad4 [mesh:/dev/mirror]# gmirror insert gm0 /dev/ad6 Not all disks connected. Looks like it is new disk time then after all. Thanks for your advice. Gary -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
gmirror disk fail questions...
Hi all, Yesterday, after users complaining of strange things happening in their accounting package, I rebooted the server only to find that it never came back up. gmirror was complaining about ad6 in the raid and the server had hung bringing the mirror up (this has happened twice now). uname -a FreeBSD mesh.lhshoses.com.au 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Jan 18 22:55:39 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MESH i386 After a hard reboot, provider ad4 was available, ad6 timed out and the server booted. dmesg ad4: 76324MB WDC WD800JD-23LSA0 07.01D07 at ata2-master SATA150 ad6: 76324MB WDC WD800JD-23LSA0 07.01D07 at ata3-master SATA150 GEOM_MIRROR: Device gm0 created (id=3803006992). GEOM_MIRROR: Device gm0: provider ad4 detected. Root mount waiting for: GMIRROR Root mount waiting for: GMIRROR Root mount waiting for: GMIRROR Root mount waiting for: GMIRROR GEOM_MIRROR: Force device gm0 start due to timeout. GEOM_MIRROR: Device gm0: provider ad4 activated. GEOM_MIRROR: Device gm0: provider mirror/gm0 launched. Trying to mount root from ufs:/dev/mirror/gm0s1a # gmirror status [mesh:/var/log]# gmirror status NameStatus Components mirror/gm0 DEGRADED ad4 looking in /dev/ however, we have crw-r- 1 root operator0, 83 17 Apr 13:58 ad4 crw-r- 1 root operator0, 91 17 Apr 13:58 ad4s1 crw-r- 1 root operator0, 84 17 Apr 13:58 ad6 crw-r- 1 root operator0, 92 17 Apr 13:58 ad6a crw-r- 1 root operator0, 99 17 Apr 13:58 ad6as1 crw-r- 1 root operator0, 93 17 Apr 13:58 ad6b crw-r- 1 root operator0, 94 17 Apr 13:58 ad6c crw-r- 1 root operator0, 100 17 Apr 13:58 ad6cs1 crw-r- 1 root operator0, 95 17 Apr 13:58 ad6d crw-r- 1 root operator0, 96 17 Apr 13:58 ad6e crw-r- 1 root operator0, 97 17 Apr 13:58 ad6f crw-r- 1 root operator0, 98 17 Apr 13:58 ad6s1 crw-r- 1 root operator0, 101 17 Apr 13:58 ad6s1a crw-r- 1 root operator0, 102 17 Apr 13:58 ad6s1b crw-r- 1 root operator0, 103 17 Apr 13:58 ad6s1c crw-r- 1 root operator0, 104 17 Apr 13:58 ad6s1d crw-r- 1 root operator0, 105 17 Apr 13:58 ad6s1e crw-r- 1 root operator0, 106 17 Apr 13:58 ad6s1f I am guessing that a failing disk is responsible for the data corruption, but I have no errors in /var/log/messages or console.log. On every boot, the mirror is marked clean ad there's no warnings about a disk failing anywhere? Where should I be looking for or what should I be doing to get any warnings? Also, how-come if ad4 is the working disk, ad4's slices seem to be labelled as ad6. What's going on here? To me, ad6 appears to have correct labelling for the mirror from ad6s1a-f How can I test for sure whether the disk is damaged or dying, or whether this is just a temporary glitch in the mirror? This is the first time I've had a gmirror raid give me problems. Assuming ad6 has been deactivated/disconnected, I was thinking of trying: gmirror activate gm0 ad6 gmirror rebuild gm0 ad6 Is this safe? I haven't tried pulling either disk from the server as I am remote from the site. Cheers, Gary. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installing to a custom location with buildworld/DESTDIR
On Sat, 23 Sep 2006 16:08:42 +0100 Chris phatfish at gmail.com wrote: I have an encrypted disk setup where i want to install a fresh system using buildworld/buildkernel on my current install. I looked around and it seems that the bellow commands should do what i want. But I'm not sure if it is the best way to do it, or if the procedure is out of date (I'm running 6.1). cd /usr/src setenv DESTDIR /mnt/root make buildworld make buildkernel KERNCONF=MYKERNEL cd /usr/src/etc; make distribution Hi Chris, That's all I do, but you'll need to install world and kernel too. Cheers Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Creating a bootable CD with CD Loader
On Fri, 22 Sep 2006 17:45:36 +0100 Chris [EMAIL PROTECTED] wrote: Hi, I'm looking to create my own custom boot CD that will be used to bootstrap fully encrypted system using GEOM ELI. All the CD needs to do is load a kernel to initialize the encrypted root partition on the HDD, and read a key file to decrypt it. Hi Chris, I recently did this for two laptops, one booting from usb and the other from cd with both of them getting the key from a usb drive. If your key is on the cd, then it's no problem. A bit harder if you have to boot from cd and then mount a usb drive to read the key. I ripped the CD Loader image out of one of the FreeBSD 6.1 CD's, and it seems to work as wanted. It loads the kernel from the system I'm running at the moment, I just put my current /boot directory on the CD (although it doesn't fully boot, i guess it just needs some config changes). How do you mean it doesn't boot fully? Creating a bootable cd is in the handbook. # mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/cdfiles Your tmp/cdfiles should contain a boot folder matching that on the encrypted system. You'll only need the kernel and modules that you load though and gzipping them will speed up the slow boot. You'll also need to modify your loader.conf: geom_eli_load=YES kern.geom.eli.debug=0 kern.geom.eli.visible_passphrase=0 geli_ad0_keyfile0_load=YES geli_ad0_keyfile0_type=ad0:geli_keyfile0 geli_ad0_keyfile0_name=/ad0.key You'll also need an /etc/fstab in /tmp/cdfiles with the root partition: eg /dev/ad0.elia / ufs rw 1 1 The other thing I recall is that bug kbdmux bug in 6.1. Shows up on some but not all from what I can remember. If you are using a password as well as a key, and the keyboard seems to have frozen when you try to enter the password, try this in device.hints: hint.kbdmux.0.disabled=1 Cheers Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portsnap oddities
Hello all, I'm getting the following error when I use portsnap lately on one of my servers: [mesh:/home/gary]# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 2 mirrors found. Fetching snapshot tag from portsnap2.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Thu 3 Aug 2006 04:45:32 EST to Sat 5 Aug 2006 11:06:54 EST. Fetching 0 metadata patches. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 2 patches.. done. Applying patches... done. Fetching 2 new ports or files... gunzip: stdin: not in gzip format snapshot is corrupt. I have now removed /var/db/portsnap and started from scratch 3 times. This fixes the problem, but a few days later, I get the same story. I haven't had any problems on any of the other servers (although they have older kernels), so I'm guessing this could be a problem with portsnap from this kernel build or it's related to something else. FreeBSD mesh.lhshoses.com.au 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Jul 28 13:29:26 EST 2006 root@:/usr/obj/usr/src/sys/MESH i386 Anyone got any ideas? Thanks Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portsnap oddities
Sure, the /var slice is 2Gb and has plenty of room. [mesh:/home/gary]# portsnap --debug fetch Looking up portsnap.FreeBSD.org mirrors... 2 mirrors found. Fetching snapshot tag from portsnap1.FreeBSD.org... latest.ssl100% of 256 B 512 kBps done. Fetching snapshot metadata... 6eb9d6e9f93dd6b8e2a88bdf9d394b7e77f75795f073a4100% of 299 B 650 kBps done. Updating from Thu 3 Aug 2006 04:45:32 EST to Sat 5 Aug 2006 11:06:54 EST. Fetching 0 metadata patches... done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 2 patches... /usr/libexec/phttpget portsnap1.FreeBSD.org bp/7c2d57a2388d4d5cd20e935c57727b5019fbdf06210ebf9b8f0b7c01bf072db5-ad06d1f7 b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd bp/352d16ab1731729d4542c9c126034d6f27ce2830f297effb8831e6eb6a46cb31-ad3d5100 1a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3 http://portsnap1.FreeBSD.org/bp/7c2d57a2388d4d5cd20e935c57727b5019fbdf06210e bf9b8f0b7c01bf072db5-ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d 059f1b8fd: 200 OK http://portsnap1.FreeBSD.org/bp/352d16ab1731729d4542c9c126034d6f27ce2830f297 effb8831e6eb6a46cb31-ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee83799 48a44aae3: 200 OK done. Applying patches... bspatch: Corrupt patch sha256: NEW: No such file or directory [: =: unexpected operator bspatch: Corrupt patch sha256: NEW: No such file or directory [: =: unexpected operator done. Fetching 2 new ports or files... /usr/libexec/phttpget portsnap1.FreeBSD.org f/ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd.gz f/ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3.gz http://portsnap1.FreeBSD.org/f/ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166 564e61666d059f1b8fd.gz: 200 OK http://portsnap1.FreeBSD.org/f/ad3d51001a264245eab5894cece6c902d073841143e9f fc7ee8379948a44aae3.gz: 200 OK gunzip: stdin: not in gzip format snapshot is corrupt. Thanks Colin, Gary -Original Message- From: Colin Percival [mailto:[EMAIL PROTECTED] Sent: Saturday, 5 August 2006 12:21 PM To: Gary Newcombe Cc: freebsd-questions@freebsd.org Subject: Re: portsnap oddities Gary Newcombe wrote: I'm getting the following error when I use portsnap lately on one of my servers: [snip] Fetching 2 new ports or files... gunzip: stdin: not in gzip format snapshot is corrupt. I have now removed /var/db/portsnap and started from scratch 3 times. This fixes the problem, but a few days later, I get the same story. I haven't had any problems on any of the other servers (although they have older kernels), so I'm guessing this could be a problem with portsnap from this kernel build or it's related to something else. First, the obvious thing to check: Are you running out of disk space on /var ? Second, please run 'portsnap --debug fetch' and send me the output; this will give me a chance of identifying the problem. Colin Percival ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portsnap oddities
Yes, nail on the head methinks. This server is behind a proxy and portsnap works fine with it disabled. With combination of advproxy, havp and privoxy: [mesh:/var/db/portsnap]# l *[3d].gz -rw-r--r-- 1 root wheel64B 5 Aug 12:51 ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd.gz -rw-r--r-- 1 root wheel64B 5 Aug 12:51 ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3.gz Without: [mesh:/var/db/portsnap]# portsnap --debug fetch Looking up portsnap.FreeBSD.org mirrors... 2 mirrors found. Fetching snapshot tag from portsnap1.FreeBSD.org... latest.ssl100% of 256 B 685 kBps done. Fetching snapshot metadata... d82061f1c680d235d7c08c340e9c25e42b4a133e2ca1c1100% of 299 B 533 kBps done. Updating from Thu 3 Aug 2006 04:45:32 EST to Sat 5 Aug 2006 11:22:38 EST. Fetching 0 metadata patches... done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 2 patches... /usr/libexec/phttpget portsnap1.FreeBSD.org bp/7c2d57a2388d4d5cd20e935c57727b5019fbdf06210ebf9b8f0b7c01bf072db5-ad06d1f7 b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd bp/352d16ab1731729d4542c9c126034d6f27ce2830f297effb8831e6eb6a46cb31-ad3d5100 1a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3 http://portsnap1.FreeBSD.org/bp/7c2d57a2388d4d5cd20e935c57727b5019fbdf06210e bf9b8f0b7c01bf072db5-ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d 059f1b8fd: 200 OK http://portsnap1.FreeBSD.org/bp/352d16ab1731729d4542c9c126034d6f27ce2830f297 effb8831e6eb6a46cb31-ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee83799 48a44aae3: 200 OK done. Applying patches... done. Fetching 0 new ports or files... done. [mesh:/var/db/portsnap]# l *[3d].gz -rw-r--r-- 1 root wheel64B 5 Aug 13:32 ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd.gz -rw-r--r-- 1 root wheel64B 5 Aug 13:32 ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3.gz So the files did seem to be intact initially anyway? Just clearing the cache for the proxy didn't seem to solve the problem btw. Thanks, Gary -Original Message- From: Colin Percival [mailto:[EMAIL PROTECTED] Sent: Saturday, 5 August 2006 1:24 PM To: Gary Newcombe Cc: freebsd-questions@freebsd.org Subject: Re: portsnap oddities Gary Newcombe wrote: Fetching 2 new ports or files... /usr/libexec/phttpget portsnap1.FreeBSD.org f/ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd.gz f/ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3.gz http://portsnap1.FreeBSD.org/f/ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166 564e61666d059f1b8fd.gz: 200 OK http://portsnap1.FreeBSD.org/f/ad3d51001a264245eab5894cece6c902d073841143e9f fc7ee8379948a44aae3.gz: 200 OK gunzip: stdin: not in gzip format snapshot is corrupt. Strange. I've checked on portsnap1.freebsd.org, and those files are definitely intact. Are you using an HTTP proxy? It's possible that it might have cached a broken version of those files. Could you look in /var/db/portsnap and tell me how large those two files are? Colin Percival ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]