rewelka, dzieki
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Posty przez wojtula
rewelka, dzieki
Witam,
nie potrafie skonfigurowac po ssh routera, tak aby stal zaraz za modemem 192.168.1.1 np. od UPC/Vectry (po kablu) z oddzielnym adresem IP jako AP.
Glowny modem powinien zachowac DNS, DHCP. Po nim zrobic przekierowanie do drugiego routera na usluge VPN.
Np. drugi router z adresem: 192.168.1.2 - chce na nim postawic OpenVPNa.
Probowalem kilku konfiguracji i za kazdym razem byl fail.
Pewnie gdzies robie prosty blad. Poddalem sie, skasowalem (firstboot) wszystko na chwile obecna i prosze o porade.
Znalazlem przykladowe konfiguracje: http://eko.one.pl/?p=openwrt-trybypracy
Ale nie wiem ktora najbardziej pasuje do moich potrzeb.
to moze LEDE?
https://forum.lede-project.org/t/build- … rsions/428
jakies porady/mozliwosci, bo trudno pracuje sie przy restartujacym sie routerze?
Inaczej. Chodzilo mi ze zazwyczaj jest jedna aktywna osoba podlaczona do niego. Czasami dziala tez np TV po 5Ghz i wowczas kiedy dziala TV oraz np notebook router wykonuje restart.
TV korzysta z minidlna/smb z routera, w tym samym czasie laptop np YouTube/VPN zewnetrzny.
(ilosc polaczen ktora jest widoczna w statsach, to w wiekszosci czujniki esp8266 w deepsleep, wiec ich nie licze)
Na firmware od tplinka, dziala to ok, szybciej nawet ogolem download ale tplink to tplink. Wolalbym zostac na Twoim. Od lat korzystam niezmiennie...
witaj, po aktualizacji mam to samo.
Dodatkowe paczki, z ktorych korzystam to stunnel i adblock.
Logi czyste, nie mam pojecia czemu on sie kreci przy wiekszym obciazeniu.
Gargoyle PL 1.10.0.3 (68ce297) |
| OpenWrt Chaos Calmer 15.05.1 (r49617) |
| Build time: 2018-03-20 18:59 CET
Machine: TP-Link Archer C7 v2 |
| Uptime: 0d, 00:26:16 |
| Load: 0.02 0.11 0.19 |
| Flash: total: 8.6MB, free: 5.8MB, used: 32% |
| Memory: total: 123.0MB, free: 82.8MB, used: 32% |
| WAN: 188.123.202.8, proto: dhcp |
| LAN: 192.168.1.1, leases: 16 |
| radio0: mode: ap, ssid: WOJTULA5, channel: 36, conn: 4 |
| radio1: mode: ap, ssid: WOJTULA, channel: 3, conn: 7
Zauwazylem ze kiedy wiecej niz jeden host "mocno" utylizuje siec wifi router robi reboot.
Przykladowo:
przy ogladaniu playera tvnu / tvp i jednoczesnie upgrade apek przez sklep play na telefonie router wariuje i robi reboot.
Moj sprzet
Gargoyle PL 1.9.2.3 (85255a6) |
| OpenWrt Chaos Calmer 15.05.1 (r49483) |
| Build time: 2017-03-25 10:59 CET
Machine: TP-Link Archer C7 v2 |
| Uptime: 0d, 00:05:21 |
| Load: 1.75 1.15 0.54
root@router:~# dmesg
[ 0.000000] Linux version 3.18.45 (cezary@eko.one.pl) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #22 Sat Mar 25 11:01:16 CET 2017
[ 0.000000] MyLoader: sysp=0968dc75, boardp=2000eb36, parts=c50dfe46
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 80385eb0, node_mem_map 81000000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=ARCHER-C7 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 125724K/131072K available (2639K kernel code, 144K rwdata, 552K rodata, 240K init, 193K bss, 5348K reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.080000] NET: Registered protocol family 16
[ 0.080000] MIPS: machine is TP-LINK Archer C7
[ 0.090000] ar724x-pci ar724x-pci.0: PCIe link is down
[ 0.090000] registering PCI controller with io_map_base unset
[ 0.100000] registering PCI controller with io_map_base unset
[ 0.540000] PCI host bridge to bus 0000:00
[ 0.550000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.550000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.560000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.560000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.560000] PCI host bridge to bus 0000:01
[ 0.570000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.570000] pci_bus 0000:01: root bus resource [io 0x0001]
[ 0.580000] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.580000] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000
[ 0.580000] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.580000] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.580000] pci 0000:01:00.0: supports D1 D2
[ 0.580000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.580000] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.590000] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[ 0.590000] pci 0000:01:00.0: using irq 41 for pin 1
[ 0.600000] Switched to clocksource MIPS
[ 0.600000] NET: Registered protocol family 2
[ 0.610000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.610000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.620000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.630000] TCP: reno registered
[ 0.630000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.640000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.640000] NET: Registered protocol family 1
[ 0.650000] PCI: CLS 0 bytes, default 32
[ 0.650000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.660000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.670000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.680000] msgmni has been set to 245
[ 0.680000] io scheduler noop registered
[ 0.690000] io scheduler deadline registered (default)
[ 0.690000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.700000] console [ttyS0] disabled
[ 0.730000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.730000] console [ttyS0] enabled
[ 0.740000] bootconsole [early0] disabled
[ 0.750000] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.760000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.760000] 5 tp-link partitions found on MTD device spi0.0
[ 0.770000] Creating 5 MTD partitions on "spi0.0":
[ 0.770000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.780000] 0x000000020000-0x0000001455b8 : "kernel"
[ 0.780000] 0x0000001455b8-0x000000ff0000 : "rootfs"
[ 0.790000] mtd: device 2 (rootfs) set to be root filesystem
[ 0.800000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.800000] 0x000000750000-0x000000ff0000 : "rootfs_data"
[ 0.810000] 0x000000ff0000-0x000001000000 : "art"
[ 0.810000] 0x000000020000-0x000000ff0000 : "firmware"
[ 0.840000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[ 0.930000] libphy: ag71xx_mdio: probed
[ 1.530000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 1.540000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 2.130000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
[ 2.130000] TCP: cubic registered
[ 2.140000] NET: Registered protocol family 17
[ 2.140000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.150000] Bridge firewalling registered
[ 2.160000] 8021q: 802.1Q VLAN Support v1.8
[ 2.160000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 2.180000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.180000] Freeing unused kernel memory: 240K (803a4000 - 803e0000)
[ 3.380000] init: Console is alive
[ 3.390000] init: - watchdog -
[ 5.810000] usbcore: registered new interface driver usbfs
[ 5.820000] usbcore: registered new interface driver hub
[ 5.830000] usbcore: registered new device driver usb
[ 5.860000] SCSI subsystem initialized
[ 5.870000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.880000] ehci-platform: EHCI generic platform driver
[ 5.880000] ehci-platform ehci-platform.0: EHCI Host Controller
[ 5.890000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 5.900000] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
[ 5.900000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 5.930000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 5.930000] hub 1-0:1.0: USB hub found
[ 5.940000] hub 1-0:1.0: 1 port detected
[ 5.940000] ehci-platform ehci-platform.1: EHCI Host Controller
[ 5.950000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 5.960000] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
[ 5.960000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 5.990000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 5.990000] hub 2-0:1.0: USB hub found
[ 6.000000] hub 2-0:1.0: 1 port detected
[ 6.000000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.010000] ohci-platform: OHCI generic platform driver
[ 6.020000] usbcore: registered new interface driver usb-storage
[ 6.260000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 6.410000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 6.410000] scsi host0: usb-storage 1-1:1.0
[ 6.420000] init: - preinit -
[ 7.220000] eth1: link up (1000Mbps/Full duplex)
[ 7.240000] random: procd urandom read with 11 bits of entropy available
[ 8.300000] scsi 0:0:0:0: Direct-Access IS917 innostor 1.00 PQ: 0 ANSI: 6
[ 8.310000] sd 0:0:0:0: [sda] 122880000 512-byte logical blocks: (62.9 GB/58.5 GiB)
[ 8.320000] sd 0:0:0:0: [sda] Write Protect is off
[ 8.320000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 8.320000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[ 8.340000] sda: sda1 sda2
[ 8.340000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 10.470000] mount_root: loading kmods from internal overlay
[ 11.150000] jffs2: notice: (451) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 11.170000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 11.180000] block: extroot: not configured
[ 11.490000] jffs2: notice: (448) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 11.500000] mount_root: loading kmods from internal overlay
[ 11.770000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 11.780000] block: extroot: not configured
[ 11.780000] mount_root: switching to jffs2 overlay
[ 11.810000] eth1: link down
[ 11.830000] procd: - early -
[ 11.830000] procd: - watchdog -
[ 12.550000] procd: - ubus -
[ 13.570000] procd: - init -
[ 16.150000] RPC: Registered named UNIX socket transport module.
[ 16.160000] RPC: Registered udp transport module.
[ 16.160000] RPC: Registered tcp transport module.
[ 16.170000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 16.180000] tun: Universal TUN/TAP device driver, 1.6
[ 16.190000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 16.200000] gre: GRE over IPv4 demultiplexor driver
[ 16.210000] ip_gre: GRE over IPv4 tunneling driver
[ 16.230000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 16.250000] nf_conntrack version 0.5.0 (1968 buckets, 7872 max)
[ 16.270000] Hooked IMQ after mangle on PREROUTING
[ 16.270000] Hooked IMQ after nat on POSTROUTING
[ 16.270000] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1, imq_dev_accurate_stats = 1)
[ 16.280000] Hooking IMQ before NAT on PREROUTING.
[ 16.290000] Hooking IMQ after NAT on POSTROUTING.
[ 16.300000] Netfilter messages via NETLINK v0.30.
[ 16.310000] ip_set: protocol 6
[ 16.340000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[ 16.350000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[ 16.460000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[ 16.470000] ath10k_pci 0000:01:00.0: pci irq legacy interrupts 0 irq_mode 0 reset_mode 0
[ 16.820000] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 16.830000] ath10k_pci 0000:01:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 1 testmode 1
[ 16.840000] ath10k_pci 0000:01:00.0: firmware ver 10.2.4.97 api 5 features no-p2p crc32 f91e34f2
[ 16.940000] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 16.950000] ath10k_pci 0000:01:00.0: Falling back to user helper
[ 20.830000] EXT4-fs (sda1): recovery complete
[ 20.840000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 22.150000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 23.130000] random: nonblocking pool is initialized
[ 23.370000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 24.140000] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[ 24.160000] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 25.230000] ath10k_pci 0000:01:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[ 25.340000] ath: EEPROM regdomain: 0x0
[ 25.340000] ath: EEPROM indicates default country code should be used
[ 25.340000] ath: doing EEPROM country->regdmn map search
[ 25.340000] ath: country maps to regdmn code: 0x3a
[ 25.340000] ath: Country alpha2 being used: US
[ 25.340000] ath: Regpair used: 0x3a
[ 25.360000] u32 classifier
[ 25.370000] input device check on
[ 25.370000] Actions configured
[ 25.380000] Mirror/redirect action on
[ 25.440000] fuse init (API version 7.23)
[ 25.490000] usbcore: registered new interface driver cdc_acm
[ 25.490000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 25.500000] usbcore: registered new interface driver cdc_wdm
[ 25.540000] Ebtables v2.0 registered
[ 25.550000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 25.650000] usbcore: registered new interface driver ums-alauda
[ 25.660000] usbcore: registered new interface driver ums-cypress
[ 25.670000] usbcore: registered new interface driver ums-datafab
[ 25.680000] usbcore: registered new interface driver ums-freecom
[ 25.690000] usbcore: registered new interface driver ums-isd200
[ 25.690000] usbcore: registered new interface driver ums-jumpshot
[ 25.700000] usbcore: registered new interface driver ums-karma
[ 25.710000] usbcore: registered new interface driver ums-sddr09
[ 25.720000] usbcore: registered new interface driver ums-sddr55
[ 25.730000] usbcore: registered new interface driver ums-usbat
[ 25.740000] usbcore: registered new interface driver usblp
[ 25.760000] usbcore: registered new interface driver usbserial
[ 25.770000] usbcore: registered new interface driver usbserial_generic
[ 25.770000] usbserial: USB Serial support registered for generic
[ 25.830000] xt_time: kernel timezone is -0000
[ 25.840000] usbcore: registered new interface driver cdc_ether
[ 25.850000] usbcore: registered new interface driver cdc_ncm
[ 25.860000] usbcore: registered new interface driver huawei_cdc_ncm
[ 25.890000] PPP generic driver version 2.4.2
[ 25.900000] NET: Registered protocol family 24
[ 25.910000] PPTP driver version 0.8.5
[ 25.910000] usbcore: registered new interface driver qmi_wwan
[ 25.920000] usbcore: registered new interface driver rndis_host
[ 25.930000] usbcore: registered new interface driver sierra
[ 25.940000] usbserial: USB Serial support registered for Sierra USB modem
[ 25.950000] usbcore: registered new interface driver sierra_net
[ 25.980000] ath: EEPROM regdomain: 0x0
[ 25.980000] ath: EEPROM indicates default country code should be used
[ 25.980000] ath: doing EEPROM country->regdmn map search
[ 25.980000] ath: country maps to regdmn code: 0x3a
[ 25.980000] ath: Country alpha2 being used: US
[ 25.980000] ath: Regpair used: 0x3a
[ 26.000000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 26.000000] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[ 26.020000] usbcore: registered new interface driver cdc_mbim
[ 26.040000] usbcore: registered new interface driver option
[ 26.050000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 26.060000] usbcore: registered new interface driver qcserial
[ 26.060000] usbserial: USB Serial support registered for Qualcomm USB modem
[ 32.660000] eth1: link up (1000Mbps/Full duplex)
[ 32.670000] device eth1 entered promiscuous mode
[ 33.660000] br-lan: port 1(eth1) entered forwarding state
[ 33.660000] br-lan: port 1(eth1) entered forwarding state
[ 34.700000] eth0: link up (1000Mbps/Full duplex)
[ 35.660000] br-lan: port 1(eth1) entered forwarding state
[ 36.700000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
[ 36.700000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is up
[ 36.710000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 5 is up
[ 39.170000] device wlan0 entered promiscuous mode
[ 39.290000] device wlan1 entered promiscuous mode
[ 39.290000] br-lan: port 3(wlan1) entered forwarding state
[ 39.300000] br-lan: port 3(wlan1) entered forwarding state
[ 39.980000] br-lan: port 3(wlan1) entered disabled state
[ 40.560000] br-lan: port 2(wlan0) entered forwarding state
[ 40.570000] br-lan: port 2(wlan0) entered forwarding state
[ 40.810000] br-lan: port 3(wlan1) entered forwarding state
[ 40.810000] br-lan: port 3(wlan1) entered forwarding state
[ 42.570000] br-lan: port 2(wlan0) entered forwarding state
[ 42.810000] br-lan: port 3(wlan1) entered forwarding state
[ 46.360000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 88.950000] ipt_bandwidth: timezone shift of 120 minutes detected, adjusting
[ 88.960000] old minutes west=0, new minutes west=-120
[ 93.560000] IMQ driver unloaded successfully.
[ 93.610000] Hooked IMQ after mangle on INPUT
[ 93.610000] Hooked IMQ after mangle on FORWARD
[ 93.620000] IMQ driver loaded successfully. (numdevs = 1, numqueues = 1, imq_dev_accurate_stats = 1)
[ 93.630000] Hooking IMQ before NAT on PREROUTING.
[ 93.640000] Hooking IMQ after NAT on POSTROUTING.
[ 344.250000] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
root@router:~#znalezione, zmodyfikowane na szybko, moze komus sie przyda: (wynik w /tmp/cpu.stats)
awk -f cpu.awk
BEGIN {
prev_total = 0
prev_idle = 0
while (getline < "/proc/stat") {
close("/proc/stat")
idle = $5
total = 0
for (i=2; i<=NF; i++)
total += $i
++a
printf "%5.1f% \b\b",(1-(idle-prev_idle)/(total-prev_total))*100 > "/tmp/cpu.stats"; close("/tmp/cpu.stats");
prev_idle = idle
prev_total = total
system("sleep 1")
if (a >= 5) break ; else continue
}
}wersja interaktywna (wyrzuca do shella wartosc CPU):
BEGIN {
prev_total = 0
prev_idle = 0
while (getline < "/proc/stat") {
close("/proc/stat")
idle = $5
total = 0
for (i=2; i<=NF; i++)
total += $i
printf "%5.1f% \b\b",(1-(idle-prev_idle)/(total-prev_total))*100
prev_idle = idle
prev_total = total
system("sleep 1")
}
}z tego wynika ze np. z raspberry moglbym odpytywac rowniez moj gargoyle.
Swietny tool, dziekuje.
super tool, fajnie wyglada i szybko chodzi. Nie wiem jak to zintegrowac z prostym w miare ashem openwrt.
Na pewno rbpi pociagnie, bo pod spodem debian/armbian.
Ok temat do zamkniecia, poszukam/napisze skrypt ktory policzy delte z ww procedurki.
To akurat jest grafana (front) pod spodem jest influx.
Nie widzialem tego, o czym mowisz - na pewno zaraz poogladam.
To co napisales ma sens - delta bylaby najlepsza w tym celu ale.. delta raczej bedzie dzialac w trybie interactive a nie pod spodem jako skrypt sh. Musze pomyslec jak to zrobic w petli a potem roznice na koniec. Chyba ze gdzies jest gotowiec, to byloby prostsze rozwiazanie.
Witam,
czy jest mozliwosc "wrzucenia" do zmiennej obecnego zuzycia CPU?
Chcialem zrzucic z TOP roznice miedzy 100% a idle aby otrzymac obecne zuzycie CPU.
Probowalem na kilka innych sposobow ale za kazdym razem mi nie wychodzi.
Jedyne co "wychodzi", to sumowanie z /proc/stat ale zawsze (nawet podczas stresu) pokazuje mi ten sam wynik lub zblizony.
grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'
dzięki, przydało się i mi.
Ok, dziękuję bardzo za pomoc i szybkie odpowiedzi.
Zgadza się, właśnie tak teraz zrobiłem.
System po formacie jest widoczny. Po restorze dysku nie. Błędy te same - jak naprawić zatem FS?
fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
64 heads, 32 sectors/track, 152622 cylinders, total 312571224 sectors
Units = sectors of 1 * 1024 = 1024 bytes
Sector size (logical/physical): 1024 bytes / 1024 bytes
I/O size (minimum/optimal): 1024 bytes / 1024 bytes
Device Boot Start End Blocks Id System
/dev/sda1 526336 119756799 119230464 83 Linux
/dev/sda2 * 63 526335 526273 83 Linux
/dev/sda3 119756800 121858559 2101760 82 Linux swap / Solariscfdisk (util-linux 2.21.2)
Disk Drive: /dev/sda
Size: 320072933376 bytes, 320.0 GB
Heads: 64 Sectors per Track: 32 Cylinders: 305245
sda2 Boot Primary ext4 269.46 *
sda1 Primary ext4 61046.00
sda3 Primary swap 1076.11 *
Pri/Log Free Space 257681.36 *Format usunie dane. Backup jest w postaci pliku imgr, ktory po restorze odtwarza FS wraz z danymi.
"In addition, HDD Raw Copy can create an exact raw (dd) or compressed image of the entire media (including service data such as MBR, Boot records, etc). Again, all filesystems (even hidden) are supported.
"To po prostu kopia dysku, sektor po sektorze.
Efekt taki sam, jak poprzednio.
Robię drugi restore, na inny pendrive. Może to wina dysku, choć wątpie w to.
Czy taki FS można naprawić?
hehe, nie zepsułem
Mam nawet backup w postacie pliku .imgr (narzedzie hddguru, raw copy http://hddguru.com/software/HDD-Raw-Copy-Tool/) z miesiąca temu.
Zaraz go przywróce i podmontuje raz jeszcze
drugi jest u brata, nie mam dostepu fizycznie teraz. Na 100% dziala, dzis sprawdzone.
tak, na drugim routerze jest widoczna jako sdb1 a calosc jako sdb
ale na drugim routerze dyski montuja sie poprawnie, dodam ze nie uzywam zadnego HUBa. Dysk podpinam bezposrednio do routera.
mount
root@Gargoyle:~# mkdir -p /tmp/d1
root@Gargoyle:~# mount -t ext4 /dev/sda1 /tmp/d1
mount: mounting /dev/sda1 on /tmp/d1 failed: Invalid argumente2fsck
root@Gargoyle:~# e2fsck /dev/sda1
e2fsck 1.42.4 (12-June-2012)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sda1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>Zgadza sie, sa trzy partycje. Dwie ext4 bez journala oraz jedna swap.
mount
root@Gargoyle:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=63312k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
//192.168.1.108/mnt on /root/rpi type cifs (rw,mand,relatime,sec=ntlm,unc=\\192.168.1.108\mnt,username=root,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.108,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,actimeo=1)
root@Gargoyle:~#podłączyłem, nie zamontował dlatego piszę o tym do Ciebie
log z podlaczenia:
Feb 23 21:17:02 Gargoyle kern.info kernel: [95779.470000] usb 1-1.1: new high-speed USB device number 6 using ehci-platform
Feb 23 21:17:02 Gargoyle kern.info kernel: [95779.580000] scsi1 : usb-storage 1-1.1:1.0
Feb 23 21:17:02 Gargoyle user.notice usb-modeswitch: 1-1.1:1.0: Manufacturer=JMicron Product=Samsung_S2_Portable Serial=0000002CE09310501590
Feb 23 21:17:03 Gargoyle kern.notice kernel: [95780.590000] scsi 1:0:0:0: Direct-Access Samsung S2 Portable PQ: 0 ANSI: 2 CCS
Feb 23 21:17:03 Gargoyle kern.notice kernel: [95780.600000] sd 1:0:0:0: [sda] 312571224 1024-byte logical blocks: (320 GB/298 GiB)
Feb 23 21:17:03 Gargoyle kern.notice kernel: [95780.610000] sd 1:0:0:0: [sda] Write Protect is off
Feb 23 21:17:03 Gargoyle kern.debug kernel: [95780.620000] sd 1:0:0:0: [sda] Mode Sense: 3c 00 00 00
Feb 23 21:17:03 Gargoyle kern.notice kernel: [95780.620000] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Feb 23 21:17:03 Gargoyle kern.notice kernel: [95780.630000] sd 1:0:0:0: [sda] 312571224 1024-byte logical blocks: (320 GB/298 GiB)
Feb 23 21:17:03 Gargoyle kern.info kernel: [95780.670000] sda: sda1 sda2 sda3
Feb 23 21:17:03 Gargoyle kern.notice kernel: [95780.680000] sd 1:0:0:0: [sda] 312571224 1024-byte logical blocks: (320 GB/298 GiB)
Feb 23 21:17:03 Gargoyle kern.notice kernel: [95780.690000] sd 1:0:0:0: [sda] Attached SCSI disk
Feb 23 21:17:05 Gargoyle user.notice fstab: NTFS signature is missing.
Feb 23 21:17:05 Gargoyle user.notice fstab: Failed to mount '/dev/sda1': Invalid argument
Feb 23 21:17:05 Gargoyle user.notice fstab: The device '/dev/sda1' doesn't seem to have a valid NTFS.
Feb 23 21:17:05 Gargoyle user.notice fstab: Maybe the wrong device is used? Or the whole disk instead of a
Feb 23 21:17:05 Gargoyle user.notice fstab: partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Feb 23 21:17:05 Gargoyle kern.warn kernel: [95782.470000] busybox: sending ioctl 5310 to a partition!
Feb 23 21:17:05 Gargoyle kern.warn kernel: [95782.480000] busybox: sending ioctl 5310 to a partition!
Feb 23 21:17:05 Gargoyle user.notice fstab: mount: mounting /dev/sda1 on /mnt/sda1 failed: Invalid argument
Feb 23 21:17:06 Gargoyle user.notice fstab: Mount enabled for /dev/sda2 but it doesn't have a defined mountpoint (target)
Feb 23 21:17:08 Gargoyle user.notice fstab: NTFS signature is missing.
Feb 23 21:17:08 Gargoyle user.notice fstab: Failed to mount '/dev/sda3': Invalid argument
Feb 23 21:17:08 Gargoyle user.notice fstab: The device '/dev/sda3' doesn't seem to have a valid NTFS.
Feb 23 21:17:08 Gargoyle user.notice fstab: Maybe the wrong device is used? Or the whole disk instead of a
Feb 23 21:17:08 Gargoyle user.notice fstab: partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Feb 23 21:17:08 Gargoyle kern.warn kernel: [95785.800000] busybox: sending ioctl 5310 to a partition!
Feb 23 21:17:08 Gargoyle kern.warn kernel: [95785.810000] busybox: sending ioctl 5310 to a partition!
Feb 23 21:17:08 Gargoyle user.notice fstab: mount: mounting /dev/sda3 on /mnt/sda3 failed: Invalid argument
Feb 23 21:18:28 Gargoyle kern.warn kernel: [95865.690000] mount: sending ioctl 5310 to a partition!
Feb 23 21:18:28 Gargoyle kern.warn kernel: [95865.690000] mount: sending ioctl 5310 to a partition!eko.one.pl → Posty przez wojtula
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc