Вот попросили помочь настроить сервер на основе того что в шапке.
Все не совсем хорошо вышло(
Итак имею:
машину с поставленой ОС(разумеется правильной)
Код: Выделить всё
uname -v
FreeBSD 8.2-STABLE #5: Thu May 12 13:43:10 EEST 2011 harmless@nodeny:/usr/obj/usr/src/sys/NODENY
Код: Выделить всё
nodeny# cat /var/run/dmesg.boot
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-STABLE #5: Thu May 12 13:43:10 EEST 2011
harmless@nodeny.skylan.com.ua:/usr/obj/usr/src/sys/NODENY i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 3.06GHz (3065.82-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf29 Family = f Model = 2 Stepping = 9
Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x4400<CNXT-ID,xTPR>
real memory = 4294967296 (4096 MB)
avail memory = 4002697216 (3817 MB)
ispfw: registered firmware <isp_1040>
ispfw: registered firmware <isp_1040_it>
ispfw: registered firmware <isp_1080>
ispfw: registered firmware <isp_1080_it>
ispfw: registered firmware <isp_12160>
ispfw: registered firmware <isp_12160_it>
ispfw: registered firmware <isp_2100>
ispfw: registered firmware <isp_2200>
ispfw: registered firmware <isp_2300>
ispfw: registered firmware <isp_2322>
ispfw: registered firmware <isp_2400>
ispfw: registered firmware <isp_2400_multi>
ispfw: registered firmware <isp_2500>
ispfw: registered firmware <isp_2500_multi>
kbd1 at kbdmux0
ACPI Warning: Invalid length for Pm1aControlBlock: 32, using default 16 (20101013/tbfadt-707)
ACPI Warning: Invalid length for Pm1bControlBlock: 32, using default 16 (20101013/tbfadt-707)
acpi0: <COMPAQ P31> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x920-0x923 on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
pci_link16: BIOS IRQ 3 for 0.4.INTA is invalid
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x2400-0x24ff mem 0xf6000000-0xf6ffffff,0xf5ff0000-0xf5ff0fff at device 3.0 on pci0
ciss0: <Compaq Smart Array 5i> port 0x2800-0x28ff mem 0xf5f80000-0xf5fbffff,0xf5df0000-0xf5df3fff irq 5 at device 4.0 on pci0
ciss0: PERFORMANT Transport
ciss0: [ITHREAD]
pci0: <base peripheral> at device 5.0 (no driver attached)
pci0: <base peripheral> at device 5.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks CSB5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2000-0x200f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pcib1: <ACPI Host-PCI bridge> on acpi0
pci1: <ACPI PCI bus> on pcib1
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.3> port 0x3000-0x303f mem 0xf7fe0000-0xf7ffffff,0xf7f80000-0xf7fbffff irq 10 at device 1.0 on pci1
em0: [FILTER]
em0: Ethernet address: 00:04:23:a5:ad:60
em1: <Intel(R) PRO/1000 Legacy Network Connection 1.0.3> port 0x3040-0x307f mem 0xf7f60000-0xf7f7ffff irq 11 at device 1.1 on pci1
em1: [FILTER]
em1: Ethernet address: 00:04:23:a5:ad:61
pcib2: <ACPI Host-PCI bridge> on acpi0
pci4: <ACPI PCI bus> on pcib2
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff,0xcc000-0xccfff,0xee000-0xeffff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atrtc0: <AT Real Time Clock> at port 0x70 irq 8 on isa0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
Timecounter "TSC" frequency 3065815260 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert enabled, nat enabled, rule-based forwarding enabled, default to accept, logging disabled
DUMMYNET 0 with IPv6 initialized (100409)
load_dn_sched dn_sched WF2Q+ loaded
load_dn_sched dn_sched FIFO loaded
load_dn_sched dn_sched PRIO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
acd0: CDROM <COMPAQ CD-ROM SN-124/N104> at ata0-master PIO4
da0 at ciss0 bus 0 scbus0 target 0 lun 0
da0: <COMPAQ RAID 1(1VOLUME OK> Fixed Direct Access SCSI-4 device
da0: 135.168MB/s transfers
da0: Command Queueing enabled
da0: 69452MB (142239510 512 byte sectors: 255H 63S/T 8854C)
Trying to mount root from ufs:/dev/da0s1a
Вот еще чуток инфы
Код: Выделить всё
nodeny# acpidump -t
/*
RSD PTR: OEM=COMPAQ, ACPI_Rev=1.0x (0)
RSDT=0xf3ffa000, cksum=142
*/
/*
RSDT: Length=48, Revision=1, Checksum=169,
OEMID=COMPAQ, OEM Table ID=P31, OEM Revision=0x2,
Creator ID=р, Creator Revision=0x162e
Entries={ 0xf3ffa040, 0xf3ffa100, 0xf3ffa1c0 }
*/
/*
FACP: Length=116, Revision=1, Checksum=142,
OEMID=COMPAQ, OEM Table ID=P31, OEM Revision=0x2,
Creator ID=р, Creator Revision=0x162e
FACS=0xf3ffa0c0, DSDT=0xf3ffa240
INT_MODEL=APIC
Preferred_PM_Profile=Unspecified (0)
SCI_INT=9
SMI_CMD=0x950, ACPI_ENABLE=0x1, ACPI_DISABLE=0x0, S4BIOS_REQ=0x0
PSTATE_CNT=0x0
PM1a_EVT_BLK=0x900-0x903
PM1b_EVT_BLK=0x220-0x223
PM1a_CNT_BLK=0x230-0x233
PM1b_CNT_BLK=0x910-0x913
PM_TMR_BLK=0x920-0x923
P_LVL2_LAT=65535 us, P_LVL3_LAT=65535 us
FLUSH_SIZE=0, FLUSH_STRIDE=0
DUTY_OFFSET=0, DUTY_WIDTH=0
DAY_ALRM=73, MON_ALRM=74, CENTURY=72
IAPC_BOOT_ARCH=
Flags={WBINVD,C1_SUPPORTED,SLEEP_BUTTON,S4_RTC_WAKE,32BIT_TIMER}
*/
/*
FACS: Length=64, HwSig=0x0000abcd, Firm_Wake_Vec=0x00000000
Global_Lock=
Flags=
Version=0
*/
/*
DSDT: Length=12682, Revision=1, Checksum=188,
OEMID=COMPAQ, OEM Table ID=DSDT, OEM Revision=0x1,
Creator ID=MSFT, Creator Revision=0x100000b
*/
/*
APIC: Length=172, Revision=1, Checksum=118,
OEMID=COMPAQ, OEM Table ID=00000083, OEM Revision=0x2,
Creator ID=, Creator Revision=0x0
Local APIC ADDR=0xfee00000
Flags={PC-AT}
Type=Local APIC
ACPI CPU=0
Flags={ENABLED}
APIC ID=0
Type=Local APIC
ACPI CPU=2
Flags={DISABLED}
APIC ID=2
Type=Local APIC
ACPI CPU=4
Flags={DISABLED}
APIC ID=4
Type=Local APIC
ACPI CPU=6
Flags={ENABLED}
APIC ID=6
Type=Local APIC
ACPI CPU=1
Flags={ENABLED}
APIC ID=1
Type=Local APIC
ACPI CPU=3
Flags={DISABLED}
APIC ID=3
Type=Local APIC
ACPI CPU=5
Flags={DISABLED}
APIC ID=5
Type=Local APIC
ACPI CPU=7
Flags={ENABLED}
APIC ID=7
Type=IO APIC
APIC ID=2
INT BASE=0
ADDR=0x00000000fec00000
Type=IO APIC
APIC ID=3
INT BASE=16
ADDR=0x00000000fec01000
Type=IO APIC
APIC ID=4
INT BASE=32
ADDR=0x00000000fec02000
Type=IO APIC
APIC ID=5
INT BASE=48
ADDR=0x00000000fec03000
Type=INT Override
BUS=0
IRQ=0
INTR=2
Flags={Polarity=active-hi, Trigger=edge}
Type=Local APIC NMI
ACPI CPU=ALL
LINT Pin=1
Flags={Polarity=conforming, Trigger=conforming}
*/
/*
SPCR: Length=80, Revision=1, Checksum=31,
OEMID=COMPAQ, OEM Table ID=SPCRRBSU, OEM Revision=0x1,
Creator ID=р, Creator Revision=0x162e
*/
Код: Выделить всё
nodeny# pciconf -lv
hostb0@pci0:0:0:0: class=0x060000 card=0x00000000 chip=0x00141166 rev=0x33 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'Host Bridge (CNB20-HE)'
class = bridge
subclass = HOST-PCI
hostb1@pci0:0:0:1: class=0x060000 card=0x00000000 chip=0x00141166 rev=0x00 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'Host Bridge (CNB20-HE)'
class = bridge
subclass = HOST-PCI
hostb2@pci0:0:0:2: class=0x060000 card=0x00000000 chip=0x00141166 rev=0x00 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'Host Bridge (CNB20-HE)'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:3:0: class=0x030000 card=0x001e0e11 chip=0x47521002 rev=0x27 hdr=0x00
vendor = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
device = 'ATI On-Board VGA for HP Proliant 350 G3 (Rage XL PCI)'
class = display
subclass = VGA
ciss0@pci0:0:4:0: class=0x010400 card=0x40800e11 chip=0xb1780e11 rev=0x01 hdr=0x00
vendor = 'Compaq Computer Corp (Now owned by Hewlett-Packard)'
device = 'SMART2 Array Controller (CISSB)'
class = mass storage
subclass = RAID
none0@pci0:0:5:0: class=0x088000 card=0xb2060e11 chip=0xb2030e11 rev=0x01 hdr=0x00
vendor = 'Compaq Computer Corp (Now owned by Hewlett-Packard)'
device = 'Integrated Lights Out Processor (iLo)'
class = base peripheral
none1@pci0:0:5:2: class=0x088000 card=0xb2060e11 chip=0xb2040e11 rev=0x01 hdr=0x00
vendor = 'Compaq Computer Corp (Now owned by Hewlett-Packard)'
device = 'Integrated Lights Out Processor (iLo)'
class = base peripheral
isab0@pci0:0:15:0: class=0x060100 card=0x02011166 chip=0x02011166 rev=0x93 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'CSB5 PCI to ISA Bridge'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:15:1: class=0x01018a card=0x02121166 chip=0x02121166 rev=0x93 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'CSB5 PCI EIDE Controller'
class = mass storage
subclass = ATA
hostb3@pci0:0:15:3: class=0x060000 card=0x02301166 chip=0x02251166 rev=0x00 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'PCI Bridge (CSB5)'
class = bridge
subclass = HOST-PCI
hostb4@pci0:0:17:0: class=0x060000 card=0x00000000 chip=0x01011166 rev=0x05 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'CIOB-X2'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:17:2: class=0x060000 card=0x00000000 chip=0x01011166 rev=0x05 hdr=0x00
vendor = 'ServerWorks (Was: Reliance Computer Corp)'
device = 'CIOB-X2'
class = bridge
subclass = HOST-PCI
em0@pci0:1:1:0: class=0x020000 card=0x10128086 chip=0x10108086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'Dual Port Gigabit Ethernet Controller (Copper) (82546EB)'
class = network
subclass = ethernet
em1@pci0:1:1:1: class=0x020000 card=0x10128086 chip=0x10108086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'Dual Port Gigabit Ethernet Controller (Copper) (82546EB)'
class = network
subclass = ethernet
Код: Выделить всё
nodeny# cat /usr/src/sys/i386/conf/NODENY
cpu I686_CPU
ident NODENY
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
makeoptions NO_MODULES=yes
options SCHED_ULE # ULE scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options INET6 # IPv6 communications protocols
options SCTP # Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
options CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_PART_GPT # GUID Partition Tables.
options GEOM_LABEL # Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat (sgtty)
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE # ktrace(1) support
options STACK # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options P1003_1B_SEMAPHORES # POSIX-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT # Security event auditing
options MAC # TrustedBSD MAC Framework
#options KDTRACE_HOOKS # Kernel DTrace hooks
options INCLUDE_CONFIG_FILE # Include this file in kernel
options KDB # Kernel debugger related code
options KDB_TRACE # Print a stack trace for a panic
options IPFIREWALL
options IPFIREWALL_NAT # ipfw nat
options IPSTEALTH
options IPDIVERT
options IPFIREWALL_FORWARD
options DUMMYNET
options IPFIREWALL_DEFAULT_TO_ACCEPT
options LIBALIAS
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_CDNR
options ALTQ_PRIQ
options ALTQ_NOPCC #нужен для для SMP
options ALTQ_DEBUG
device pf #обязательно
device pflog #остальное по желанию
device pfsync
options DEVICE_POLLING
options HZ=4000
# To make an SMP kernel, the next two lines are needed
options SMP # Symmetric MultiProcessor Kernel
device apic # I/O APIC
options PAE
# CPU frequency control
device cpufreq
# Bus support.
device acpi
device eisa
device pci
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device atapicd # ATAPI CDROM drives
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device da # Direct Access (disks)
device pass # Passthrough device (direct SCSI access)
# RAID controllers interfaced to the SCSI subsystem
device ciss # Compaq Smart RAID 5*
#device ida # Compaq Smart RAID
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device psm # PS/2 mouse
device kbdmux # keyboard multiplexer
device vga # VGA video card driver
# syscons is the default console driver, resembling an SCO console
device sc
#device agp # support several AGP chipsets
# Add suspend/resume support for the i8254.
device pmtimer
# PCI Ethernet NICs.
device em # Intel PRO/1000 Gigabit Ethernet Family
device isp
device ispfw
# Pseudo devices.
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
device vlan # 802.1Q VLAN support
device tun # Packet tunnel.
device pty # BSD-style compatibility pseudo ttys
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
device faith # IPv6-to-IPv4 relaying (translation)
device firmware # firmware assist module
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter