• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Pfsense on a HP Netserver LPr

Scheduled Pinned Locked Moved Hardware
26 Posts 5 Posters 11.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    Perry
    last edited by Jun 19, 2007, 1:28 PM

    don't know about raid ( you can always backup the config file ). but you will be better of with 2 pc and carp cluster imo.

    /Perry
    doc.pfsense.org

    1 Reply Last reply Reply Quote 0
    • U
      ugob
      last edited by Jun 19, 2007, 1:43 PM

      Hmmm, it is a bit expensive to set 2 servers in a datacenter, so I'd rather have only this 2U server, with the most reliable config possible with this kind of hardware.

      Thanks,

      1 Reply Last reply Reply Quote 0
      • M
        Matts
        last edited by Jun 19, 2007, 1:44 PM

        How about the Dual CPU ? I have installed it also on a Dual CPU machine and see only one CPU.

        1 Reply Last reply Reply Quote 0
        • U
          ugob
          last edited by Jun 19, 2007, 1:47 PM

          I haven't checked really, but I think it sees only 1 CPU.  I don't really care if it sees only one though.

          1 Reply Last reply Reply Quote 0
          • M
            Matts
            last edited by Jun 19, 2007, 4:09 PM Jun 19, 2007, 4:04 PM

            @ugob:

            I haven't checked really, but I think it sees only 1 CPU.  I don't really care if it sees only one though.

            No I don't care if it sees one, but I want to be sure it uses both.

            This is what I see:

            kern.smp.cpus: 1

            So if it sees one extra CPU for SMP or at total one.

            1 Reply Last reply Reply Quote 0
            • U
              ugob
              last edited by Jun 19, 2007, 4:27 PM

              @ugob:

              But does PfSense supports software RAID?  I think a LiveCD + floppy is more reliable (at least for running) than a single disk.  The only RAID controller I have here is an HP NetRAID 1-M.  Will it work?

              I just tested and it works with th HP NetRAID 1-M.  I'll get 2 small SCSI disks and I'll use that.

              Anyone knows how to monitor for failed drives this way?  If it was on linux, I'd check /proc, but I don't know about freebsd.

              Thanks!

              1 Reply Last reply Reply Quote 0
              • M
                Matts
                last edited by Jun 19, 2007, 4:51 PM

                @ugob:

                @ugob:

                But does PfSense supports software RAID?  I think a LiveCD + floppy is more reliable (at least for running) than a single disk.  The only RAID controller I have here is an HP NetRAID 1-M.  Will it work?

                I just tested and it works with th HP NetRAID 1-M.  I'll get 2 small SCSI disks and I'll use that.

                Anyone knows how to monitor for failed drives this way?  If it was on linux, I'd check /proc, but I don't know about freebsd.

                Thanks!

                Yes for Linux I know it too, but I will check it.

                Were you able to monitor the controller for failing disks ?

                1 Reply Last reply Reply Quote 0
                • U
                  ugob
                  last edited by Jun 19, 2007, 4:53 PM

                  @Matts:

                  @ugob:

                  I haven't checked really, but I think it sees only 1 CPU.  I don't really care if it sees only one though.

                  No I don't care if it sees one, but I want to be sure it uses both.

                  This is what I see:

                  kern.smp.cpus: 1

                  So if it sees one extra CPU for SMP or at total one.

                  Mine sees and uses both.

                  In top, I can sometimes see process using CPU1 when I hold the spacebar.

                  From dmesg:```
                  FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
                  cpu0 (BSP): APIC ID:  1
                  cpu1 (AP): APIC ID:  0

                  1 Reply Last reply Reply Quote 0
                  • U
                    ugob
                    last edited by Jun 19, 2007, 4:58 PM

                    @Matts:

                    @ugob:

                    @ugob:

                    But does PfSense supports software RAID?  I think a LiveCD + floppy is more reliable (at least for running) than a single disk.  The only RAID controller I have here is an HP NetRAID 1-M.  Will it work?

                    I just tested and it works with th HP NetRAID 1-M.  I'll get 2 small SCSI disks and I'll use that.

                    Anyone knows how to monitor for failed drives this way?  If it was on linux, I'd check /proc, but I don't know about freebsd.

                    Thanks!

                    Yes for Linux I know it too, but I will check it.

                    Were you able to monitor the controller for failing disks ?

                    No, all I found is this:

                    amrstat is available as a package, but since my pfsense is not connected to the 'net right now, I can't try.

                    However, since there is no mta on pfsense, another system would have to run a script via ssh and send an e-mail if one drive is failing.

                    It would be easier using snmp.

                    Please let me know if you find anything.

                    http://www.unixadmintalk.com/f41/monitoring-raid-arrays-51889/

                    1 Reply Last reply Reply Quote 0
                    • U
                      ugob
                      last edited by Jun 19, 2007, 5:55 PM Jun 19, 2007, 5:49 PM

                      I found something:

                      # pkg_add -r http://ftp.id.freebsd.org/ports/packages/All/amrstat-20070216.tbz
                      # rehash
                      # amrstat
                      Logical volume 0:       degraded (16.96 GB, RAID1)
                      Physical drive 0:0      rebuild
                      Physical drive 0:1      online
                      
                      

                      Now you can use a remote server to execute amrstat remotely via ssh and grep for 'degraded'.  If grep returns 0, send an e-mail.

                      Ugo

                      1 Reply Last reply Reply Quote 0
                      • U
                        ugob
                        last edited by Jun 19, 2007, 6:44 PM

                        See this post to follow-up on the monitoring… http://forum.pfsense.org/index.php/topic,5263.0.html

                        1 Reply Last reply Reply Quote 0
                        • M
                          Matts
                          last edited by Jun 20, 2007, 1:08 AM

                          I have installed the AMRSTAT Port, but I can;t get it working.

                          FreeBSD is actually quite new for me :) If it was Linux.. it was more simple ;)

                          1 Reply Last reply Reply Quote 0
                          • U
                            ugob
                            last edited by Jun 20, 2007, 2:49 AM

                            Look http://forum.pfsense.org/index.php/topic,5252.msg31671.html#msg31671

                            3 simple commands.

                            1 Reply Last reply Reply Quote 0
                            • M
                              Matts
                              last edited by Jun 20, 2007, 11:26 AM

                              @ugob:

                              I found something:

                              # pkg_add -r http://ftp.id.freebsd.org/ports/packages/All/amrstat-20070216.tbz
                              # rehash
                              # amrstat
                              Logical volume 0:       degraded (16.96 GB, RAID1)
                              Physical drive 0:0      rebuild
                              Physical drive 0:1      online
                              
                              

                              Now you can use a remote server to execute amrstat remotely via ssh and grep for 'degraded'.  If grep returns 0, send an e-mail.

                              Ugo

                              Hi,

                              I already installed it using this:

                              pkg_add -r amrstat
                              

                              This is what I get because I already installed the latest version I thought

                              # pkg_add -r http://ftp.id.freebsd.org/ports/packages/All/amrstat-20070216.tbz
                              Fetching http://ftp.id.freebsd.org/ports/packages/All/amrstat-20070216.tbz... Done.
                              pkg_add: package 'amrstat-20070216' or its older version already installed
                              #
                              
                              

                              And I get this now:

                              
                              # amrstat
                              open: No such file or directory
                              # where amrstat
                              /usr/local/sbin/amrstat
                              # /usr/local/sbin/amrstat
                              open: No such file or directory
                              # /usr/local/sbin/amrstat --help
                              amrstat: illegal option -- -
                              usage: /usr/local/sbin/amrstat [-a num] [-b] [-c ctlr|-f dev] [-g] [-l vol]
                                              [-p drive|-s bus[:target]] [-t usec] [-v]
                              
                                      -a num          number of retries
                                      -b              battery status
                                      -c ctrl         controller ID
                                      -f dev          device path
                                      -g              print global parameters
                                      -l vol          logical volume ID
                                      -p drive        physical drive ID
                                      -s bus[:target] SCSI bus (and optinal target)
                                      -t usec         sleep time between retries
                                      -v              verbose output
                              #
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • U
                                ugob
                                last edited by Jun 20, 2007, 12:29 PM

                                Maybe your RAID controller is not supported by this program.  How are labeled your disks?

                                1 Reply Last reply Reply Quote 0
                                • M
                                  Matts
                                  last edited by Jun 20, 2007, 2:34 PM

                                  @ugob:

                                  Maybe your RAID controller is not supported by this program.

                                  I will check it, I thought it was.

                                  
                                  How are labeled your disks?
                                  
                                  What do you mean by this ?
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • U
                                    ugob
                                    last edited by Jun 20, 2007, 2:36 PM

                                    Give me the output of 'df'

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      Matts
                                      last edited by Jun 20, 2007, 3:13 PM

                                      @ugob:

                                      Give me the output of 'df'

                                      /dev/idad0s1a  13133670 75896 12007082    1%    /
                                      devfs                1    1        0  100%    /dev
                                      /dev/md0          1710    26    1548    2%    /var/run
                                      devfs                1    1        0  100%    /var/dhcpd/dev

                                      Btw, I was thinking of using smartmontools. After installing this I see that libcam* is missing.

                                      Or we have to get a full install tree, what not should be it.

                                      1 Reply Last reply Reply Quote 0
                                      • U
                                        ugob
                                        last edited by Jun 20, 2007, 3:17 PM

                                        @Matts:

                                        @ugob:

                                        Give me the output of 'df'

                                        /dev/idad0s1a  13133670 75896 12007082    1%    /
                                        devfs                1    1        0  100%    /dev
                                        /dev/md0          1710    26    1548    2%    /var/run
                                        devfs                1    1        0  100%    /var/dhcpd/dev

                                        Your RAID controller doesn't use the amr driver, so you can't use amrstat

                                        @Matts:

                                        Btw, I was thinking of using smartmontools. After installing this I see that libcam* is missing.

                                        Or we have to get a full install tree, what not should be it.

                                        If you get smartmontools, how will you get notified of a failed disk?

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          Matts
                                          last edited by Jun 20, 2007, 3:19 PM

                                          @ugob:

                                          @Matts:

                                          @ugob:

                                          Give me the output of 'df'

                                          /dev/idad0s1a  13133670 75896 12007082     1%    /
                                          devfs                 1     1        0   100%    /dev
                                          /dev/md0           1710    26     1548     2%    /var/run
                                          devfs                 1     1        0   100%    /var/dhcpd/dev

                                          Your RAID controller doesn't use the amr driver, so you can't use amrstat

                                          @Matts:

                                          Btw, I was thinking of using smartmontools. After installing this I see that libcam* is missing.

                                          Or we have to get a full install tree, what not should be it.

                                          If you get smartmontools, how will you get notified of a failed disk?

                                          Ow damn, just me… Brain Fart ? ;)

                                          1 Reply Last reply Reply Quote 0
                                          15 out of 26
                                          • First post
                                            15/26
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received